NAT question

Adam Vande More amvandemore at gmail.com
Wed Aug 13 17:50:21 UTC 2014


On Wed, Aug 13, 2014 at 11:48 AM, Luciano Mannucci <luciano at vespaperitivo.it
> wrote:

>
> Hello, I'm still migrating machines from linux to FreeBSD. I'm wondering if
> my translation from this iptables linux rule
>
> iptables -t nat -A POSTROUTING -s 192.168.7.234/32 -d 172.16.1.0/24 -o
> eth1 -j
> MASQUERADE
>
> (which means moreless if Mr 192.168.7.234 wherever he comes fom passes
> through our eth1 interface to go to 172.16.1 network should get our
> eth1 address instead of his)
>
> is moreless correctly translated in FreeBSD ipnat rules as
>
> map em0 192.168.7.234/32 -> 0/32
>
> or I'm missing something?


You might want to use a more integrated and supported FW such as IPFW or PF
to do NAT.



-- 
Adam


More information about the freebsd-questions mailing list