From 82b14042de5b7266eb8e74697b0f8e0d9bfb9c14 Mon Sep 17 00:00:00 2001 From: Daniel Gonzalez Gasull Date: Sat, 30 Jun 2018 09:02:42 +0800 Subject: [PATCH] Update vpn.md --- configuration/vpn.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/configuration/vpn.md b/configuration/vpn.md index bf083728..c7f7386c 100644 --- a/configuration/vpn.md +++ b/configuration/vpn.md @@ -55,7 +55,8 @@ Set up a ProxyVM as a VPN gateway using NetworkManager Edit `/rw/config/rc.local` and add these lines: ```bash - # Automatically connect to the VPN + # Automatically connect to the VPN once Internet is up + for i in {1..50}; do ping -c1 1.1.1.1 &> /dev/null && break; done nmcli connection up file-vpn-conn passwd-file /rw/config/NM-system-connections/secrets/passwd-file.txt ``` You can find the actual "file-vpn-conn" in `/rw/config/NM-system-connections/`. @@ -68,8 +69,6 @@ Set up a ProxyVM as a VPN gateway using NetworkManager And substitute "XXXXXXXXXXXXXX" for the actual password. The contents of `passwd-file.txt` may differ depending on your VPN settings. See the [documentation for `nmcli up`](https://www.mankier.com/1/nmcli#up). - Troubleshooting: If you notice that the VPN doesn't autostart on hardware bootup but it does when restaring the VPN VM, try adding a slight delay in seconds in `/rw/config/rc.local` before the `nmcli` command, e.g. `sleep 2`. - 5. (Optional) Make the network fail-close for the AppVMs if the connection to the VPN breaks. Edit `/rw/config/qubes-firewall-user-script` and add these lines: