How to configure your VPN
Web Services / / December 24, 2019
Telegram blocked, free proxy and VPN work with interruptions due to the large influx of users or even cease to function without any explanation as OperaVPN.
5 good free VPN-services →
Paid tools also can disappear at any time: a law banning CGI proxies and VPN long been accepted, but not yet used. In this situation, the only guarantee of freedom of the Internet is becoming their own VPN. Layfhaker tell you how to set it up in 20 minutes.
Choosing Web hosting
For VPN settings need VPS - virtual private server. You can choose any hosting provider, as long as the following conditions:
- The server is located in a country that does not fall under the jurisdiction of the Russian authorities, but is close enough to your actual location.
- Access memory (RAM) should be not less than 512 MB.
- network interface speed - 100 MB / s and above.
- Network traffic - 512 GB or higher or unlimited.
The quantity of hard disk space and the type of drive does not matter. Find the right solution can be for $ 3-4 a month.
When buying a server, select KVM. OpenVZ and Xen will also work if they have connected TUN - it is necessary to ask for technical service of the hosting provider.
With KVM, no additional manipulations do not have to produce, although some hosting providers and it can restrict the ability to create a VPN. Clarify it can also support service.
When you configure the server in "Host Name" you can enter any value, for example, test.test. Prefixes NS1 and NS2 is also not important: write ns1.test and ns2.test.
Operating System - CentOS 7.4 64 bit or any other distribution, fundamental differences in the setup there. Network traffic, leave 512 GB or select additional volume, if you are afraid that not enough available. Location - The closer, the better. Netherlands fit.
After payment of the post will receive a letter with all the necessary data for the VPN settings. You have purchased a site on a server in another country, it is necessary to redirect all traffic to it.
We set up VPN
To connect to a server and send commands we will be using Putty program. I link to it came in a letter from the registration data for the hosting. Download the program here. Putty and its analogs are also available on MacOS, the settings are identical.
Start Putty. Session tab in the Host Name field, enter the IP-address, which came in a letter, and click Open.
When a window with a warning about the dangers click "Yes". After this, start the console, through which you will send commands to the server. First you need to log - the data for authentication is also a letter from the host. Login is rootIts type hands. Copy the password to the clipboard. To insert the password to the console, right click and press Enter. The password is not displayed in the console, but if you're logged in, you will see information about the system or server room.
Between a login and password should not be a long time. If an error message appears, restart the Putty and try again.
To configure VPN, I used a ready script OpenVPN road warrior. This method does not guarantee complete anonymity, so that in the commission of criminal acts is easy to find. But to bypass the lock it enough. If all the VPN-services stop working, this connection will continue to operate as long as I pay for hosting.
To use the script, paste it into line console wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh
.
After successfully adding the script will start a dialogue with the setup wizard. He alone is the best value you will just have to accept, or select the appropriate option. All actions are confirmed by pressing Enter. Let's go in order:
- IP-address must match the IP-address that you have received the letter from the host.
- Protocol UDP, leave the default.
- Port: 1194 - agree.
- What DNS to use - select Google. erase 1write 3 and press Enter.
- Client name - enter your username. You can leave client.
- Press any key - again, press Enter and wait for the end of the setup.
After completing the setup, you must create a file, through which you will connect to the VPN. enter the command cat ~ / client.ovpn
.
In the console contents of the file will appear. Scroll up to the team cat ~ / client.ovpn
and highlight everything that came below, except for the last line. The selection should end on. To copy a track, press Ctrl + V.
Start "Notepad", paste the snippet and save the file on your desktop called client.ovpn.
Open the "File" menu, select "Save As", select the type "All Files" and enter a name with the extension - client.ovpn.
Connecting to the server
To connect using the created file the client needs OpenVPN. Version for the computer, you can download here. Download and install the program, but do not run. Right-click on the file client.ovpn and select Start OpenVPN.
You will see a console window to initialize the connection. If the connection was successful, the bottom is the status Initialization Sequence Completed
. In the process of selecting a network connection window may appear, click on the social network.
To make sure the connection is correct, check the IP-address. It must match with that hosting company wrote in a letter. Ceasing to send requests to a server in another country, close the OpenVPN.
We have also OpenVPN client for mobile devices.
Price: Free
Price: Free
To establish a connection, transfer the file to the phone memory client.ovpn. Launch the application and select OVPN Profile. Enter the path to the file and move the slider to "Enabled".
At the top of the connection icon is displayed via VPN. To make sure that the traffic is redirected through a server in another country, open a mobile browser any service IP-address verification.