Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Nov 2008 06:02:32 -0800
From:      Chris Pratt <eagletree@hughes.net>
To:        FreeBSD-Questions Questions <freebsd-questions@freebsd.org>
Subject:   Re: IPFW Rule
Message-ID:  <F7375748-6B90-41D2-B13E-5EE4EA16E878@hughes.net>
In-Reply-To: <BBA74CAD-5F63-4E4E-BE18-8424ED5FEEC2@comcast.net>
References:  <6B2C3766-25F4-454F-9597-12186B564060@comcast.net> <20081122002501.P3638@wojtek.tensor.gdynia.pl> <BBA74CAD-5F63-4E4E-BE18-8424ED5FEEC2@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On Nov 22, 2008, at 5:43 AM, Tom Marchand wrote:

>
> On Nov 21, 2008, at 6:25 PM, Wojciech Puchar wrote:
>
>>> I am trying to add a IPFW rule to forward traffic but I keep  
>>> getting the message "ipfw: getsockopt(IP_FW_ADD): Invalid  
>>> argument".  The rule I am trying to add looks like this:
>>>
>>> ipfw add 600 fwd 192.169.2.3, 6000 tcp from 192.169.2.3 to any 80
>>>
>>> I do have IP Forwarding enabled.  Any ideas what I am doing wrong?
>>
>> rule looks OK, but your message clearly suggest you DO NOT have IP  
>> forwarding enabled
>
> Interesting sysctl reports that forwarding is enabled:
>
> $ sysctl -a |grep forward
> net.inet.ip.forwarding: 1
>
> IP forwarding is enabled in GENERIC isn't it?  I am running 6.1- 
> RELEASE FreeBSD 6.1-RELEASE

I'm looking at a 6.2 box that does forwarding. The GENERIC
kernel does not have this line:

options IPFIREWALL_FORWARD

In my kernel, I am using that. Recollection is you need this
specified explicitly. I could be wrong.


> #0._______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions- 
> unsubscribe@freebsd.org"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F7375748-6B90-41D2-B13E-5EE4EA16E878>