From owner-freebsd-current@FreeBSD.ORG Thu Aug 19 08:56:07 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0ADB616A4CE for ; Thu, 19 Aug 2004 08:56:07 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4015E43D53 for ; Thu, 19 Aug 2004 08:56:06 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i7J8u2vj026056 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 Aug 2004 11:56:03 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id i7J8txqM076318; Thu, 19 Aug 2004 11:55:59 +0300 (EEST) (envelope-from ru) Date: Thu, 19 Aug 2004 11:55:59 +0300 From: Ruslan Ermilov To: Sean McNeil Message-ID: <20040819085559.GF76085@ip.net.ua> References: <1092881027.999.3.camel@server.mcneil.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SnV5plBeK2Ge1I9g" Content-Disposition: inline In-Reply-To: <1092881027.999.3.camel@server.mcneil.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new cc: freebsd-current@freebsd.org Subject: Re: ipfw2 broken X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Aug 2004 08:56:07 -0000 --SnV5plBeK2Ge1I9g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 18, 2004 at 07:03:47PM -0700, Sean McNeil wrote: > How do I get the ipfw2 module to compile with divert? It doesn't > recognize the following in my config file when building the module: >=20 > options IPFIREWALL_FORWARD > options IPDIVERT >=20 > Also, the /etc/rc.d/ipfw script is looking for an invalid sysctl var: >=20 > net.inet.ip.fw.enable >=20 > and it will fail if I have the IPFIREWALL option which compiles the code > into the kernel because it will try to load and return 1 on a failure. >=20 > This is an amd64 system. >=20 Modules build is decoupled from header files produced by config(8) except for opt_global.h, and this one doesn't have firewall options. If you need firewall with divert(4) sockets, you have to compile it statically into your kernel. Alternatively, you can compile your kernel with ``options IPDIVERT'' and compile the ipfw module with ipdivert support by modifying the src/sys/modules/ipfw/Makefile to add -DIPDIVERT to CFLAGS. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --SnV5plBeK2Ge1I9g Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBJGsfqRfpzJluFF4RAqsoAJ4iCZDdqyhNnLrf9qZdQJWoh5ud9wCgiGb1 iGQzyZZBCRaqTqdkgUDxX7g= =4Qet -----END PGP SIGNATURE----- --SnV5plBeK2Ge1I9g--