Networking Forums

Networking Forums > Computer Networking > Linux Networking > FreeS/WAN setup problems

Reply
Thread Tools Display Modes

FreeS/WAN setup problems

 
 
Sebastian Haas
Guest
Posts: n/a

 
      06-29-2004, 05:50 AM
Hello!

I'm setting up an VPN tunnel with FreeS/WAN 2.06 and Linux Kernel 2.4.25.
But i'm a little bit in trouble with the connection establishing.

ipsec auto --up S2I:
104 "S2I" #1: STATE_MAIN_I1: initiate
106 "S2I" #1: STATE_MAIN_I2: sent MI2, expecting MR2
108 "S2I" #1: STATE_MAIN_I3: sent MI3, expecting MR3
004 "S2I" #1: STATE_MAIN_I4: ISAKMP SA established
112 "S2I" #2: STATE_QUICK_I1: initiate
003 "S2I" #2: prepare-client command exited with status 127
003 "S2I" #2: route-client command exited with status 127
032 "S2I" #2: STATE_QUICK_I1: internal error
010 "S2I" #2: STATE_QUICK_I1: retransmission; will wait 20s for response
003 "S2I" #2: prepare-client command exited with status 127
003 "S2I" #2: route-client command exited with status 127
032 "S2I" #2: STATE_QUICK_I1: internal error
010 "S2I" #2: STATE_QUICK_I1: retransmission; will wait 40s for response
003 "S2I" #2: prepare-client command exited with status 127
003 "S2I" #2: route-client command exited with status 127
032 "S2I" #2: STATE_QUICK_I1: internal error
031 "S2I" #2: max number of retransmissions (2) reached STATE_QUICK_I1.
No acceptable response to our first Quick Mode message: perhaps peer likes
no proposal 000 "S2I" #2: starting keying attempt 2 of an unlimited
number, but releasing whack

As you could see he could exchange the keys (we're using RSA private
keys). The command errors prepare-client/route-client is caused by a
missing command (ip route but i've only route - is this the same?).

ipsec auto --status:
000 interface ipsec0/eth0 192.168.2.2
000 interface ipsec1/eth1 192.168.1.200
000 %myid = (none)
000 debug raw+crypt+parsing+emitting+control+lifecycle+klips +dns+oppo+controlmo
re
000
000 "S2I":
192.168.1.0/24===192.168.2.2[@invoices.ems-wuensche.com]...192.168.2.1
[@services.ems-wuensche.com]===192.168.0.0/24; unrouted; eroute owner: #0
000 "S2I": ike_life: 3600s; ipsec_life: 28800s; rekey_margin: 540s;
rekey_fuzz: 100%; keyingtries: 0 000 "S2I": policy:
RSASIG+ENCRYPT+COMPRESS+PFS+UP; prio: 24,24; interface: eth0; 000 "S2I":
newest ISAKMP SA: #1; newest IPsec SA: #0; 000 000 #5: "S2I"
STATE_QUICK_I1 (sent QI1, expecting QR1); EVENT_RETRANSMIT in 33s 000 #1:
"S2I" STATE_MAIN_I4 (ISAKMP SA established); EVENT_SA_REPLACE in 2654s;
newest ISAKMP 000

He hangs in phase IPSEC SA establishing.

Network setup:

Left net VPN gateway 1 VPN gateway 2 Right net
192.168.0.0 <--> 192.168.2.1 <--> 192.168.2.2 <--> 192.168.1.0

Settings gateway 1:
Interfaces:
eth0 - 192.168.2.1
eth1 - 192.168.0.200

route says:
192.168.0.0 eth1
192.168.2.0 eth0
default dev eth0

Settings gateway 2:
Interfaces:
eth0 - 192.168.2.2
eth1 - 192.168.1.200

and route says:
192.168.1.0 eth1
192.168.2.0 eth0
default dev eth0

ipsec.conf:
config setup
interfaces="ipsec0=eth0 ipsec1=eth1"
klipsdebug=all
plutodebug=all
pluto=yes
rp_filter=0

conn %default
keyingtries=0
keylife=8h
compress=yes

conn S2I
# Left security gateway, subnet behind it, next hop toward right.
left=192.168.2.1
leftsubnet=192.168.0.0/24
leftnexthop=
leftid=@service.ems-wuensche.com
leftrsasigkey=...
# Right security gateway, subnet behind it, next hop toward left.
right=192.168.2.2
rightsubnet=192.168.1.0/24
rightnexthop=
rightid=@invoices.ems-wuensche.com
rightrsasigkey=...
auto=add

Any help would be very appreciated.

--
Mit freundlichen Grüßen / Best Regards
Sebastian Haas
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can not start conn with FreeS/WAN U2.04/K2.2.0 (kernel 2.4.26) afterUpdate from 1.96 Natanael Mignon Linux Networking 2 07-12-2005 12:29 PM
FreeS/WAN <-> RHEL 3's KAME HOWTO? Dan Stromberg Linux Networking 0 11-05-2004 12:35 AM
Setup Problems Don Broadband Hardware 2 07-01-2004 01:14 PM
FreeS/WAN VPN over WLAN jason Linux Networking 0 01-22-2004 12:20 AM
Suse 8.2 and Frees/Wan Marco Casole Linux Networking 0 11-06-2003 08:55 AM



1 2 3 4 5 6 7 8 9 10 11