On Jun 12, 2017, Andrew Morgan wrote:
Did you follow the "Set up a ProxyVM as a VPN gateway using iptables and
CLI scripts" section of the Qubes VPN docs
(https://www.qubes-os.org/doc/vpn/ )?
If so you should be good just to execute the `/rw/config/rc.local` file
on your VPN VM after every suspend either manually, through a keyboard
shortcut (which I do personally with the following command):
qvm-run -i root sys-vpn "/rw/config/rc.local"
I followed the "Set up a ProxyVM as a VPN gateway using iptables and CLI scripts" instructions but for me executing "/rw/config/rc.local" doesn't make it work again.
I've also tried commenting out or deleting "persist tun" from my
OpenVPN config file, as Chris Laprise as suggested in the thread "is vpn made manually, not supposed
to restart after suspend?" on May 21 but that isn't
helping either.
My current workaround is a script I wrote in dom0 that first does "qvm-prefs VMname -s netvm none" for all the VMs I normally have running that use sys-vpn (my ProxyVM VPN gateway), then shuts sys-vpn down, waits 10 seconds, starts sys-vpn, then does "qvm-prefs VMname -s netvm sys-vpn" for all those VMs.
Any ideas what could be going on so that neither executing /rw/config/rc.local nor commenting out "persist tun" works in my case?
Thanks!
Michael Siepmann
Michael
Siepmann, Ph.D.
The Tech Design Psychologist™
Shaping technology to help people flourish™
303-835-0501 TechDesignPsych.com
OpenPGP: 6D65A4F7
I also tried "pkill openvpn" when it is working, and I can't restart it after that either:[user@sys-vpn ~]$ sudo sg qvpn -c "ps -leaf | grep openvpn | grep -v grep" 5 S root 1093 1 0 80 0 - 16371 poll_s 14:33 ? 00:00:42 openvpn --cd /rw/config/vpn/ --config openvpn-client.ovpn --daemon [user@sys-vpn ~]$ sudo sg qvpn -c "ps -leaf | grep openvpn | grep -v grep" [user@sys-vpn ~]$ [user@sys-vpn ~]$ sudo sh /rw/config/rc.local [user@sys-vpn ~]$ sudo sg qvpn -c "ps -leaf | grep openvpn | grep -v grep" [user@sys-vpn ~]$
Any ideas why this might be happening?[user@sys-vpn ~]$ sudo sg qvpn -c "ps -leaf | grep openvpn | grep -v grep" 5 S root 1134 1 0 80 0 - 16371 poll_s 21:26 ? 00:00:00 openvpn --cd /rw/config/vpn/ --config openvpn-client.ovpn --daemon [user@sys-vpn ~]$ sudo sg qvpn -c "pkill openvpn" [user@sys-vpn ~]$ sudo sg qvpn -c "ps -leaf | grep openvpn | grep -v grep" [user@sys-vpn ~]$ sudo sh /rw/config/rc.local [user@sys-vpn ~]$ sudo sg qvpn -c "ps -leaf | grep openvpn | grep -v grep" [user@sys-vpn ~]$