Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446142 - net-misc/openconnect-4.07 - after 30 minutes the VPN reconnects but only has a partially working connection
Summary: net-misc/openconnect-4.07 - after 30 minutes the VPN reconnects but only has ...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Schultz
URL: http://www.infradead.org/openconnect/
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2012-12-05 19:27 UTC by Matthew Schultz
Modified: 2014-03-10 13:24 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Schultz 2012-12-05 19:27:12 UTC
I'm currently trying to get upstream to fix a CSTP restart problem that happens every 30 minutes with 4.07.  It will do a CSTP restart  every 30 minutes for me which subsequently creates a partially working connection (ping works, tcp packets don't).

Reproducible: Always

Steps to Reproduce:
1. /etc/init.d/openconnect.vpn0 start
2. Verify all sockets operate properly on the vpn (ping, svn, http, etc)
3. Wait 30 minutes
4. Syslog will show a reconnect.
5. Verify ping works
6. Try another service (e.g. svn up)
7. svn up will fail to connect.
Actual Results:  
After 30 minutes the vpn reconnects but only has a partially working connection.

Expected Results:  
After 30 minutes vpn should reconnect and all sockets should continue working.
Comment 1 Matthew Schultz 2012-12-05 19:34:46 UTC
Workaround in the mean time:

Restart the service every 30 minutes manually (you can use the init script) 

--or--

Copy the 4.07 ebuild to your local portage overlay and rename it to 3.20, then change these lines:

$(use_enable nls ) \
$(use_with openssl ) \
$(use_with gnutls )

to:

$(use_enable nls )

Note that when downgrading, you will lose gnutls support and you must use openssl.
Comment 2 Matthew Schultz 2012-12-26 03:34:00 UTC
It appears the default MTU is set too low.  Overriding the default and setting it to --mtu 1406 seems to keep the connection more stable.  I'm still working with upstream to see what they can do about this.
Comment 3 Martin Dummer 2013-01-09 06:46:24 UTC
I never had this problem, I'm using openconnect more than 12 months several hours a week, some days 6 hours and longer without interruption. 
The MTU of the tun0 interface is 1300 for my config, I don't know how to set this so I assume it's a configuration information coming from the server side. 
Just for information: the underlying ppp0 or eth0 interfaces (depending of the internet connection type) have both MTU 1500.
Comment 4 Matthew Schultz 2013-01-09 13:33:21 UTC
(In reply to comment #3)
> I never had this problem, I'm using openconnect more than 12 months several
> hours a week, some days 6 hours and longer without interruption. 
> The MTU of the tun0 interface is 1300 for my config, I don't know how to set
> this so I assume it's a configuration information coming from the server
> side. 
> Just for information: the underlying ppp0 or eth0 interfaces (depending of
> the internet connection type) have both MTU 1500.

My MTU defaults to 951 if I don't set it.  The MTU for the vpn is defined in the tun interface.  When you want to override the MTU, you just set it in vpnopts_(vpn tunnel name) like this:

vpnopts_vpn0="--mtu 1406 ...other flags"

1406 seems to be the maximum MTU allowed.  I haven't had any problems when I override the MTU and set it to this when testing.  I'm still trying to get information from upstream as to why the default MTU is so low.
Comment 5 Julian Ospald 2013-06-23 13:07:04 UTC
is this still present with 4.08 or 5.01?
Comment 6 Matthew Schultz 2014-03-10 13:24:14 UTC
I'm no longer able to test this since I don't have access to an anyconnect vpn anymore and since nobody else has had this problem, I'm closing this bug.