
mmokrejs at fold
Dec 30, 2010, 11:48 AM
Post #4 of 10
(2959 views)
Permalink
|
Hi Joerg, I tried your patch dpd-fix.diff and it breaks my vpnc. So far I had no problems with "connection terminated by dead peer detection", now I do have. ;-) Once it created tunX device but it disappeared in a minute or so, once although vpnc created the tunnel it died too quickly. I am on i686-based computer. I havne't seen so far these messages in /var/log/messages . Another user whom I have forwarded your patch replied also with bad results: <quote> Thanks for the pointers. I tried the patch, but it is actually worse. The latest Gentoo version gets me this: VPNC started in foreground... lifetime status: 0 of 3600 seconds used, 0|0 of 4608000 kbytes used got late ike packet: 92 bytes got r-u-there ack lifetime status: 300 of 3600 seconds used, 0|0 of 4608000 kbytes used lifetime status: 300 of 3600 seconds used, 0|0 of 4608000 kbytes used got late ike packet: 92 bytes got r-u-there ack lifetime status: 600 of 3600 seconds used, 0|0 of 4608000 kbytes used lifetime status: 601 of 3600 seconds used, 0|0 of 4608000 kbytes used got late ike packet: 92 bytes got r-u-there ack lifetime status: 900 of 3600 seconds used, 0|0 of 4608000 kbytes used lifetime status: 900 of 3600 seconds used, 0|0 of 4608000 kbytes used got late ike packet: 92 bytes got r-u-there ack After applying the patch the r-u-there acks are ignored and I get a disconnect very soon: VPNC started in foreground... lifetime status: 0 of 3600 seconds used, 0|0 of 4608000 kbytes used got late ike packet: 92 bytes ignoring r-u-there ack 788529152 (expecting 795641883) lifetime status: 5 of 3600 seconds used, 0|0 of 4608000 kbytes used lifetime status: 5 of 3600 seconds used, 0|0 of 4608000 kbytes used got late ike packet: 92 bytes ignoring r-u-there ack 788529152 (expecting 795641883) lifetime status: 10 of 3600 seconds used, 0|0 of 4608000 kbytes used lifetime status: 10 of 3600 seconds used, 0|0 of 4608000 kbytes used got late ike packet: 92 bytes ignoring r-u-there ack 788529152 (expecting 795641883) lifetime status: 15 of 3600 seconds used, 0|0 of 4608000 kbytes used lifetime status: 15 of 3600 seconds used, 0|0 of 4608000 kbytes used got late ike packet: 92 bytes ignoring r-u-there ack 788529152 (expecting 795641883) lifetime status: 20 of 3600 seconds used, 0|0 of 4608000 kbytes used lifetime status: 20 of 3600 seconds used, 0|0 of 4608000 kbytes used got late ike packet: 92 bytes ignoring r-u-there ack 788529152 (expecting 795641883) lifetime status: 25 of 3600 seconds used, 0|0 of 4608000 kbytes used lifetime status: 25 of 3600 seconds used, 0|0 of 4608000 kbytes used got late ike packet: 92 bytes ignoring r-u-there ack 788529152 (expecting 795641883) dead peer detected, terminating lifetime status: 30 of 3600 seconds used, 0|0 of 4608000 kbytes used S7.10 send ipsec termination message [2010-12-30 18:21:17] S7.11 send isakmp termination message [2010-12-30 18:21:17] S8 close_tunnel [2010-12-30 18:21:17] S9 cleanup [2010-12-30 18:21:18] </quote> Joerg Mayer wrote: > On Tue, Dec 28, 2010 at 12:09:26PM +0200, Mihai Maties wrote: >> The Dead Peer Detection mechanism implemented in vpnc has a small >> issue. A lot of people are complaining about connections being dropped >> with the following error message logged: >> >> "connection terminated by dead peer detection" > ... >> I created a patch [1] that uses htonl/ntohl macros to fix this. > > Great find! I don't know how much time I spent trying to find out the > cause. > I've used your idea and created a different patch. The difference I intend > with my version of the patch is to convert the data to native format > immediately on receiving the data and only converting it back to network > order when sending. The patch is compile tested only. > Can you please test and report back? I'll be on holiday for the next three > week so don't worry if I don't get back immediately - I *will* add this > fix in one form or another. > > Thanks! > Joerg > > > > _______________________________________________ > vpnc-devel mailing list > vpnc-devel [at] unix-ag > https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel > http://www.unix-ag.uni-kl.de/~massar/vpnc/ _______________________________________________ vpnc-devel mailing list vpnc-devel [at] unix-ag https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel http://www.unix-ag.uni-kl.de/~massar/vpnc/
|