Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Oct 2005 10:45:14 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Foo Ji-Haw <jhfoo@nexlabs.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How do you patch a driver?
Message-ID:  <4342957A.7060200@mac.com>
In-Reply-To: <010701c5c89a$f193a0f0$c801a8c0@nexpc>
References:  <00ad01c5c7c8$e187d7d0$c801a8c0@nexpc> <4340AB54.5080101@gmail.com> <004a01c5c7d3$a6fb2170$c801a8c0@nexpc> <43410D8E.60602@gmail.com> <010701c5c89a$f193a0f0$c801a8c0@nexpc>

next in thread | previous in thread | raw e-mail | index | archive | help
Foo Ji-Haw wrote:
[ ...don't top-post, please... ]
> I also have this line in dmesg:
> ipfw2 initialized, divert disabled, rule-based forwarding disabled, default
> to deny, logging disabled
> 
> I see that 'rule-based forwarding' is disabled. Is this what caused the
> error? How can I enable it? I can't find the details on the Handbook.

Add:

options IPFIREWALL_FORWARD
options IPFIREWALL_DIVERT

...to your kernel config file.  This is mostly documented here:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html

Also note that ipfw forwarding alone may not do what you expect, unless you 
make special efforts on the machine being forwarded to, to recognize the 
additional IP addresses.  You might find using the redirect_host or 
redirect_port directives to natd more appropriate for your purposes.

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4342957A.7060200>