ipfw: getsockopt(IP_FW_ADD): Invalid argument

Ian Smith smithi at nimnet.asn.au
Wed Jul 6 14:44:39 UTC 2011


On Wed, 6 Jul 2011, Unga wrote:
 > On Tue, 7/5/11, Ian Smith <smithi at nimnet.asn.au> wrote:
 > > > Does anybody successfully use the "ipfw fwd"? If so
 > > > in which FreeBSD version?
 > 
 > > Not I, but many do.  On the face of it the rule looks
 > > correct.  Do you 
 > > have a TCP service running on localhost:1234 ?  Does
 > > wlan0 exist?  You 
 > > may do better posting to the freebsd-ipfw list, with more
 > > information.
 > 
 > > cheers, Ian
 >
 > Hi Ian
 >
 > I have added 'options IPFIREWALL' and rebuilt all, now 'ipfw fwd' 
 > works well.
 >
 > So the 'options IPFIREWALL_FORWARD' alone is insufficient, the
 > 'options IPFIREWALL' is also required.

Right; I guess if you're building it into kernel you have to configure 
all relevant options there too.  That could be more explicitly stated.

 > Thank you and all others who helped me in this regard.

Glad it's working.  Another win for the collective wisdom ..

cheers, Ian


More information about the freebsd-questions mailing list