NAT over multiple subnets

Chuck Swiger cswiger at mac.com
Thu Sep 8 21:09:37 PDT 2005


Stephen Moore wrote:
[ ...chaining multiple NATs... ]
> Any response appreciated.

The simplest way to deal with that is to add interfaces to the machine running 
natd and put one NIC on each distinct subnet.

You can also use supernetting to combine a 192.168.1.0/24 subnet and a 
192.168.2.0/24 subnet by giving your natd box a /22 netmask instead.  You might 
also need to set up a route pointing to the 192.168.1.0/24 subnet on the natd 
box, so it knows where to send the traffic.

-- 
-Chuck



More information about the freebsd-net mailing list