[Openswan Users] IPSec on Centos6.5
n1ck.h0w1tt at gmail.com
Tue Feb 11 03:42:55 EST 2014
What settings do you have in the Draytek (including the advanced
Can you check your subnets (although it is not the issue) as your
virtual_private subnets do not match te rightsubnet (/16 is not
255.255.255.0). Anyway you should not need virtual_private or
In your conn, you will probably also want a leftsubet and leftsoureceip.
Also to get the tunnel up and running I'd remove the esp line, change
auto to add and have the Draytek initiate the connection.
Have you opened the CentOS firewall to udp:500 and the esp protocol? Is
there any reason you are not using PFS?
BTW I have a DrayTek 2710 and 2820 calling me (ClearOS).
On 2014-02-11 05:29, David Fowler wrote:
> Hi all
> I'm having some issues getting Openswan running on a Centos6.5 box to connect to a Draytek router (or even another Centos box) using an IPSec connection
> Here are all my settings (IP addresses have been changed - but consistent here)
> 22.214.171.124 - CentOS server
> 126.96.36.199 - CentOS server bcast
> 188.8.131.52 - router on the other end
> When I run an 'ipsec --up testconenction', I get the following
> ipsec auto --up testconnection
> 104 "testconnection" #3: STATE_MAIN_I1: initiate
> 010 "testconnection" #3: STATE_MAIN_I1: retransmission; will wait 20s for response
> 010 "testconnection" #3: STATE_MAIN_I1: retransmission; will wait 40s for response
> The /var/log/secure file shows
> Feb 11 05:26:29 host pluto: | processing connection testconnection
> Feb 11 05:26:29 host pluto: | handling event EVENT_RETRANSMIT for 184.108.40.206 "testconnection" #3
> Feb 11 05:26:29 host pluto: | sending 592 bytes for EVENT_RETRANSMIT through eth0:500 to 220.127.116.11:500 (using #3)
> Config files and outputs are below
> eth0 Link encap:Ethernet HWaddr 00:16:3E:38:7B:2C
> inet addr:18.104.22.168 Bcast:22.214.171.124 Mask:255.255.248.0
> config setup
> conn testconnection
> 126.96.36.199 188.8.131.52: PSK "mykeyhere"
> IPSEC VERIFY
> Checking your system to see if IPsec got installed and started correctly:
> Version check and ipsec on-path [OK]
> Linux Openswan U2.6.32/K2.6.32-431.3.1.el6.x86_64 (netkey)
> Checking for IPsec support in kernel [OK]
> SAref kernel support [N/A]
> NETKEY: Testing for disabled ICMP send_redirects [OK]
> NETKEY detected, testing for disabled ICMP accept_redirects [OK]
> Checking that pluto is running [OK]
> Pluto listening for IKE on udp 500 [OK]
> Pluto listening for NAT-T on udp 4500 [OK]
> Checking for 'ip' command [OK]
> Checking /bin/sh is not /bin/dash [OK]
> Checking for 'iptables' command [OK]
> Any help would be appreciated.
> Users at lists.openswan.org
> https://lists.openswan.org/mailman/listinfo/users 
> Micropayments: https://flattr.com/thing/38387/IPsec-for-Linux-made-easy 
> Building and Integrating Virtual Private Networks with Openswan:
> http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155 
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users