bdisk/docs/manual/user/advanced/VPN.adoc

1.0 KiB
Raw Blame History

VPN Configuration

For this example well set up an OpenVPN client to start automatically on boot.

Setting up an OpenVPN server is outside the scope of this section, but there are a multitude of useful documentation sources out there that will help you with that.

However, once you have your client .ovpn file (in our example, well call it client.ovpn) you can add it to the build relatively easily.

Copy client.ovpn as <basedir>/overlay/etc/openvpn/client/client.confnote the changed file extension. Then, in the <basedir>/overlay/etc/systemd/system/multi-user.target.wants/ directory, issue these commands:

ln -s /usr/lib/systemd/system/openvpn-client\@.service openvpn-client\@client.service

OpenVPN will then start on boot in the built BDisk instance.