How to install and connect OpenVPN client on Linux (Ubuntu 22.04) to the VPN server.

Описание к видео How to install and connect OpenVPN client on Linux (Ubuntu 22.04) to the VPN server.

Contents:
0:00 Introduction, agenda
1:34 How to install OpenVPN on Linux
3:16 How to connect to your VPN server
7:58 What to do if IP address doesn't change

1. How to install OpenVPN client on Ubuntu (there are actually instructions for other Linux systems as well in the link 2 below).
Link 1: https://openvpn.net/vpn-server-resources/c...
Link 2: https://community.openvpn.net/openvpn/wiki...
Main commands:
to install support packages
sudo apt install apt-transport-https curl
to install openvpn3
sudo apt install openvpn3
2. How to connect to your VPN server:
you need a config file for that, usually you can get it from your VPN server provider like Surfshark (they allow you to download it in several configs, including OpenVPN).
Once you have the file move to the file location and execute the commands in your terminal (ctrl-alt-T hotkey to open up terminal window):
start the session by the command below, replace filename.ovpn with the name of your config file including the extension as shown below
sudo openvpn3 session-start --config filename.ovpn

To stop the session:
identify the session path from the list
sudo openvpn3 sessions-list
disconnect, replace PATH with actual path you copied
sudo openvpn3 session-manage --session-path PATH --disconnect

More commands can be found at: https://community.openvpn.net/openvpn/wiki...

3. What to do if you are connected but your IP address didn't change.
Check your ip protocols being used (```ip a``` command in Linux terminal). If IPv6 is being used, disable it by the following commands in your terminal:
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1

IPv6 is leaking your real IP address and therefore needs to be disabled

Комментарии

Информация по комментариям в разработке