LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-10-2010, 10:58 PM   #1
ajayan
Member
 
Registered: Dec 2007
Posts: 89

Rep: Reputation: 16
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix configuration problem -> domain mx has moved but old mail host still local stardotstar Linux - Server 2 10-24-2009 11:49 PM
try install host ; bind9-host uninstalled , how to undo sudo apt-get install host? shojaru Linux - Newbie 0 06-11-2009 12:45 AM
Establishing a VPN connection (host to host) using IPSec services adithya24 Linux - Networking 9 06-10-2009 08:44 AM
How to configure Host-to-Host IPSec (Free SWAN) gpagedar Linux - Security 2 10-18-2003 05:22 AM
/etc/host configuration problem Stephanie Linux - General 7 07-24-2002 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration