Running #openvpn as a systemd service.
photo by: mike fettisVPNs are all the rage. All the cool kids are using them. The coolest kids only use a terminal on their linux. How about running openvpn as a systemd service and have an interactive prompt to let you know that your #vpn is running?Enter systemd, and PS1.The trick is to run the openvpn command as a systemd service. Then set it to auto-restart 15 seconds after failure. If we add a line to the opvn config file, auth-user-pass /home/linuxuser/pass.txt and then have the openvpn username and password in said txt file openvpn will be able to automatically connect to the vpn host. Finally, the icing on the cake is to update my PS1 (terminal prompt) to change color if the vpn is connected. This can be accomplished two different ways. 1). If the traceroute resolves the first (...)