Iptables in FreeBSD

Odhiambo Washington odhiambo at gmail.com
Fri Feb 13 04:52:09 PST 2009


On Fri, Feb 13, 2009 at 3:21 PM, Moti Levy <levymoti at gmail.com> wrote:

> On 02/12/09 3:31 AM, kashif imran wrote:
>
>> Hi all
>> I am a new to FreeBsd, can someone translate these iptables rules for
>> freebsd?
>>  /usr/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
>> /usr/sbin/iptables -A FORWARD -i eth0 -o eth1 -m state --state
>> RELATED,ESTABLISHED -j ACCEPT
>> /usr/sbin/iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
>>
>>  regards
>> Imran
>
>
Hmm, depends on whether you are using IPFW, or IPF/IPNat or PF.

Which one do you use?
And BTW, what does the two rules do in Linux? If you say what they do, I can
interpret that into IPFilter/IPNat or PF language on FreeBSD.


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"The only time a woman really succeeds in changing a man is when he is a
baby."
                             - Natalie Wood


More information about the freebsd-questions mailing list