Last active
March 14, 2019 01:37
-
-
Save Ruzzz/0fc871553582d4b86618bbf275d2296a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install openvpn | |
# Download and apply configuration file | |
sudo cp ~/Download/NNN.ovpn /etc/openvpn/work.conf | |
rm ~/Download/NNN.ovpn | |
# Optional | |
sudo nano /etc/openvpn/work.pass | |
# Add password of private certificate | |
sudo chmod 600 /etc/openvpn/work.pass | |
# Start | |
sudo openvpn --config /etc/openvpn/work.conf | |
# Then enter password of private certificate, or | |
sudo openvpn --config /etc/openvpn/work.conf --askpass /etc/openvpn/work.pass | |
# Enable autorun | |
# Use 'sudo systemd-tty-ask-password-agent' after 'systemctl start', or: | |
sudo nano /etc/openvpn/work.conf | |
# Add line to file work.conf: | |
askpass /etc/openvpn/work.pass | |
# Control | |
sudo systemctl enable [email protected] | |
sudo systemctl start [email protected] | |
sudo systemctl status [email protected] | |
# Disable autorun | |
sudo systemctl stop [email protected] | |
sudo systemctl disable [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment