solution for connection drops on linux with open vpn
I experienced the same connection drops many others have reported. F.i. when torrenting, after 2 minutes, the speed drops to zero, sometimes even the vpn kills itself alltogether.
Tried everything: port forwarding in the torrent client, switching of the firewall on my pc and in the router, setting the max connection to the torrent client to 5 -all to no avail. Finally, i found this solution
add the following line
Works like a charm now (on opensuse Leap 42.2)!
Very interested if this works out for you ass well!
Tried everything: port forwarding in the torrent client, switching of the firewall on my pc and in the router, setting the max connection to the torrent client to 5 -all to no avail. Finally, i found this solution
add the following line
net.ipv4.ip_forward = 1to the file
/etc/sysctl.confI do not use the PIA client (wont run on open suse) but the default open VNP client instead.
Works like a charm now (on opensuse Leap 42.2)!
Very interested if this works out for you ass well!
Comments
what has forwarding packets between separate physical network interfaces like a network router got to do with the symptoms observed?
https://www.privateinternetaccess.com/forum/discussion/23764/ubuntu-16-04-lts-openvpn-setup-working-for-a-long-time-until-recently?
https://www.privateinternetaccess.com/pages/client-support/ubuntu-openvpn
I have had to create my own script to take the VPN down though, as disconnect VPN is now not in the Network Manager drop down list. The script contains this:
nncli con down id "PIA - AU Sydney"
Additionally there are now probably twice as many servers in the list as there used to be.
I have also confirmed this issue with a fresh install of Lubuntu 16.04.1 with a non-updated system. Which means that the issue is unlikely due to an bug with recent versions of openvpn.
I've also tried enabling debug mode with openvpn service and there is nothing in the logs. Connection just drops at around 2 minutes when torrenting over pia. My test case just torrents a linux distro ISO file. Amount of bandwidth cap on torrent download does not have an impact. When just downloading over http, no problems.
problem has been solved by software updates in some cases (you must use the latest PIA provided files) and by configuration changes in other cases (the fine details have changed from prior years).
I will share further logs on the other thread I opened recently as they are requested.