Skip to content

VPN Connection Procedure

Connecting (when you have used the VPN configuration script)

If you have used the VPN configuration script, see the procedure here, then you can initiate the VPN connection via the graphical interface.

You must click on your network connection manager, which is usually located in your taskbar, and simply click on the VPN connection you wish to activate. You can return to this menu to disable the VPN connection in the same way.

Connecting (any Linux distribution)

To initiate the VPN connection, you must open a terminal and run the following command:

user@mypc:~$ sudo openvpn <my_vpn_file.ovpn>
Enter Auth Username: user
Enter Auth Password: ********

You must keep this terminal window open for the VPN connection to persist.

Verification

The last line of the previous command should be:

Initialization Sequence Completed

You should have a tunnel interface that has been activated (here tun0):

user@mypc:~$ ip address

10: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 100
    link/none

Disconnecting

In the terminal window where you launched the VPN connection, simply type this keyboard shortcut to break the connection:

CTRL+C