Can you create a FreeBSD gateway, with private IPs, without NAT/divert ?

Erich Dollansky erich at alogt.com
Sat Jun 7 06:40:56 UTC 2014


Hi,

On Fri, 6 Jun 2014 23:22:46 -0700 (PDT)
None Secure via freebsd-net <freebsd-net at freebsd.org> wrote:

> BUT, what if my ISP is giving me a private IP, and my internal
> network is also private IPs ?  External gateway address is
> 192.168.1.2 and internal gateway address is 10.10.10.1 ... the ONLY
> way I could make this work is with natd and ipfw divert rules.
> 
> My question is:  is it possible to have a network of non-routable
> IPs, and a gateway with non-routable Ips on internal and external
> interfaces, and NOT use natd/divert ?  Can it be done with no ipfw
> rules at all, just like I used to ?
> 
what should be the problem? I did some time ago when the ISP gave us
only a single IP address. The local machines connected to the gateway,
the gateway connected via a second interface to the ISP.

Of course, only the gateway was visible from outside. If you want to
access the internal machines from outisde, you will need NAT. 

Erich


More information about the freebsd-net mailing list