Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Jun 2014 14:40:43 +0800
From:      Erich Dollansky <erich@alogt.com>
To:        None Secure <none_secure@yahoo.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Can you create a FreeBSD gateway, with private IPs, without NAT/divert ?
Message-ID:  <20140607144043.3d4be435@X220.alogt.com>
In-Reply-To: <1402122166.37214.YahooMailNeo@web162101.mail.bf1.yahoo.com>

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

Hi,

On Fri, 6 Jun 2014 23:22:46 -0700 (PDT)
None Secure via freebsd-net <freebsd-net@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


home | help

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