Simple NAT

Luciano Mannucci luciano at vespaperitivo.it
Tue Jan 27 11:03:31 UTC 2015


On Tue, 27 Jan 2015 00:16:35 +0300
Maxim Filimonov <che at bein.link> wrote:

> ipfw nat 1 config if <outer_iface> log reset same_ports 
> ipfw add 00011 nat 1 ip from <inner_network>/<mask> to any out xmit 
> <outer_iface>
> ipfw add 00012 nat 1 ip from any to <outer_ip> in recv <outer_iface>
> 
> And replace <inner_network>, <mask>, <outer_ip>, <outer_iface> with the 
> appropriate values.
Ok I'll try this.
I suppose I need to reboot... (it's a production server :-)

Tanks,

luciano.
-- 
 /"\                         /Via A. Salaino, 7 - 20144 Milano (Italy)
 \ /  ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250
  X   AGAINST HTML MAIL    /  E-MAIL: posthamster at sublink.sublink.ORG
 / \  AND POSTINGS        /   WWW: http://www.lesassaie.IT/


More information about the freebsd-questions mailing list