Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jan 2015 12:03:30 +0100
From:      Luciano Mannucci <luciano@vespaperitivo.it>
To:        freebsd-questions@freebsd.org
Subject:   Re: Simple NAT
Message-ID:  <3kWlRj6h2RzRRrr@baobab.bilink.it>
In-Reply-To: <355611034.aCCaRRifNT@thinkpad>
References:  <3kWFlD70VnzRRrw@baobab.bilink.it> <20150126213658.48423c08.freebsd@edvax.de> <355611034.aCCaRRifNT@thinkpad>

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

On Tue, 27 Jan 2015 00:16:35 +0300
Maxim Filimonov <che@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@sublink.sublink.ORG
 / \  AND POSTINGS        /   WWW: http://www.lesassaie.IT/


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3kWlRj6h2RzRRrr>