On 01/03/2019 01:43 PM, 799 wrote:
Hello Chris,

thanks for yor answer.

On Thu, 3 Jan 2019 at 03:55, Chris Laprise <tas...@posteo.net <mailto:tas...@posteo.net>> wrote:

     > I thought I found out how to have OpenVPN auto-connect after the
    sys-vpn
     > AppVM has launched:
     >
     > 1) right click in on the network manager applet icon of the
    sys-vpn AppVM
     > 2) edit connections
     > 3) Choose the ethernet (NOT the VPN connection) and then preferences
     > 4) 1st Tab "General" choose "Automatically connect to VPN when using
     > this connection"
     > and choose the ExpressVPN connection here.
     >
     > As far as I understand this makes it unnecessary to run step 4
    from the
     > Qubes VPN howto.

    Actually IIRC step 4 was added because NM also has (or had) a bug in
    its
    automatic VPN startup.


As mentioned enabling the option "Automatically Connect to VPN..." is not persistent between rebooting the AppVM. I have done some research and found out that if I enable this setting the following file will be changed:
/etc/NetworkManager/system-connections/qubes-uplink-eth0

Under the section [connection] you will find a new line which says:
secondaries=UUID;

This UUID is referencing to the UUID in the OpenVPN Connection file.
If I reboot the AppVM the change is not persistent.

The line is also present in /rw/config/NM-system-connections/qubes-uplink-eth0

What do I need to do, so that this change will survice a reboot?

I'm not sure. Probably you'd have to use Qubes 'binddirs'.

You might want to test NM Autoconnect first, by disconnecting then re-connecting the virtual eth0 interface. You may encounter what we did (when step 4 was written): erratic behavior from NM that fails to reconnect the vpn.


--

Chris Laprise, tas...@posteo.net
https://github.com/tasket
https://twitter.com/ttaskett
PGP: BEE2 20C5 356E 764A 73EB  4AB3 1DC4 D106 F07F 1886

--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/ad979e93-317f-d6d4-24f8-789c72b87d0c%40posteo.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to