From owner-freebsd-net@FreeBSD.ORG Mon May 18 09:38:23 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA6C71065677 for ; Mon, 18 May 2009 09:38:23 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 8AA2F8FC1B for ; Mon, 18 May 2009 09:38:23 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Subject:Message-ID:Reply-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender; b=BkDYR/AWsFmbjtKpWWswROtqQgKGjn+TDQb05BDW7LQAwrrWsyaQaWWogJgU4g06aDKOOxWYZs2j/C80syJsbgNu9ok+gmXUn/WvmwHhvL6MDvjkxHTD2u8iGgH+0GjqH58JTlUxLTA/g3AQvrpdAShezjhiT1Upu7/7PrMnPS8=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1M5zIc-0000Eh-Et; Mon, 18 May 2009 13:38:22 +0400 Date: Mon, 18 May 2009 13:38:20 +0400 From: Eygene Ryabinkin To: Sebastian Mellmann Message-ID: References: <1242637365.31782.4.camel@python.net.t-labs.tu-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1242637365.31782.4.camel@python.net.t-labs.tu-berlin.de> Sender: rea-fbsd@codelabs.ru Cc: freebsd-net@freebsd.org Subject: Re: Not able to set 'bridge' mode X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rea-fbsd@codelabs.ru List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2009 09:38:24 -0000 Sebastian, good day. Mon, May 18, 2009 at 11:02:45AM +0200, Sebastian Mellmann wrote: > I'm trying to set up a FreeBSD 7.2 machine with ipfw dummynet working as > a bridge. > > I've tried this tutorial: > > http://www.scalabledesign.com/articles/dummynet.html > > But it seems that the 'BRIDGE' option for the kernel is deprecated (see > http://lists.freebsd.org/pipermail/freebsd-questions/2008-May/175704.html) Yeah, BRIDGE is obsoleted now. > So my kernel config now looks like this: > > device if_bridge > options IPFIREWALL > options IPFIREWALL_VERBOSE > options IPFIREWALL_VERBOSE_LIMIT > options DUMMYNET > options HZ=1000 > > I've compiled the kernel successfully, but I'm not able to set any > bridge options. > > I've tried to enable bridge mode in ipfw with: > > sysctl net.link.ether.bridge_ipfw=1 > > and got > > sysctl: unknown oid 'net.link.ether.bridge_ipfw' > > Am I missing something? Yeah, seems like you hadn't yet read "man if_bridge" -- it has the collection of relevant sysctl variables in section "PACKET FILTERING". Moreover, man page has instructions on how to get bridge interfaces up and running. -- Eygene _ ___ _.--. # \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard / ' ` , __.--' # to read the on-line manual )/' _/ \ `-_, / # while single-stepping the kernel. `-'" `"\_ ,_.-;_.-\_ ', fsc/as # _.-'_./ {_.' ; / # -- FreeBSD Developers handbook {_.-``-' {_/ #