<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi !<br>&nbsp;&nbsp;&nbsp; From the logs - openswan is trying to connect using 'aggressive mode' - is the watchguard expecting to connect using aggresive mode ?. Aggressive mode is less secure than main mode - unless you are using a roadwarrior configuration - i would recommend that you use main mode.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks !<br><br><hr id="stopSpelling">Date: Tue, 25 Nov 2008 17:33:16 +0000<br>From: Tudor.Georgescu@aardman.com<br>To: users@openswan.org<br>Subject: [Openswan Users] perhaps peer likes no proposal<br><br><title>perhaps peer likes no proposal</title>











<font size="2">Hey guys,<br>
I have been struggling with this for a few days now. I've become thoroughly stuck on this on what I believe may be phase2.<br>
<br>
I am trying to connect openswan-2.6.19 [left] (and openswan-2.6.19 upto the .19 release) to a WatchGuard Firebox [right].<br>
<br>
Many releases ago, this was once possible: <a>http://wiki.openswan.org/index.php/Interop/InteroperatingWatchguard</a><br>
<br>
Unfortunately following many tutorials and the Paul and Ken book has still left me in the dark.<br>
<br>
I have been on the #openswan irc channel and they suggested that "perhaps peer likes no proposal" means I'm not matching IKE or ESP properly. I've checked, double checked, and thrice checked both ends, but I'm still getting stuck.<br>
<br>
Settings-wise what is still a mystery to me is the tunnel settings. On the Watchguard end, its configured to give me the virtual IP of a.b.c.d, which puts me on the network w.x.y.z/24. I've tried various rightnexthop/rightsubnet settings, but that does not appear to make any changes to the connection. Am I barking up the wrong tree? Does the tunnel have anything to do with "perhaps peer likes no proposal"?<br>
<br>
Any explinations of what the following means would also be much appreciated. I.e. what is STATE_AGGR_I2 trying to achieve?<br>
localhost pluto[27033]: "myvpn" #1: retransmitting in response to duplicate packet; already STATE_AGGR_I2<br>
localhost pluto[27033]: "myvpn" #1: discarding duplicate packet -- exhausted retransmission; already STATE_AGGR_I2<br>
<br>
Thank you in advance guys and gals.<br>
<br>
Tudor<br>
<br>
# /etc/ipsec.conf - Openswan IPsec configuration file<br>
version 2.0&nbsp;&nbsp;&nbsp;&nbsp; # conforms to second version of ipsec.conf specification<br>
<br>
config setup<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; interfaces=%defaultroute<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nat_traversal=yes<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OE=off<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protostack=netkey<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uniqueids=yes<br>
<br>
conn myvpn<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pfs=yes<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; authby=secret<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=tunnel<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aggrmode=yes<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; keyexchange=ike<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; auth=esp<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ike=aes256-sha1-modp1024<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; esp=aes256-sha1;modp1024<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; left=10.0.0.128<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; leftsubnet=10.0.0.0/24<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; leftnexthop=10.0.0.138<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; leftid=my@id.com<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; right=&lt;vpn.public.ip&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #rightnexthop=a.b.c.d<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rightsubnet=w.x.y.z/24<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rightid=&lt;vpn.public.ip&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; auto=start<br>
<br>
The output was from rel 2.6.18, but I get the same from 2.6.19.<br>
<br>
/var/log/messages<br>
<br>
localhost pluto[26477]: shutting down<br>
localhost pluto[26477]: forgetting secrets<br>
localhost pluto[26477]: "myvpn": deleting connection<br>
localhost pluto[26477]: "myvpn" #1: deleting state (STATE_AGGR_I2)<br>
localhost pluto[26477]: "myvpn": request to delete a unrouted policy with netkey kernel --- experimental<br>
localhost pluto[26477]: shutting down interface lo/lo ::1:500<br>
localhost pluto[26477]: shutting down interface lo/lo 127.0.0.1:4500<br>
localhost pluto[26477]: shutting down interface lo/lo 127.0.0.1:500<br>
localhost pluto[26477]: shutting down interface eth0/eth0 10.0.0.128:4500<br>
localhost pluto[26477]: shutting down interface eth0/eth0 10.0.0.128:500<br>
localhost ipsec__plutorun: Starting Pluto subsystem...<br>
localhost pluto[27033]: Starting Pluto (Openswan Version 2.6.18; Vendor ID OE}ZvZ@M[OWD) pid:27033<br>
localhost pluto[27033]: Setting NAT-Traversal port-4500 floating to on<br>
localhost pluto[27033]:&nbsp;&nbsp;&nbsp; port floating activation criteria nat_t=1/port_float=1<br>
localhost pluto[27033]:&nbsp;&nbsp;&nbsp; including NAT-Traversal patch (Version 0.6c)<br>
localhost pluto[27033]: using /dev/urandom as source of random entropy<br>
localhost pluto[27033]: ike_alg_register_enc(): Activating OAKLEY_TWOFISH_CBC_SSH: Ok (ret=0)<br>
localhost pluto[27033]: ike_alg_register_enc(): Activating OAKLEY_TWOFISH_CBC: Ok (ret=0)<br>
localhost pluto[27033]: ike_alg_register_enc(): Activating OAKLEY_SERPENT_CBC: Ok (ret=0)<br>
localhost pluto[27033]: ike_alg_register_enc(): Activating OAKLEY_AES_CBC: Ok (ret=0)<br>
localhost pluto[27033]: ike_alg_register_enc(): Activating OAKLEY_BLOWFISH_CBC: Ok (ret=0)<br>
localhost pluto[27033]: ike_alg_register_hash(): Activating OAKLEY_SHA2_512: Ok (ret=0)<br>
localhost pluto[27033]: ike_alg_register_hash(): Activating OAKLEY_SHA2_256: Ok (ret=0)<br>
localhost pluto[27033]: starting up 1 cryptographic helpers<br>
localhost pluto[27034]: using /dev/urandom as source of random entropy<br>
localhost pluto[27033]: started helper pid=27034 (fd:7)<br>
localhost pluto[27033]: Using Linux 2.6 IPsec interface code on 2.6.26.5-28.fc8 (experimental code)<br>
localhost pluto[27033]: ike_alg_register_enc(): WARNING: enc alg=0 not found in constants.c:oakley_enc_names<br>
localhost pluto[27033]: ike_alg_register_enc(): Activating &lt;NULL&gt;: Ok (ret=0)<br>
localhost pluto[27033]: ike_alg_register_enc(): WARNING: enc alg=0 not found in constants.c:oakley_enc_names<br>
localhost pluto[27033]: ike_alg_add(): ERROR: Algorithm already exists<br>
localhost pluto[27033]: ike_alg_register_enc(): Activating &lt;NULL&gt;: FAILED (ret=-17)<br>
localhost pluto[27033]: ike_alg_register_enc(): WARNING: enc alg=0 not found in constants.c:oakley_enc_names<br>
localhost pluto[27033]: ike_alg_add(): ERROR: Algorithm already exists<br>
localhost pluto[27033]: ike_alg_register_enc(): Activating &lt;NULL&gt;: FAILED (ret=-17)<br>
localhost pluto[27033]: ike_alg_register_enc(): WARNING: enc alg=0 not found in constants.c:oakley_enc_names<br>
localhost pluto[27033]: ike_alg_add(): ERROR: Algorithm already exists<br>
localhost pluto[27033]: ike_alg_register_enc(): Activating &lt;NULL&gt;: FAILED (ret=-17)<br>
localhost pluto[27033]: ike_alg_register_enc(): WARNING: enc alg=0 not found in constants.c:oakley_enc_names<br>
localhost pluto[27033]: ike_alg_add(): ERROR: Algorithm already exists<br>
localhost pluto[27033]: ike_alg_register_enc(): Activating &lt;NULL&gt;: FAILED (ret=-17)<br>
localhost pluto[27033]: ike_alg_register_enc(): WARNING: enc alg=0 not found in constants.c:oakley_enc_names<br>
localhost pluto[27033]: ike_alg_add(): ERROR: Algorithm already exists<br>
localhost pluto[27033]: ike_alg_register_enc(): Activating &lt;NULL&gt;: FAILED (ret=-17)<br>
localhost pluto[27033]: Changed path to directory '/etc/ipsec.d/cacerts'<br>
localhost pluto[27033]: Changed path to directory '/etc/ipsec.d/aacerts'<br>
localhost pluto[27033]: Changed path to directory '/etc/ipsec.d/ocspcerts'<br>
localhost pluto[27033]: Changing to directory '/etc/ipsec.d/crls'<br>
localhost pluto[27033]:&nbsp;&nbsp; Warning: empty directory<br>
localhost pluto[27033]: Changing back to directory '/tmp' failed - (2 No such file or directory)<br>
localhost pluto[27033]: Changing back to directory '/tmp' failed - (2 No such file or directory)<br>
localhost pluto[27033]: added connection description "myvpn"<br>
localhost pluto[27033]: listening for IKE messages<br>
localhost pluto[27033]: adding interface eth0/eth0 10.0.0.128:500<br>
localhost pluto[27033]: adding interface eth0/eth0 10.0.0.128:4500<br>
localhost pluto[27033]: adding interface lo/lo 127.0.0.1:500<br>
localhost pluto[27033]: adding interface lo/lo 127.0.0.1:4500<br>
localhost pluto[27033]: adding interface lo/lo ::1:500<br>
localhost pluto[27033]: loading secrets from "/etc/ipsec.secrets"<br>
localhost pluto[27033]: "myvpn": request to add a prospective erouted policy with netkey kernel --- experimental<br>
localhost pluto[27033]: "myvpn" #1: initiating Aggressive Mode #1, connection "myvpn"<br>
localhost pluto[27033]: | setting sec: 1<br>
localhost pluto[27033]: "myvpn" #1: received Vendor ID payload [Dead Peer Detection]<br>
localhost pluto[27033]: "myvpn" #1: received Vendor ID payload [draft-ietf-ipsec-nat-t-ike-02_n] method set to=106<br>
localhost pluto[27033]: "myvpn" #1: Aggressive mode peer ID is ID_IPV4_ADDR: '&lt;vpn.public.ip&gt;'<br>
localhost pluto[27033]: "myvpn" #1: NAT-Traversal: Result using draft-ietf-ipsec-nat-t-ike-02/03: i am NATed<br>
localhost pluto[27033]: "myvpn" #1: Aggressive mode peer ID is ID_IPV4_ADDR: '&lt;vpn.public.ip&gt;'<br>
localhost pluto[27033]: "myvpn" #1: transition from state STATE_AGGR_I1 to state STATE_AGGR_I2<br>
localhost pluto[27033]: "myvpn" #1: STATE_AGGR_I2: sent AI2, ISAKMP SA established&nbsp; {auth=OAKLEY_PRESHARED_KEY cipher=aes_256 prf=oakley_sha group=modp1024}<br>
localhost pluto[27033]: "myvpn" #2: initiating Quick Mode PSK+ENCRYPT+TUNNEL+PFS+UP+AGGRESSIVE+IKEv2ALLOW {using isakmp#1 msgid:131f6317 proposal=AES(12)_256-SHA1(2)_160 pfsgroup=OAKLEY_GROUP_MODP1024}<br>
localhost pluto[27033]: "myvpn" #1: retransmitting in response to duplicate packet; already STATE_AGGR_I2<br>
localhost pluto[27033]: "myvpn" #1: retransmitting in response to duplicate packet; already STATE_AGGR_I2<br>
localhost pluto[27033]: "myvpn" #1: discarding duplicate packet -- exhausted retransmission; already STATE_AGGR_I2<br>
localhost pluto[27033]: "myvpn" #2: max number of retransmissions (2) reached STATE_QUICK_I1.&nbsp; No acceptable response to our first Quick Mode message: perhaps peer likes no proposal<br>
localhost pluto[27033]: "myvpn" #2: starting keying attempt 2 of at most 3<br>
Nov 21 18:02:42 localhost pluto[27033]: "myvpn" #3: initiating Quick Mode PSK+ENCRYPT+TUNNEL+PFS+UP+AGGRESSIVE+IKEv2ALLOW to replace #2 {using isakmp#1 msgid:bd4d55d2 proposal=AES(12)_256-SHA1(2)_160 pfsgroup=OAKLEY_GROUP_MODP1024}<br>
localhost pluto[27033]: "myvpn" #3: max number of retransmissions (2) reached STATE_QUICK_I1.&nbsp; No acceptable response to our first Quick Mode message: perhaps peer likes no proposal<br>
localhost pluto[27033]: "myvpn" #3: starting keying attempt 3 of at most 3<br>
localhost pluto[27033]: "myvpn" #4: initiating Quick Mode PSK+ENCRYPT+TUNNEL+PFS+UP+AGGRESSIVE+IKEv2ALLOW to replace #3 {using isakmp#1 msgid:947f04f5 proposal=AES(12)_256-SHA1(2)_160 pfsgroup=OAKLEY_GROUP_MODP1024}<br>
localhost pluto[27033]: "myvpn" #4: max number of retransmissions (2) reached STATE_QUICK_I1.&nbsp; No acceptable response to our first Quick Mode message: perhaps peer likes no proposal</font><BR>


<br>
- --------------------------------------------------------------------<br>
http://www.aardman.com<br>
<br>
______________________________________________________________________<br>
This message has been checked for all known viruses by the MessageLabs<br></body>
</html>