Arethusa forum

Arethusa discussion forums.

You are not logged in.

Announcement

Registration is not required to post, but is required to post links.

#1 2016-02-05 17:19:03

Zero
Anonymous

OpenVPN: Linux/*NIX CLI generic method

English:

This documentation is for people comfortable with command line interface.


OpenVPN installation:

Install the openvpn package for your distribution, or compile from source. You need OpenVPN 2.3 or newer.
For Debian/Ubuntu based systems, the command is: sudo apt-get install openvpn


OpenVPN configuration:

Generate and download a configuration file (My account > Services: VPN > "Generate OpenVPN configuration file" > "Generate"), and save it in your home directory (or any place you want on your computer).
If you have chosen "Read username and password from a file", download and save this file in the same directory. Then edit this file, so that your VPN username appears on the first line and your VPN password on the second line.


DNS configuration:

When using this connection method, OpenVPN will not automatically configure your computer to use the DNS servers provided by the VPN.

You need to:

  • install a script to dynamically update your DNS configuration when the VPN goes up or down,

  • or configure your computer to use public DNS resolvers,

  • or install a local DNS resolver and configure your computer to use it.

Installing your own local resolver is a good choice if you don't reboot your computer very often.
Using public DNS resolvers is the easiest way.


Connection:

  • Open a new terminal.

  • If you did not save the configuration file in your home directory, cd to that directory.

  • Type: sudo openvpn --config arethusa.ovpn

  • Enter your VPN username, then your VPN password (if needed).

  • Keep the terminal open.

Once connected, check your IP address.

Press Control-C when you want to stop the VPN.


Diagnostics:

The OpenVPN log is directly shown on your terminal.

Board footer

Powered by FluxBB