IP Nat or forward
gtaylor at riverviewtech.net
Wed Apr 6 22:34:08 CEST 2005
Ok, one of us is not understanding the other, and it is likely me. Normal
IPSec VPNs run on a netowrk as such:
[Host A] --- LAN --- [Host B] .... (INET) .... [Host C] --- LAN --- [Host D]
Where the LAN between Host A and Host B is one IP subnet and the LAN between
Host C and Host D is another IP subnet, prefferably different than the IP
subnet on the first LAN. The VPN in this scenario would be between Host B
and Host C. Let's suppose that the hosts have the following IP addresses:
Host A's LAN IP address is 172.16.1.1
Host B's LAN IP address is 172.16.1.254
Host B's INet IP address is 126.96.36.199
Host C's INet IP address is 188.8.131.52
Host C's LAN IP address is 172.31.255.254
Host D's LAN IP address is 172.31.255.1
In this case the IPSec VPN would be between Host B's INet address of
184.108.40.206 and Host C's INet address of 220.127.116.11. As far as what
traffic would and would not be NATed, you would NAT all traffic going out to
the INet from Host B's INet IP address of 18.104.22.168 except the IPSec VPN
traffic. More information on how to NAT all traffic but the IPSec VPN
traffic is avaliable with your IPSec VPN software. Ask if you need more
help configuring your NATing on Host B and / or Host C. You (or your
counter part an the other LAN would NAT all traffic going out to the INet
from Host C's INet IP address of 22.214.171.124 except the IPSec VPN traffic.
Because you have the VPN passing traffic from one LAN to the other LAN you
don't normaly need to NAT the traffic at all except for in your case you
have the same IP subnet on both LANs which will mess up normal routing and
thus you have to augment it via NATing. I hope this helps clear up some
things for you.
Grant. . . .
> Thanks! I want to make sure I understand the IPSEC and NAT. I'm
> connecting a PUBLIC address to my FIREWALL but NOT including the gateway
> 126.96.36.199 -> IPSEC -> 192.168.90.1 # a host to host / ip to
> ip VPN
> NAT 192.168.90.1 to 192.168.1.1
> Since the NAT takes place AFTER the IPSEC traffic, do I really need the
> NAT-T enabled?
> Do I just aliase the 192.168.90.1 address or should I do a VLAN?
More information about the netfilter