Categories
Debian Operating Systems Security VPN

Autoload .ovpn on boot

Automation is what makes it possible to sit on the back porch chilling instead of manually running tasks

Copy your config to etc

Notice the change in file ending!

# cp your_config.ovpn /etc/openvpn/your_config.conf

Tell SystemD to autoload

# vim /etc/default/openvpn 
AUTOSTART="all"

Enable & reload

# systemctl enable openvpn@client.service
# systemctl daemon-reload
# service openvpn start

By Nimpen J. Nordström

System Developer and Network Security Enthusiast