openvpn client breaks on connection loss
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openvpn (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
openvpn version 2.3.11-1ubuntu2
Kubuntu 16.10, all latest packages
If while an openvpn connection is active, and said connection provides the main internet access, if a short underlying connection loss occurs, such as when used over wifi, the VPN connection will fail completely, however remain active. What then ends up happening is the client will attempt to re-connect but immediately fail as it's using the existing, broken, VPN connection to connect to the server. The only way to resume network connections to normal is to manually de-activate the openvpn client via the network manager (ie; tell the active openVPN connection to disconnect).
On an occurrence of a connection loss, the openVPN client should be able to re-connect via the underlying connection, not via it's own connection...
I'd almost consider this a configuration issue instead of a bug.
I wonder would a static host route to your vpn target fix the issue. vpn-main- dev> scope host
Like:
ip route add <open-vpn-server> dev <your-non-
I agree that if that would be the solution that openvpn could have an option to "exclude my own connection". Maybe it has and I don't know, but for now I'd wait to see if that is a valid workaround for now and then we can still suggest that to openvpn or otherwise.