Problem in NAT between ipsec gateway and ipsec client
Hi,
I have setup the following network and wish the ipsec client behind a Linux NAT box can connect to ipsec gateway.
---------- --------- ----------- | IPSec | LAN1 | Linux | LAN2 | IPSec | | |--------| NAT |--------| | | client | | Box | | Gateway | ---------- --------- -----------
In the Linux box, I type the following command to enable NAT
echo "1" > /proc/sys/net/ipv4/ip_forward iptables -A FORWARD -i $INT -j ACCEPT iptables -t nat -A POSTROUTING -o $EXT -j MASQUERADE
The client can connect to any pc behind NAT but it cannot make a ipsec tunnel to ipsec gateway. I have used tcpdump to check that there are udp packets (dport 500) coming from IPSec client via NAT to IPSec gateway but the gateway does not response to the packets. Of course, the IPSec client and gateway can work when there is no NAT between.
Any idea or comment? Do I need to patch iptables or kernel? If yes, where can I get the patch? Thanks a lot.
William
_________________________________________________________
人氣交友熱線#9351 話「友」就有
http://hk.yahoo.com/promotions/personals/9351