Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Dec 2004 11:06:03 +0100
From:      John Angelmo <john@veidit.net>
To:        freebsd-net@freebsd.org
Subject:   NAT problem with public network
Message-ID:  <41C15E0B.2050503@veidit.net>

next in thread | raw e-mail | index | archive | help
Hello

I have a network setup like this:

xl0: External:213.115.251.220
xl1: DMZ: 213.115.148.64/28
xl2: Internal: 192.168.20.0/24

Now my problem seems to be that I need to get external connection for my 
Internal network but not nating the DMZ

To simplify it all /etc/natd.conf has this line:
interface xl0

and to get nat to work I just use:
ipfw add divert natd log all from any to any via xl0

but that would nat all the traffic, how should I do just to use nat for 
my 192.168.20.0/24 network and not the 213.115.148.64/28 network?

/John



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