I am trying to follow the steps in the link below to make a ProxyVpn with VPN autostart :
https://www.qubes-os.org/doc/vpn/
But my rc.local does not start on my ProxyVM.
I did the commands below on my Debian 8 Template VM :
sudo chmod +x /etc/rc.local
systemctl disable openvpn.service
The rc.local service is enable.
This is the result of ls -l :
user@debian-8-vpn:~$ ls -l /etc/rc.local
-rwxr-xr-x 1 root root 472 Aug 14 22:30 /etc/rc.local
If I start the rc.local with sudo sh /etc/rc.local using the terminal on my ProxyVM, it's working.
So, why my rc.local does not start automatically on my ProxyVM ?
Thanks for your help.
This is the content of my rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
groupadd -rf qvpn ; sleep 2s
sg qvpn -c 'openvpn --cd /etc/openvpn/ --config myopenvpnfile.ovpn \
--daemon --writepid /var/run/openvpn/openvpn-client.pid'
exit 0
Oh ok. My mistake. I did not understand the purpose of the /rw/ folder until now.
Thanks a lot for this very valuable information.