TVs. Consoles. Projectors and accessories. Technologies. Digital TV

Addresses for VPN connection. Setting up a VPN for Android. Setting up VPN on mobile devices

When it comes to installing a VPN on Windows, there are several paths to take. You can download your provider’s application specifically, you can install a third-party OpenVPN application, or you can use dial-up to configure everything manually.

Installing a VPN on Windows is a very easy process and will not take more than a few minutes. We will explain each of the three methods so that by the end of the article, you will be able to surf the web safely, even if someone is spying on your online activity.

What you will need

You'll need an account from your provider, so be sure to set one up before you begin. The VPN company may ask you for confirmation via email, so be sure to do this.

If you are not yet ready to switch to paid subscription, then in this case most VPN providers are ready to provide free trial period, which is also great for work. ExpressVPN offers a 7-day trial. To do this, you need to register through the app and not through the website.

We will show the installation process on Windows 10. This article was written under Windows control 10 Home. If you have a different version of OS installed, then you have nothing to worry about. Try installing the software using Method 1 (below), and then we'll move on to a little more difficult ones.

Method 1: VPN provider software

All popular VPN service providers provide a dedicated application for Windows. Using such applications is usually the most in a fast way connecting your devices. You will also have access to all servers at once without additional settings everyone.
In our example, we are using ExpressVPN as an example, however, the installation process is not much different from other providers, so you should just take the gist from the screenshots included here. If you still couldn’t, then your provider’s technical support will help you.

So, let's begin:

  • Download the installer from your provider's website. If you have an activation code, copy it to your clipboard.
  • Double click on the installer. Next, give permission to the application to make changes to the system.

  • Click "Sign In"

  • Paste the activation code that you copied above in step 1. If you don’t have it, we advise you to return to the provider’s website and do a good search.
  • Click on "Sign In" again.

  • Click Allow if you want ExpressVPN to start when you turn on your computer. This option is optional, but can be very useful.

  • Click Allow if you would like to share crash information and other technical information. If you are very concerned about your privacy, then click on Don’t Allow to skip the step.
  • Click the big round button to connect to the location that ExpressVPN Smart Location has selected.


Using a special application when VPN installation on Windows gives superior protection, speed and ease of access to some useful functions:

  • Click the Choose Location button on the connection screen to easily switch between the servers that ExpressVPN provides. All information about connections is already preinstalled in the application, so you do not need to download it additionally.
  • A network lock or Killswitch prevents your computer from accessing the Internet if the VPN connection is lost. This will protect you from accidentally neglecting the VPN. You can find the switch by clicking on the burger menu (three horizontal lines) in the top left corner and then clicking on Options.


There is another one on the screen useful feature. If you want all your computers and printers to have access to your network, then check the box next to Allow access to local network devices such as network shares or printers

This comes in handy when you use a VPN in an office network or in a business center when you travel. Your internet traffic is still tunneled, but you can access your local network if you need it. This is the only option you need to change to get your VPN to work the way you want it to.

Method 2: OpenVPN

Your provider's app should work well. But alternatively you can use OpenVPN which is third party application open source. This means that the code this application accessible to anyone who wants to study it. This fact gives a little confidence in the security of this application.
OpenVPN is an extremely minimalist program; it doesn’t even have an interface. Most settings are done through the tray, which is hidden behind the arrow in the lower right corner of your screen.
Here's how to quickly get to grips with your VPN. We're using ExpressVPN again, but the steps are similar for most providers:

  • Download software OpenVPN from the OpenVPN website https://openvpn.net. Don’t forget to check the site address, its security and other nuances before downloading. The fastest and easiest option is the installer file.

    • Double click on the downloaded file to begin the installation.
    • Click Next.

      • Review the terms of the agreement, and if you are happy, click agree.

        • Custom installation is available on the feature selection screen. As shown by default on the screen, this build works great. Click “Next”.

          • Select the installation path. Again, the default path is fine. So you shouldn't change it without good reason. Click “Install”.


            The installation process may stop and ask you to install TAP. This is a natural part of a VPN connection, so you don't have to worry about it. Click "Install".


            Note: If you click "Don't install", your OpenVPN connection may not work.
            Completing the installation:
            • Once the installation is complete, a corresponding message will appear in the installation log window. Click Next.

            • Installation completed. The last window will present an option that will optionally show you a ReadMe text file. It contains brief information. If you don’t want to open it, just uncheck the box before clicking “Finish.”


            At this step, you need to log into your provider account on the site. You should find the OpenVPN connection details and accompanying files.
            Here's a screenshot of what you should look for in ExpressVPN, for example. To find this, click Set up ExpressVPN on all your devices, then Manual config. Make sure OpenVPN is selected on the right side.


            Scroll down a little and you will find necessary information: username and password for your Open VPN connections, as well as a list of available servers. Each location has a special downloadable file called a configuration file. You need to download at least one of them. If you are not sure which one you want to download, we recommend choosing the one that is closest to you.

            We continue the process:

            • Find the files you just downloaded and move them to C:\Program Files\OpenVPN\config

            • Go to the OpenVPN GUI, which is located in your startup menu. You should also have a shortcut on your desktop. Launch from wherever is convenient.

            • In the tray you will find a small OpenVPN icon; right-click on it and you will see the name of the configuration file(s) that you moved to the desired folder. Move the cursor a little to the right and click “Connect” in the menu that appears.



            • You will be asked for a username and password. Return to your browser and copy the input data from the OpenVPN setup page. Don't use the credentials you use to log into a website, that's different.

            • Click OK.

            The tray icon is green, which means we are connected. To view the connection status, just hold the cursor over the icon and right-click to disconnect.

            Method 3: Manual setup using Dialer

            In our connection example via manual setting we use Windows 10. In this method no need to download any VPN software. Instead, we use L2TP/IPSec using Dialer.
            In others Windows versions and for other providers the requirements will differ from step to step. But you must understand the main idea of ​​the whole process.

            • Log in to the ExpressVPN website. Click Set up ExpressVPN on all your devices, then Manual Config. Now on the right side, select and click the PPTP & L2TP-IPSec button.

            • Scroll down, skip the username and password, and the list of servers. Below them you will find a button that says Download Windows Dialers. Click on it and keep your browser open.

            • Locate and extract the zip file to a folder.
            • Find the file called ExpressVPN Windows L2TP and double click on it.
            • After a short pause you will see a window network connection. Click on Properties.

            • Go to the Security tab and make sure that the Microsoft CHAP Version 2 checkbox is checked. It is by default, but this is very important point, so it's better to double check.

            • Once verified, you should select the encryption level you prefer. Select Optional…, Require encryption…, or Maximum strength. Just don't select "No encryption allowed..." because this will break your connection.
            • Click on the Advanced settings button, which is located directly above the drop-down list of encryption levels. In the pre-shared key field, write 12345678 and click OK.

            • Click OK again to close the Properties window.

            You should have been returned to the window Network connections. All available servers are shown in the drop-down list. Select one below to test your connection. It doesn’t matter which one you choose, but it’s still better to start checking with the one that is closer to you geographically to know for sure that everything works.
            The last step is to fill in the login details for L2TP. This data is located in your open browser.
            Click "Connect" to make sure everything is working. That's all!

            Need more help?

            If the connection fails, the best thing to do is take a few steps back and try the easiest method: opening your provider's app. If everything works, it means you configured something wrong somewhere in OpenVPN or in the settings manually.
            If your provider's application does not work, then perhaps you forgot to confirm your account. Check your email for emails with verification links. If you are still unlucky, then contact their technical support department, this is the most easy way obtain the necessary information.

The best VPN services for Windows in 2019:

The best VPN services in 2019:

Denial of responsibility: This article is written for educational purposes only. The author or publisher did not publish this article for malicious purposes. If readers would like to use the information for personal gain, the author and publisher are not responsible for any harm or damage caused.

They have become commonplace. True, no one really thinks about what is behind the concept like “VPN, setup, use, etc.” Most users prefer not to delve into the jungle of computer terminology and use standard templates. But in vain. From knowledge about such connections, you can derive a lot of benefits, for example, increase traffic or connection speed, etc. Let's look at what a connection to a virtual network actually is, using the example of interaction between operational Windows systems on a desktop computer terminal and Android on a mobile device.

What is VPN

Let's start with the fact that VPN setup is impossible without the general principle of understanding the essence of the connection being created or used.

If you explain in simple words, in such a network there is necessarily a so-called router (the same router), which provides computers or mobile devices trying to connect to an existing network with standard additional IP addresses for accessing the local network or the Internet.

In this case, a virtual network in which there is an activated VPN connection setting accepts any device connected to it and is assigned a unique internal IP address. The range of such addresses in the usual standard is from zero to the value 255.

What’s most interesting is that even when accessing the Internet, the external IP address of the device from which the request is made is not so easy to determine. There are several reasons for this, which will be discussed below.

The simplest VPN setup for Android

Almost all virtual networks using wireless connection Wi-Fi types work on the same principle - assigning free IP addresses from the available range. It is not surprising that any mobile device can easily be connected to them (but only if it supports the appropriate connection protocols).

However, today any smartphones or tablets based on the Android OS have in their functionality the option of connecting the same Wi-Fi. The network is detected automatically if the device is within its coverage area. The only thing you may need is to enter a password. The so-called “shared” ones do not require a password at all.

IN in this case You need to go to the main settings on your smartphone or tablet and activate Wi-Fi connection. The system itself will determine the presence of radio modules at a distance of 100-300 meters from the device (it all depends on the model of the distribution router). Once the network is identified, a menu will appear with all available connections and their blocking indication. If the network has a padlock icon, it is password protected (however, this will be indicated initially in the message). If you know the password, enter it.

On networks common use, where login using a password is not provided, and even simpler. Has the network been determined? All. Click on connection and use it. As is already clear, VPN configuration in this case is not required at all. Another thing is when to use Windows settings or another operating system (even mobile) to create a connection or assign the status of a VPN distribution server to a computer terminal or laptop.

Creation on Windows

With "OS" Windows family not everything is as simple as most users think. Of course, automatic recognition of the network or connection via Wi-Fi, ADSL or even direct connection via network card They produce Ethernet (subject to the presence of installed equipment). The question is different: if the distributor is not a router, but a laptop or desktop computer how to get out of this situation?

Main settings

Here you will have to delve into the VPN settings. Windows as an operating system is considered first.

First you need to pay attention not even to the settings of the system itself, but to its accompanying components. True, when creating a connection or using it to the maximum, you will have to configure some protocols such as TCP/IP (IPv4, IPv6).

If the provider does not provide such services automatically, you will have to make settings indicating previously received parameters. For example, when connecting automatically, the fields in the Internet browser properties for filling will be inactive (there will be a dot on the item “Obtain an IP address automatically”). That is why you do not have to enter the values ​​of the subnet mask, gateway, DNS or WINS servers manually (especially for proxy servers).

Router settings

Regardless of whether the VPN is configured on an ASUS laptop or terminal (or any other device), access to the network is still common.

To do it correctly, you need to go to its own menu. This can be done using any Internet browser, provided that the router is directly connected to a computer or laptop.

In the address field, enter the value 192.168.1.1 (this corresponds to most models), after which you should activate the enable function (using the router parameters in advanced mode). Typically this line looks like WLAN Connection Type.

Using VPN Clients

VPN clients are quite specific programs that work like anonymous proxy servers that hide the true IP address of the user's computer when accessing the Internet. local network or on the Internet.

Actually, the use of programs of this type is reduced to almost complete automation. The VPN setting in this case, in general, is not important, since the application itself redirects requests from one server (mirror) to another.

True, you will have to tinker a little with setting up such a client, especially if you want to make the maximum number of available connections in your home virtual network. Here you have to choose between software products. And it should be noted that some applications, even the smallest in size, sometimes surpass the commercial products of many famous brands, for which you also have to pay (by the way, a lot of money).

What about TCP/IP?

It goes without saying that almost all of the above settings affect the TCP/IP protocol to one degree or another. Today nothing better has been invented for comfort. Even remote anonymous proxy servers or local data stores still use these settings. But you need to be careful with him.

It is best to contact your provider or system administrator before changing settings. But one thing must be clearly remembered: even when setting the values ​​manually, as a rule, the subnet mask has the sequence 255.255.255.0 (it can change), and all IP addresses begin with the values ​​192.168.0.X (the last letter can have from one to three characters ).

Conclusion

However, these are all subtleties computer technology. The same VPN client for Android can provide communication between multiple smart devices. But the biggest snag is whether it’s worth using such a connection on a mobile gadget.

If you noticed, we didn’t go into too much technical detail. This is rather a descriptive instruction about general concepts. But even that simple example, I think, will help, so to speak, to understand the very essence of the issue. Moreover, with a clear understanding of it, the whole problem will be reduced only to the system settings, which will not affect a specific user in any way.

But here you need to be very careful. Actually, for those who do not know what a VPN connection is, this will not help much. For more advanced users it is worth telling what to create virtual network using native Windows OS tools is not recommended. You can, of course, use the initial settings, however, as practice shows, it is better to have some additional client in stock, which will always be like an ace in the hole.

There is a large amount of information on the topic of virtual private networks on the Internet. However, there are very few articles how to create a VPN connection automatically (with a script). You can find how to do this on UNIX. We will describe how to do this in Windows, on Windows example 7. This question may arise before a system administrator (for example, if you need to make the same VPN connection settings on several computers). In other versions of Windows OS, everything is done by analogy and it will not be difficult for an experienced person to figure it out. The average user is unlikely to be puzzled by this issue, so we will not yet describe this process for other operating systems. However, we will try to describe each step:

Creating a connection via an interface

We assume that there is a virtual private network server somewhere and we know the parameters for connecting to it (address, login and password). Go to: Start -> Control Panel -> Network and Control Center and shared access. In the Change section network parameters, click on Set up a new connection or network. The Set up a connection or network window will open and ask you to select an option. Click on Connect to a workplace Set up a telephone or VPN connection to a workplace and click Next.


If there are already other settings, the next step will ask you to select one of them or create a new one. We choose to create a new one. In the next step, select Use my Internet connection.

In the window that appears, enter: Internet address - VPN server address (IP or Domain name), Destination name - any, it will be displayed in the list of your networks (if you plan to further automate processes, we recommend using only Latin characters and/or numbers in the name.

In the next step, enter the user and password, and also choose whether to remember the password or not.

Upon completion, an attempt to connect will occur, and if everything is specified correctly, something will happen.

If you know the protocol your server uses, we recommend that you force it to be configured, this will speed up the connection process. You need to disable your VPN: in the lower right corner (in the tray) we open the list of networks, on our right mouse button -> disable.

Go to: Start -> Control Panel -> Network and Sharing Center -> Change adapter settings. On our network, right-click -> Properties. Security tab. And select VPN Type. If this is not done, each time there will be attempts to connect using each of the protocols until it is successful.

Setting up the use of a gateway

After the standard setup described in the previous paragraph, all your Internet traffic will go through the created channel, i.e. via the server. If the server has an Internet channel with throughput less than yours, or it is quite loaded, you may experience a slowdown in the speed of access to the global network. Also, on the sites or services you go to, the server’s IP address will be displayed, not yours. Sometimes this is not suitable and there is a need for your IP address to be displayed. In this case, you need to configure the gateway.

We disconnect again and go to the connection properties as described just above (in the adapter parameter changes). Select the Network tab. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties -> Advanced. On the IP Settings tab, uncheck Use the default gateway on the remote network. In all open windows- OK. Now, even with a VPN connection connected, Internet traffic will go through your gateway and not the remote one.

Automating the connection of an already configured connection

It will automatically establish a VPN connection for an already configured connection, you can not only from the interface, but also from the command line using the command rasdial.

Command Format:

rasdial [Connection name] [username] [password]

where Connection Name is what you specified when creating the VPN connection in the Destination Name.

Example command:

rasdial myvpn test_user 12345

Using this command, you can, for example, configure automatic connection via VPN when the computer boots. To do this, you need to create the required task in the task scheduler, in which you specify this command. You can also create bat file with one line - this command, and indicate it in the task.

One problem remains. The password is stored in open form. If this solution does not suit you, you can compile the bat file into exe and the password will not be clearly visible. Converting a bat file into an exe is the topic of a separate article, of which there are many on the Internet. Using the search, it will not be difficult to find how this is done.

Creating a VPN connection with a script

And now to the fun part. All VPN connections created by the user and their settings are stored in one file - rasphone.pbk, which is stored in system folder user:

%APPDATA%\Microsoft\Network\Connections\Pbk

or, with a typical Windows setup

C:\Users\[Username]\AppData\Roaming\Microsoft\Network\Connections\Pbk

In this file, the first line is the name of the VPN connection in square brackets. Next are the parameters (settings) of this connection. After them, separated by an empty line, comes the name of the next VPN connection in square brackets (if you have two or more of them) and so on.


...
...


...
...

Copy this file to another location, for example to a flash drive. If you had several VPNs configured on this computer, and you need to configure only one or some on other computers, open the copied file in text editor(I prefer Notepad++). We list the extra connections along with their settings. This must be done carefully, without accidentally deleting some of the settings for the necessary connections.

Create a bat file from two lines

copy /Y rasphone.pbk C:\Users\user\AppData\Roaming\Microsoft\Network\Connections\Pbk

rasdial myvpn test_user 12345

I put the created bat file on a flash drive in the same directory where the edited rasphone.pbk file is located. Therefore, in the first line of the script I indicate its name without the path.

Assuming that the computer on which I will implement the solution is a typical Windows installation and the user is called user, so in the first line, in the command copy, the destination directory looks like this.

/Y means that the file in the destination folder will be overwritten if it exists, no questions asked.

My implementation assumes that there are no existing VPN connections configured on the deployment computer. If they are present, they will be lost (deleted) when the file is overwritten, and if connected, the script may generate an error. If there are already connections and you need to save them, you will not need to overwrite the rasphone.pbk file, but add the necessary text information to it.

The second line of the script immediately establishes a connection for the created VPN connection

We run the script and get the result. There are many variations of the implementation of this solution and each has its own situation. It is impossible to cover all situations in one article; the goal is to describe the general mechanism.

Conclusion

If there is not enough information in this article, please email us at info@site and we will try to make additions.

If you found the article interesting and useful, help other users find it - repost it on social networks using the buttons below.

IN Lately Privacy and anonymity on the Internet are no longer a luxury, but a necessity. Just in order to use familiar sites and applications in Russia, you need to connect to a VPN, even if the service officially operates in the country (not to mention Spotify and other programs). There are a lot of such examples, since the number of blocked and geographically unavailable services is growing every day.

It is a common belief that a VPN is only for hackers and computer gurus. Now this is far from the case - any user, if his favorite site is blocked, will want to bypass the blocking. And this can only be done using a VPN.

There are quite a lot of VPN services now, but the levels of encryption of all traffic to exclude cases of interception by third parties are different for everyone, and Proxy (used in browser plug-ins) generally only “hide” the IP and cannot protect the transmitted data. Zoog VPN is considered one of the best: it uses a zero-log storage policy and own DNS servers located in Greece.

This approach has many advantages. The provider does not see what resources the user visits and cannot block or implement its own scripts and toolbars. A nice bonus There is also wide support for protocols - from OpenVPN TCP/UDP, IKEv2 and L2TP/IPsec to PPTP VPN.

One of the features of Zoog VPN is that it supports bank-grade encryption. The service uses an encryption algorithm with 256-bit keys, SHA256 authentication and the RSA-2048 algorithm. This is especially important when using public Wi-Fi points in airports, subways, cafes and restaurants and other similar places.

To start using the service, you just need to install the application on the same Mac or Windows and register - the program will work in the background, and it only takes one click to start the connection.

Before this, you can select one of the servers to connect to or the VPN protocol in the settings. For example, IKEv2 VPN will be needed for Blackberry and other devices.

In addition, the service has cool app for iOS and Android, with which you can always remain incognito on the Internet, including when using the network mobile operator. It is available for free and has a simple yet functional interface.

Well, a nice “cherry on the cake” - Zoog VPN provides its Socks5 users with a proxy for accessing Telegram, uTorrent, BitTorrent, Vuze and other applications. Just enter the server address and port in the settings of the desired application, and use your account information as the username/password.

You can use Zoog VPN for free, but the number of servers and traffic volume will be limited. To remove all restrictions, you can take advantage of the promotion - right now, a 2-year subscription will cost only $1.25 per month instead of the regular price of $11.99 per month. Or sign up for a monthly/annual subscription, which are not so profitable. For this money you will get access to more than 28 servers, unlimited traffic, P2P, Socks5 proxy and all other “goodies” of the service.

Greetings! And straight to the point. What is a VPN server for? It is mainly used to change the IP address and country in order to bypass various site blocking at work and at home. In addition, a VPN connection helps to encrypt the traffic and thus ensures the security of the transmitted data.

For example, using public Wi-Fi, all data transmitted through the network can be “hijacked”. Theoretically, these could be any files, but usually they steal passwords from wallets, mail, Skype, and anything else. In this article we will set up our own VPN server, it is not difficult. Despite the volume of the text, the main action takes up a small part, and the rest is buns :) The article also contains a video.

There are a lot of small ones on the Internet, from free to very paid ones. Disadvantages of free VPN services:

  • limited in speed
  • instability (everything is fine, then it’s terribly slow)
  • traffic restrictions (up to several Gigabytes per month)
  • Free period restrictions
  • periodically you need to look for other services
  • It’s not a fact that the transmitted data will be safe; you shouldn’t hope for anonymity at all, I would say.

Disadvantages of paid ones:

  • the desired country or city is not always available
  • hackneyed IP addresses (used by hundreds of clients), also applies to free ones
  • there is simply a scam without a refund, for example, the traffic is not unlimited, some servers do not work or are too slow

There are also advantages of VPN services - ease of use and relative cheapness.

Own VPN server on VPS/VDS hosting

So, if you need a specific country or city, or you need a lot of traffic that VPN services do not provide, or a guarantee of security, then it makes sense to bother setting up a personal VPN server. Typically this requires deep knowledge server system administration. But I tried to explain everything simply so that even a teapot could understand it)

This method also has disadvantages:

  • there is only one IP address to which you can “transfer”, but there are additional ones for a fee
  • non-trivial setup for the first time
  • paid

Read to the end, and I will show you how to use your VPS server to bypass blocks without setting up a VPN on it.

What is a VPS/VDS server?

There are countless hosting providers on the Internet. All of them allow you to host your websites with them. The most popular service is virtual hosting. More advanced is dedicated virtual server– VPS (VDS is the same thing). On VPS you can host websites, set up a VPN server, mail server, game server - whatever!

You need to know that VPS servers come in several types: OpenVZ, Xen and KVM. For the VPN server to work you need KVM. The server type is indicated in the hosting plans. OpenVZ and Xen are also sometimes suitable, but you need to write to the hosting technical support and ask if the “TUN” module is connected. Without going into details about what it is for, just asking. If not, can they enable it. It also doesn't hurt to ask if the VPN itself will work (even on KVM), because... some companies cover this possibility. Oh yes, the server operating system is Debian, Ubuntu or CentOS (in general, Linux-like). Server power doesn't matter.

Setting up a VPN server

I have a KVM VPS server at my disposal. Everything works here right away, you don’t need to write anywhere.

  • When ordering a service, you can choose the simplest one tariff plan"Micro"
  • All sites open even on servers in Russia
  • There is a free trial period of 7 days
  • Technical support helps
  • For my visitors, when you enter the promotional code: itlike60 - you will receive a real 60% discount on your first payment.

“Hostname” enter any or the name of your site (if you will in the future). “OS Template” select “Ubuntu 14.04 64bit” or any of Ubuntu, Debian, CentOS:

You can then change the operating system if things don’t work out.

After payment, you will receive an email with login details for the control panel and a Root password for setting up the server. And also the IP address of the server, and this will be your IP address when we install a VPN and connect to it from a computer

Click the “Manage” button and get into the administration window:

We don't need to touch anything here. The only thing that may be needed is to reinstall the operating system - the “Reinstall” button, more on that later.

Now we need to connect to the server to send commands to it. For this we will use free program Putty.

Unpack the archive with the program and run the file putty.org.ru\PuTTY PORTABLE\ PuTTY_portable.exe

In the “Host Name” field we paste the IP address of the server that came in the letter, you can also copy it from the control panel:

and click “Connect”. If a window like this pops up, then click “Yes”:

A black console window (command line) should appear in front of us. This is where we will give commands. But first you need to log in. To do this, enter “root” in the “login” field

Then copy the root password from the letter and paste it into the “password” field. To paste here from the clipboard, you just need to right-click once on the console window. However, the password is not printed on the screen, it feels like nothing happened. Everything is fine, press “Enter”. Lines with information about the system should appear. If you wrote some error, check it again. Also, the console will not wait long while you look for the root password. If by that time an error occurs, then launch Putty again.

Installing and running the main script

We are already at the finish line in setting up our own VPN server. There are many instructions on the Internet on how to install a server, but they all require knowledge system administrator, because small nuances are overlooked. To the delight of all dummies, there is a universal script “OpenVPN road warrior” that will do all the work itself. We only need to give the command to download and run it.

So, copy this line and paste it into the console window with the right button and press “Enter”: wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh

All sorts of lines will flash through and, if the script has been successfully downloaded and launched, a dialogue with us will begin with the VPN server setup wizard:

The script finds the expected value for each parameter and offers to agree with it, i.e. Press “Enter” or enter your value.

  1. The first parameter is "IP address". The script should offer the same IP of the VPS server. This should be the case in 99.9% of cases, but if for some reason this is not the case, then correct it to the correct address.
  2. Second - protocol UDP or TCP. Leave the default UDP.
  3. Go ahead, "Port: 1194"- we agree.
  4. "What DNS do you want to use with the VPN?"— select “Google”, i.e. Enter the number “2” instead of one, Enter. If Google is blocked, then we leave it as default.
  5. "Client name"- Username. You can create access for different users. By default “client” - we agree.
  6. "Press any key..."— press “Enter” and wait a few minutes until everything is installed and configured.

In general, the creation of a VPN server is now complete, it’s time to reap the benefits. During the installation process, the script created a file with settings for our computer. In order for us to use the server, this file must be downloaded. To do this, insert into command line: cat ~/client.ovpn

The contents of the “client.ovpn” file will be displayed on the screen. Now you need to carefully copy it to the clipboard. Scroll up until you enter the command, select with the mouse all the lines except the very last one (for new commands), i.e. the last highlighted line will be “ " To copy the selection to the clipboard, press “Ctrl-V”.

Now on a computer in Windows 7/8/10, open Notepad and paste the copied text into it. Save the file on your desktop under the name “client.ovpn”.

If you plan to give access to the server to other people, then it is better to create for them separate files, for example vasya.ovpn. To do this, simply run the script again and now select the 1st item - creating a new user.

Client installation for Windows 7/8/10/XP and Android

Congratulations, we are at the finish line! Now all that remains is to install a free program that will connect to our VPN server. It's called "OpenVPN".

Download the version for Windows and install it, no need to run it.

If during the installation process all sorts of windows pop up, we agree with everything.

To connect to the server, right-click on the “client.ovpn” file on the desktop and select “Start OpenVPN on this config file”:

A black window will appear indicating the connection initialization process. If everything went well, then the last line should be something like:

A window may also pop up asking you what type of new network to use, then select “Public Network”.

You can check, go to the website 2ip.ru and look at your IP, it must match the IP of the VPS server:

The server console window can now be safely closed. And to close the VPN connection and return the old IP, you need to close the OpenVPN window.

To connect next time, just right-click the “client.ovpn” file from the desktop, you don’t need to do anything else.

With phone It’s even simpler, you need to install the OpenVPN application through the playmarket, download the client.ovpn file into memory, select it in the application and connect to our VPN server.

What if something went wrong

If you feel that because of your mistake everything is now going awry, then you can reinstall operating system on hosting. To do this, click “Reinstall” in the control panel (see screenshot of the panel) and select a new operating system (or the same one):

Press the “Reinstall” button and wait 10 minutes. A new Root password will also be issued, do not lose it!

Connection errors

Most problems arise at the stage of connecting to the server in the OpenVPN program, especially in Windows 8/10. The black window may contain errors, for example:

  • FlushIpNetTable failed on interface
  • All TAP-Win32 adapters on this system are currently in use
  • CreateFile failed on TAP device
  • DNS failed..

In this case, the first thing to do is to give the program administrator rights and, accordingly, log into the system with administrator rights. Let's go to "C:\Program Files\OpenVPN\bin\", right-click on the file openvpn.exe -> properties. On the “Compatibility” tab, check the “Run this program as an administrator” checkbox. Now everything should work.

More treatment options:

  • remove the program and reinstall as administrator
  • disable the Routing and remote access» (“Routing and Remote Access”) via “Control Panel -> Administration -> Services”
  • try reinstalling from or here
  • remove all VPN programs and gadgets from other paid and free services

You can find out whether the problem is with your computer or laptop if you install the OpenVPN application on your phone or tablet through the play market, upload the client.ovpn file to it and connect to our VPN server. If this doesn’t work, then you need to look for the reason on the server and write to support.

If everything works, the sites are stuck and open intermittently

Pay attention to the messages in the black window to see if there are repeated lines “read from TUN/TAP ... (code=234)”

and also to the message somewhere in the middle “WARNING: ‘tun-mtu’ is used inconsistently, local...”:

In this case, open the client.ovpn file in Notepad and in the new very first line write:

tun-mtu 'server value'

server value is the number indicated at the end of the line in the text “remote=’tun-mtu 1500′”. Substitute your meaning! In the end it should look like this:

This is done because for some reason the MTU value on the computer and on the VPS server are different. We leave the .ovpn file for the smartphone untouched!

We allow traffic through a proxy without any settings at all

You can use our VPS/VDS server as a Proxy Server. To do this, we do everything as before until we click the “Connect” button in the Putty program. There is no need to open the console and run the script. Go to the “SSH->Tunnel” tab, set Source Port: 3128

Oops, I finished the article later, here I have Putty in English, but the essence is the same.

If it writes the error " You need to specify a destination address in the form host.name:port", then switch to "Dynamic" instead of "Local".

On the “Connection” tab, in the “Seconds between keepalives...” field, set it to 100 seconds, this is necessary so that the connection does not break due to downtime. Now let’s connect - click “Open” and enter your login/password. Next, go to the network settings in the browser and register the proxy server there. In chrome it's “Settings->Search for settings->write ‘proxy’->Proxy server settings.” We do everything as in the screenshot:

Now all sites will work through our server, but only in the browser and some programs. Other programs will not see the proxy and will work directly. In each program, in the connection settings, if provided, you need to specify the address, port and proxy type: Socks4/5. Or install OpenVPN and don't use a proxy.

How to allow only certain sites through a proxy

Install the extension for Google Chrome or Mozilla Firefox, called . In the settings you need to add our proxy server:

On the “URL Patterns” tab we add masks for sites that should be opened through our server. The site mask is its name with asterisks on the sides.

That's it, now the added site will go through a proxy, and all others will go directly. If you click on the extension icon, you can choose to allow all sites through it or none at all.

Shortcut for automatic connection

You can connect Putty to a proxy with one click. To do this, before connecting, you need to enter the server login in the “Connection->Data” section, the one that usually root

Now you need to create a shortcut on the desktop in which you specify the following parameters:

“C:\Program Files\PuTTY\putty.exe” -load myvpn -pw server_password

Where myvpn is the name of the saved session. That's it, there is only one detail left - remove the Putty window from the taskbar to the system tray. You need to download a modification of the utility and replace the exe file. Now in the settings tab Behavior a corresponding check mark will appear, but you don’t have to do this.



Related publications