Command-line installation
OpenVPN client installation
For Debian, Ubuntu, etc.:
sudo apt-get update && apt-get install openvpn
OpenVPN client configuration
Download configuration file "fdn-vpn-public.ovpn" and save it where you will be able to find it afterwards.
The following instructions use ~/vpn/fdn-vpn-public.ovpn
as an example.
How to use FDN Public VPN
Type the following command:
sudo openvpn ~/vpn/fdn-vpn-public.ovpn
During the connection, a login and a password are asked. You can complete what you want, for instance
Enter Auth Username: Edward
Enter Auth Password: Snowden
The connection est initialized. After a while, the console will display the message: “Initialization Sequence Completed”.
How to get through a HTTP proxy
It is possible that the connection only gives access to a HTTP proxy. There is an option provided by Openvpn to get through that:
http-proxy www.example.com 1234
Modify the fdn-vpn-public.ovpn
file accordingly.
DNS configuration
By default local traffic is not sent through the VPN. In most cases that allows the DNS to keep functionning.
If this is not the case, you got two options:
- You want to keep using the DNS of your local Internet Service Provider but its IP adress is in the prefix of your server's network interface, that is, you need to go through the network gateway. In that case, in order that the resolution does not go through the VPN, you need to add the route manually. For instance, if the DNS server is 192.0.1.1 and the network gateway is 192.0.0.1, you need to add the following code:
route 192.0.1.1 255.255.255.255 192.0.0.1
- You want to use FDN's DNS (80.67.169.12 et 80.67.169.40). In that case you need to beware of the competition between openvp (who will try to define them), and your usual dhcp client (who will try to put back the DNS of your local Internet Service Provider).
IPv6 configuration
By default the whole IPv6 traffic goes through the VPN.