Your location: Your IP: Your status:ProtectedUnprotected · To the tests »

Cascading your VPN (Multi-Hop) with Linux

Establishing a VPN connection to london.perfect-privacy.com | Cascading your VPN (Multi-Hop) with Linux

Change into the /etc/openvpn/ directory and issue the following command to establish the connection to the first hop as shown on the left. In this example it will connect to london.perfect-privacy.com:

sudo openvpn --config London.conf --script-security 2 --route remote_host --persist-tun --up updown.sh --down updown.sh --route-noexec

Enter Perfect Privacy username and password | Cascading your VPN (Multi-Hop) with Linux

If you haven’t configured the VPN configuration file to read your password from a file, you will be asked to provide your Perfect Privacy username and password.

The command to establish a connection to the next hop is displayed | Cascading your VPN (Multi-Hop) with Linux

After the connection to the first hop has been established, the script will display the necessary command with all parameters to connect to the second hop. You can copy and paste this line but will need to change config.conf for the corresponding configuration file of the server for the next hop.

Establishing the VPN connection to the next hop | Cascading your VPN (Multi-Hop) with Linux

Now open a new terminal and paste the connection line displayed by the script. Before you press enter, make sure that you replace config.conf with the location you want to connect to. In this example the second hop is rotterdam.perfect-privacy.com.

The command to establish a connection to the next hop is displayed | Cascading your VPN (Multi-Hop) with Linux

Once the connection is established the script will show the command for the next hop just like before.

Establishing the VPN connection to the next hop | Cascading your VPN (Multi-Hop) with Linux

To add a third hop, repeat the previous steps in a new terminal window. In this example we’re continuing the cascade with reykjavik.perfect-privacy.com.

If you want, you can add even more hops by repeating the previous steps once more.

VPN
?!
This website uses cookies to analyze the traffic and to control our advertising. By using this site, you agree to the use of cookies. More information can be found in our privacy policy.