Re: ipfw2 broken

From: Ruslan Ermilov <ru_at_freebsd.org>
Date: Thu, 19 Aug 2004 11:55:59 +0300
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:
> 
> options         IPFIREWALL_FORWARD
> options         IPDIVERT
> 
> Also, the /etc/rc.d/ipfw script is looking for an invalid sysctl var:
> 
> net.inet.ip.fw.enable
> 
> 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.
> 
> This is an amd64 system.
> 
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,
-- 
Ruslan Ermilov
ru_at_FreeBSD.org
FreeBSD committer

Received on Thu Aug 19 2004 - 06:56:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:07 UTC