===== OpenVPN ===== ==== Start OpenVPN at startup with systemd ===== - Move the ''.ovpn'' file to ''/etc/openvpn/''. Choose the '''' carefully, the name is required to select the connection via systemd. mv .ovpn /etc/openvpn/.conf - Reload the daemon: systemctl daemon-reload - Start the connection: systemctl start openvpn@ - Verify that everything worked correctly: systemctl status openvpn@ If it says ''running'' and no errors are displayed, everything was successful. If it says ''cipher not allowed'' check the following paragraph. - Enable it with: systemctl enable openvpn@ - To later disable the automatic start of the connection use: systemctl disable openvpn@ //Sourced from [[https://www.smarthomebeginner.com/configure-openvpn-to-autostart-linux/|smarthomebeginner.com - OpenVPN autostart]]// ==== Cipher Error ==== This issue only exists when the CLI-client is ''OpenVPN v2.6+'' while the corresponding server isn't yet on this state. - If there are the following lines in the console output of the connection: Error: negotiated cipher not allowed - AES-256-CBC not in AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305 OPTIONS ERROR: failed to import crypto options Failed to open tun/tap interface - Edit your config file. (Maybe under ''/etc/openvpn/'') It's required to change the line that contains ''cipher''. Edit ''cipher'' to ''data-ciphers''. It should then look like this:data-ciphers AES-256-CBC - Finally restart your connection. //Partially sourced from [[https://forums.openvpn.net/viewtopic.php?t=33536|forums.openvpn.net - Cipher not allowed]]//