How to Set Up FastVPN for Raspbian

This guide was created for installing our virtual private network service on Raspbian Buster Lite but it can be also used to to set up a FastVPN client on Raspbian Buster with desktop.

Follow the steps below to configure FastVPN for Raspbian a/k/a Raspberry Pi OS:

1. Update the Raspberry Pi by entering the following commands one by one:

sudo apt-get update

A screenshot of sudo apt-get update command in Raspbian

sudo apt-get upgrade

A screenshot of sudo apt-get upgrade command in Raspbian

2. Install OpenVPN by using the command below:

sudo apt-get install openvpn unzip

A screenshot showing how to install OpenVPN by using the command in Raspbian

3. Make sure the time zone is correct. For this, run the command below and go through the configuration prompt to select the correct time zone:

sudo dpkg-reconfigure tzdata

4. Elevate your privileges to root by entering:

sudo -i

5. To download the configuration file and setup FastVPN, run this command:

cd /tmp && wget && unzip && mkdir -p /etc/openvpn && mv tcp /etc/openvpn && mv udp /etc/openvpn && rm -f

6. Depending on which protocol is preferable for you, you can enable NamecheapVPN using two commands:

  • For TCP :

    sudo openvpn --config /etc/openvpn/tcp/NCVPN-AE-Dubai-TCP.ovpn --daemon
  • For UDP:

    sudo openvpn --config /etc/openvpn/udp/NCVPN-AE-Dubai-UDP.ovpn --daemon

NOTE: "NCVPN-AE-Dubai-TCP.ovp" and  "NCVPN-AE-Dubai-UDP.ovpn" can be changed to any preferred location from

7. Enter your FastVPN login credentials (Auth Username and Auth Password):

NB! FastVPN Username and Password are available from FastVPN account panel.

8. To disconnect from NamecheapVPN, use the following command:

sudo killall openvpn

9.In order to change your VPN connection, you need to stop all active VPN connections first. For this, run the command:

sudo killall openvpn

NOTE: You can check what VPN connection is currently running by entering: ps aux|grep openvpn

After that, please follow the Steps 6-7 to connect to any other preferred location.

10. In order to verify that your VPN connection is successful , wait for about a minute and enter the command below :


You will see your new public IP:

That's it! Now your Raspberry Pi is running behind FastVPN. The Raspberry Pi will be connected automatically to FastVPN when it is started.

If you need any further assistance, please contact our Support Team.
7640 times

Need help? We're always here for you.