OpenVPN
Posted on Fri 21 May 2021 in openvpn
Installation
$ sudo apt-get install openvpn
Usage
$ sudo openvpn --config name_of_openvpn_config_file.ovpn
Then, it will ask for your user name and password:
Enter Auth Username: ...
Enter Auth Password: **************
Check IP
fter starting openvpn
, you can verify that your IP address has changed as follows:
$ curl ifconfig.me
or search for what is my ip in duckduckgo.com.
i3 status bar
You can add a segment in the status bar of i3 for showing whether the VPN is active. To do so, modify ~/.config/i3status/config
and add this:
# add segment
order += "path_exists VPN"
# add handler
path_exists VPN {
path = "/proc/sys/net/ipv4/conf/tun0"
}
Save and reload (Shift+Alt+R).