VPNonline.pl - Polish VPN - Fast and Secure VPN, change of IP address VPNonline.pl - Polish VPN - Fast and Secure VPN, change of IP address

OpenVPN client configuration โ€“ Raspberry Pi

OpenVPN client configuration โ€“ Raspberry Pi

1. In the first step, log in to the Raspberry Pi via SSH or Telnet

2. Download a list of new packages and update

sudo apt-get update sudo apt-get upgrade

3. Install openvpn

sudo apt-get install openvpn

4. Create a temporary directory on the configuration files

mkdir ~/vpn cd ~/vpn

5. Download and unpack the configuration files

wget https://vpnonline.pl/download/OpenVPN_config_Linux.zip unzip OpenVPN_config_Linux.zip

6. Go to the directory with configuration files

cd vpnonline

7. Change the file extensions required by ovpn on Raspberry Pi .conf

rename *.conf *.ovpn

8. Copy the configuration files and certificate to the openvpn directory

sudo cp *.conf /etc/openvpn/

9. Certificate you will find in: Downloads

10. Change the certificate name "vpnonline.crt" on "root.crt"

11. Go to the openvpn directory settings

cd /etc/openvpn/

12. Create a file with a user name and password (in separate lines)

sudo nano vpnonline-password.txt
username password

13. Protect the file with the appropriate permissions

sudo chmod 600 vpnonline-password.txt

14. Put a reference to a file with a user name and password to all configuration files

sudo sed -i '/auth-user-pass/auth-user-pass /etc/openvpn/vpnonline-password.txt/' *.conf

15. Change the path to the certificate on the absolute

sudo sed -i '/ca root.crt/ca /etc/openvpn/root.crt/' *.conf

16. Open a new console (2) and check our current ip

curl http://checkip.dyndns.com/

17. For the first time, start to connect to "Poland_3" server

sudo openvpn --config Poland_3.conf

The correct sequence of logs should complete text: "Initialization Sequence Completed"

18. In the console, (2) check the ip should be changed

curl http://checkip.dyndns.com/

19. Remove the temporary directory with configuration files

sudo rm -r ~/vpn

If you have a problem with the VPN connection, we have to check call log

1. In the console, (2) start tracking system logs

tail -f /var/log/syslog

2. Run openvpn and connect to the "Poland_3" server

sudo service openvpn start Poland_3

3. Check the status of the VPN connection to the "Poland_3" server

sudo service openvpn status Poland_3

4. To check the status openvpn connect to all servers

sudo service openvpn status

5. Close the VPN connection to the "Poland_3" server

sudo service openvpn stop Poland_3

OpenVPN Autostart

1. Configure the default connection (run at system startup)

sudo nano /etc/default/openvpn

2. To autoconnect to the server "Poland_3", add a line

AUTOSTART="Poland_3"

3. If you want to turn off autoconnect, uncomment line:

AUTOSTART="none"