assddg 0 Posted ... Hey. I'm running OpenVPN 2.3.2 on Ubuntu server 14.04 in a VirtualBox 5.0.14 instance on a Win-64 box to connect to AirVPN using the config file generated from the AirVPN site. The VirtualBox instance is bridged to my host NIC using a PCnet-FAST III driver in Ubuntu. Set to auto-start with the AirVPN config file as the default in /etc/openvpn so I control it with service stop / start. The tunnel will work for somewhere between 1 and 6 hours and then it will remain established but no traffic will move through it. I've tried adding keepalive 10 60 to the config but no change. I've anecdotally seen that it could be related to interruption in the internet connection. How can I either a. get the openvpn service to withstand internet connectivity interruptions or b. cron a script to test and if fail restart the openvpn service. FYI I'm reasonably strong technically but my Linux skill is newbie. Quote Share this post Link to post
assddg 0 Posted ... This is the ifconfig after the tunnel's been established for 6 hours. Notice the TX dropped. tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:air.vpn.ip.add P-t-P:air.vpn.ip.add Mask:255.255.0.0 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:3883803 errors:0 dropped:0 overruns:0 frame:0 TX packets:5679001 errors:0 dropped:2410603 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:3234669343 (3.2 GB) TX bytes:3964299033 (3.9 GB) Quote Share this post Link to post
OpenSourcerer 1442 Posted ... Apart from asking why you are still running a nearly six year old distribution, when that happens it would be nice to know whether the routes are still there. Something like route would help, unless of course you can enter ip r (the new network tool for IP configuration). Then, OpenVPN logs. Don't just point at the mist, give us the zombie. Then, VirtualBox version. I hope it's not as old as the distro. b) should be rather easy. Ping something every minute or so, and if it gets the timeout error code, pkill -15 openvpn && (sudo) openvpn /path/to/the/config.ovpn. This is workaround stuff, I'd rather look at why it's doing that exactly, so let's first gather some intel through logs. Quote Hide OpenSourcerer's signature Hide all signatures NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT. LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too! Want to contact me directly? All relevant methods are on my About me page. Share this post Link to post