Problem with IPsec Host to Host Configuration
Hi all,
i am trying to configure an IPsec based Host to Host Vpn (PSK) using openswan 2.6 on my Centos machines.Me having two Static IPs and and is coming through two ADSL modems.my lan Configuartion is 192.168.20.0/24 for one modem and modem's nternal Ip is 192.168.20.254 and Second is configured as 192.168.1.0/24 and Modem's internal Ip is 192.168.1.254.So i am trying to configure IPSEC host to Host between two these networks.Configuration is made on 192.168.1.81 ans 192.168.20.50.In both modem Port 500 (UDP) is NAT towards corresponding IP.here is my Configuartion.Also enabled ip forwarding in both machines. /etc/ipsec.conf config setup nat_traversal=yes conn net-to-net authby=secret left=122.*.*.* (Static IP) leftsubnet=192.168.20.0/24 leftnexthop=%defaultroute right=69.*.*.* (Static IP) rightsubnet=192.168.1.0/24 rightnexthop=%defaultroute auto=start /etc/ipsec.secrets 122.*.*.*.* 69.*.*.* : PSK "linuxisbetterthanwindows" The same configuration is made on the right hand side.I think its problem with working behind the NAT.How can i solve the Issue.Any hep wil be appreciated. Thanks, Ajayan |
All times are GMT -5. The time now is 04:27 AM. |