Table of Contents
Install OpenVPN client in ubuntu
Due to PPTP might not available, OpenVPN can be a good choice.
Packages
apt install openvpn
Configuration file
Configuration file should be downloaded from OpenVPN server.
Test
openvpn --config client.ovpn
Enable option
In /etc/default/openvpn
, enable following line
AUTOSTART="all"
Copy config file
cp client.ovpn /etc/openvpn/client.conf
Note: the file name should be client.conf
Enable password (Optional)
Change auth-user-pass
to auth-user-pass pass
in client.conf
.
Then create account info in pass file, and change mode
chmod 400 /etc/openvpn/pass
Enable service
systemctl enable openvpn@client.service
systemctl daemon-reload
systemctl start openvpn@client