How to set up smartphones and PCs. Informational portal
  • home
  • News
  • Enable vpn. Vpn connection: what is it and what is a vpn channel for

Enable vpn. Vpn connection: what is it and what is a vpn channel for

Virtual Private Network, aka VPN, aka virtual private network. In fact, in a sense, such networks should be considered as a step backwards, however, a forced and extremely effective step. VPNs allow you to return from global networks to local networks, albeit on a rather unusual scale.

VPN, on the other hand, allows you to connect computers scattered around the world into virtual local networks, while you can interact with other network members as if everyone is connected to the same router - play on the local network, open shared folders through Network Places, and also print on "shared" printers. So, we suggest you learn how to create VPN networks, connect to them, and also solve some problems that may arise (although not necessarily) while using them. Despite the fact that the general principle always remains the same, we will talk about how to set up a VPN on Windows 7.

Server creation

Let's start creating a VPN server - a computer to which other users of our virtual network will connect. First of all, we need to get into the Network and Sharing Center. To do this, the following steps are performed: start button; "Control Panel"; "Network and Sharing Center".

Photo: "Network and Sharing Center"

If in the upper right corner you see the inscription "Category", you need to click on it and switch the mode to "Large Icons" - this display mode is used in our instructions.

As a result, you should see something like this:

The window displayed on your screen allows you to control almost every aspect of your computer's networking. Here you need to click on the "Change adapter settings" icon.

Photo: Change adapter settings icon

To start creating an incoming connection, follow these steps:


You now have a window like this on your screen, with a few minor exceptions.

Firstly, there may be other items in the list of accounts, and also, you are unlikely to have the “vpnuser” user, which we will now create by clicking on the “Add User” button.

Photo: entering new user data

Fill in the indicated fields:"User" - here the username of the client is indicated; "Password" and "Confirmation" - the password of the created account (the values ​​must match); the "Full name" field is optional - it can be left empty, since it does not affect functionality.

After filling in the fields, click on the "OK" button. If you want to add a few more VPN users (this can be useful for further control over them), repeat the procedure as many times as necessary. When the creation is finished, click "Next". In the next window, check the box "Via the Internet", otherwise the "Next" button will be unavailable. Accordingly, after the checkbox, click on the button and get the following window:

It remains to configure the protocols. Regarding their choice - it is better to leave everything as it is. However, if you plan to use applications that need IPv6 support, you can check the box next to this protocol, however, in 99% of cases this is not necessary.

It is extremely important to properly configure IPv4:


Everything is necessary in order to be able to find connected users in the future. In addition, this way you can limit the maximum number of connected, which can be very useful. When you're done, click OK and then the Allow Access button. The VPN server has been created. It remains only to click on the "Close" button and start setting up clients. Also take a look at the "Port Forwarding" chapter - it might be helpful.

Connecting on a computer

Let's start configuring client computers. First of all, you need to find out the server address, if you are connecting to a “homemade” VPN server, for this you need to go from it (from the server), for example, to the site myip.ru, which will clearly and clearly give out your IP address. In the future, we recommend using services in the spirit of DynDns - so as not to waste time searching for an address.

So, to establish a VPN connection, we perform the following steps:


This click will launch a short connection wizard, in the first step of which you need to select the "Connect to a workplace" item and click "Next".

Photo: point "Connection to the workplace"

Now select the first item from the list. You may not even think about the second one in the 21st century - it is needed for DialUp modems.

If you did everything right, it's time to enter the server address. This can be either an IP address that we looked up on the server, or a domain name that can be obtained through dynamic DNS services.

In our case, the address is specified as 157.57.121.54, however, in your case, the numbers will probably be different. You can fill in the "Destination name" field at your own discretion - it will not affect the operation of the network. Also, it is worth checking the box “Do not connect now”, so as not to waste time in the setup process.

Once the required data is specified, click "Next" and proceed to fill in the fields:

  1. "Username" - here you enter the login specified when creating the VPN server;
  2. "Password" - similarly - the password of the VPN user specified in advance is indicated;
  3. Optionally, you can check the "Remember password" box.

It remains to click on the "Create" button and your VPN connection is ready. If the server is running, and you are sure of the correctness of your actions, you can connect now using the "Connect now" button. In addition, you can always establish a connection using the network icon in the lower right corner.

That's all. If everything is done correctly, then you can start using your virtual network, however, we recommend that you read this article to the end - even if everything is working fine now, there is a risk that problems will appear sooner or later and it is better to be prepared for them.

VPN Server in Windows 7

First of all, it should be noted that the built-in VPN server in the "seven" has one important and extremely unpleasant limitation - only one person can connect to your server at a time. If you want more - install Windows Server, however, you can find a rather effective patch on the network that removes this annoying limitation - after applying it, several connections will become available. In addition, sometimes for a full-fledged configuration, it is necessary to configure the firewall and forward ports - we will tell you about this now.

Video: Making a Connection

Configuring Firewalls

In some cases, the connection is established, but there is no connection between computers. It's all about the built-in firewall (or firewall) Windows.

To make it friendlier, you need to indicate that you trust the connected users.

We establish a connection, go to the "Network Control Center" and look for the connection icon. On the client it is called "RAS" and on the server it is called "VPN connection".

We click on them on both machines and select "Home network".

That's all, on this your problems should disappear.

Port forwarding

Another snag is that home routers and ADSL modems do not by default open the ports required for VPN. In this case, you will have to do it manually.

Photo: setting up port forwarding

You will have to open ports on the server, or rather, on the router to which it is connected - how this is done is described in detail in the instructions for your device, but we will only report that the Windows VPN server uses TCP port 1723. Also, if available such a feature, disable the GRE lock.

Setting parameters

Even when the VPN server is already configured, you can change its settings. To do this, open the "Change adapter settings" window that we used in the first part of the article, then right-click on the "Incoming Connections" icon and select "Properties".

A window will appear on your screen where you can edit, delete, and add users, as well as configure protocol settings and IP address ranges. In other words, change the parameters that were specified when creating the connection.

Attention! This feature only works fully if the connection is idle - if someone is connected to you, disable it before changing the settings.

Error 807

Network connection interrupted error number 807 is a real scourge for novice admins. To get rid of it (or at least find out the cause of its occurrence), you need to take a few steps:


As an additional measure, try setting everything up again.

Enable debug logs

Sometimes it is necessary to log all server events to a readable file to obtain additional information. To start this process, press Win + R and in the window that opens, enter: netsh ras set tracing * enabled.

Press Enter and go to the Windows\tracing directory, there you will find several files (5 pieces) that contain detailed information about connection attempts and transmitted data. They open with any text editor. Disabling an entry is done by a similar command, however, the word enabled must be replaced with disabled. VPN is a great solution for a number of cases. However, it has gained the greatest popularity in the corporate environment. Let's say you're on a business trip with your laptop, but you want to use it like you're in the office. In that case, a VPN is exactly what you need.

In addition, such a solution is often used for remote access to printers - despite the fact that there are a lot of modern protocols, such a solution is still simple and convenient.

And, of course, we should not forget about games - a VPN network greatly simplifies the launch of gaming programs designed to work on a local network. Naturally, all this is not a complete list of possible VPN applications. The functions of this service can be useful to everyone, so keep this manual at the ready.

Every year, electronic communication is improving, and ever higher demands are placed on information exchange for the speed, security and quality of data processing.

And here we will take a closer look at a vpn connection: what it is, what a vpn tunnel is for, and how to use a vpn connection.

This material is a kind of introductory word to a series of articles where we will tell you how to create a vpn on various operating systems.

vpn connection what is it?

So, a virtual private network vpn is a technology that provides a secure (closed from external access) connection of a logical network over a private or public one in the presence of high-speed Internet.

Such a network connection of computers (geographically distant from each other at a considerable distance) uses a point-to-point connection (in other words, "computer-to-computer").

Scientifically, this connection method is called a vpn tunnel (or tunnel protocol). You can connect to such a tunnel if you have a computer with any operating system that has an integrated VPN client that can “forward” virtual ports using the TCP / IP protocol to another network.

What is vpn for?

The main advantage of vpn is that negotiators need a connectivity platform that not only scales quickly, but also (primarily) provides data confidentiality, data integrity, and authentication.

The diagram clearly shows the use of vpn networks.

Beforehand, the rules for connections over a secure channel must be written on the server and router.

how vpn works

When a vpn connection occurs, information about the IP address of the VPN server and the remote route is transmitted in the message header.

Encapsulated data passing over a public or public network cannot be intercepted because all information is encrypted.

The VPN encryption stage is implemented on the sender's side, and the recipient's data is decrypted by the message header (if there is a common encryption key).

After the message is correctly decrypted, a vpn connection is established between the two networks, which also allows you to work in a public network (for example, exchange data with a client 93.88.190.5).

As for information security, the Internet is an extremely insecure network, and a VPN network with OpenVPN, L2TP / IPSec, PPTP, PPPoE protocols is a completely secure and secure way to transfer data.

What is a vpn channel for?

vpn tunneling is used:

Inside the corporate network;

To unite remote offices, as well as small branches;

To serve digital telephony with a wide range of telecommunication services;

To access external IT resources;

To build and implement videoconferencing.

Why do you need a vpn?

vpn connection is required for:

Anonymous work on the Internet;

Application downloads, in the case when the ip address is located in another regional zone of the country;

Safe work in a corporate environment using communications;

Simplicity and convenience of connection setup;

Providing high speed connection without breaks;

Creation of a secure channel without hacker attacks.

How to use vpn?

Examples of how vpn works are endless. So, on any computer in the corporate network, when establishing a secure vpn connection, you can use mail to check messages, publish materials from anywhere in the country, or download files from torrent networks.

Vpn: what is it in the phone?

Access via vpn on your phone (iPhone or any other Android device) allows you to remain anonymous when using the Internet in public places, as well as prevent traffic interception and device hacking.

A VPN client installed on any OS allows you to bypass many settings and rules of the provider (if he has set any restrictions).

Which vpn to choose for the phone?

Android mobile phones and smartphones can use applications from the Google Play market:

  • - vpnRoot, droidVPN,
  • - tor browser for surfing networks, aka orbot
  • - InBrowser, orfox (firefox+tor),
  • - SuperVPN Free VPN Client
  • - Open VPN Connect
  • - Tunnel Bear VPN
  • - Hideman VPN

Most of these programs serve for the convenience of "hot" system configuration, placement of launch shortcuts, anonymous Internet surfing, and selection of the type of connection encryption.

But the main tasks of using a VPN on your phone are checking corporate email, creating video conferences with multiple participants, and holding meetings outside the organization (for example, when an employee is on a business trip).

What is vpn on iphone?

Consider which vpn to choose and how to connect it to an iPhone in more detail.

Depending on the type of network supported, when you first start the VPN configuration on iphone, you can select the following protocols: L2TP, PPTP, and Cisco IPSec (in addition, you can “make” a vpn connection using third-party applications).

All of these protocols support encryption keys, user identification with a password and certification.

Among the additional features when setting up a VPN profile on an iPhone, one can note: RSA security, encryption level, and authorization rules for connecting to the server.

For the iphone phone from the appstore store, you should choose:

  • - free application Tunnelbear, with which you can connect to VPN servers of any country.
  • - OpenVPN connect is one of the best VPN clients. Here, to run the application, you must first import rsa-keys via itunes to your phone.
  • - Cloak is a shareware application, because for some time the product can be "used" for free, but to use the program after the demo period expires, you will have to buy it.

Creating a VPN: choosing and configuring equipment

For corporate communication in large organizations or the consolidation of offices remote from each other, they use hardware equipment that can support uninterrupted, secure networking.

To implement vpn technologies, the following can act as a network gateway: Unix servers, Windows servers, a network router and a network gateway on which VPN is raised.

The server or device used to create a vpn network of an enterprise or a vpn channel between remote offices must perform complex technical tasks and provide a full range of services to users both on workstations and on mobile devices.

Any router or vpn router should provide reliable network operation without “freezes”. And the built-in vpn function allows you to change the network configuration for working at home, in an organization or a remote office.

vpn setup on router

In the general case, VPN configuration on the router is carried out using the router's web interface. On "classic" devices for organizing vpn, you need to go to the "settings" or "network settings" section, where you select the VPN section, specify the protocol type, enter your subnet address settings, masks and specify the range of ip addresses for users.

In addition, to secure the connection, you will need to specify encoding algorithms, authentication methods, generate negotiation keys, and specify DNS WINS servers. In the "Gateway" parameters, you need to specify the ip-address of the gateway (your ip) and fill in the data on all network adapters.

If there are several routers in the network, it is necessary to fill in the vpn routing table for all devices in the VPN tunnel.

Here is a list of hardware equipment used in building VPN networks:

Dlink routers: DIR-320, DIR-620, DSR-1000 with new firmware or D-Link DI808HV router.

Routers Cisco PIX 501, Cisco 871-SEC-K9

Linksys Rv082 Router Supporting About 50 VPN Tunnels

Netgear router DG834G and router models FVS318G, FVS318N, FVS336G, SRX5308

Mikrotik router with OpenVPN function. Example RouterBoard RB/2011L-IN Mikrotik

Vpn equipment RVPN S-Terra or VPN Gate

ASUS RT-N66U, RT-N16 and RT N-10 Routers

ZyXel routers ZyWALL 5, ZyWALL P1, ZyWALL USG

More and more cafes, hotels and other public places are acquiring their own Wi-Fi networks. But by using insecure traffic, device owners endanger the security of their own data. Therefore, the relevance of private networks is also increasing. To protect yourself, you can create a VPN connection. About what it is and how to properly configure it in Windows 7, read our article.

What is a VPN connection and why you need it

This technology implies a secure network created on top of an insecure network. The VPN client, using a public network, connects to the VPN server through special protocols. The server receives the request, authenticates the client, and then transmits the data. This is provided by means of cryptography.

VPN features allow you to use it for the following purposes:

  1. Hide your real IP and become anonymous.
  2. Download a file from a network where access is restricted for IP addresses of the user's country (if you use the IP address of a country that has access to this network.
  3. Encryption of transmitted data.

How to set up a connection?

  1. Through the "Start" open the "Control Panel", then launch the "Network and Sharing Center".

    Select the "Network and Sharing Center" area

  2. Click on the "Set up a new connection or network" link.

    To create a new connection or network, you need to click on the corresponding line in the list

  3. Click "Connect to a workplace".

    Select "Connect to Workplace"

  4. Select "Use my Internet connection (VPN)".

    Select "Use my Internet connection (VPN)"

  5. In the "Internet address" field, enter the address of your VPN server.
  6. To find out, you need to run the Run tool (Win + R) and enter cmd.

    You need to type in the cmd line and press "Enter"

  7. Then write the ipconfig command, run it and find the line "Default Gateway", which contains the desired address.

    You need the address that is in the line "Main gateway"

  8. Now you need to insert the address and check the box "Do not connect now ..." and click "Next".

    Enter the received address in the field, check the box next to the item "Do not connect now ..."

  9. Enter the username and password provided by the provider and click "Create".

    Enter login and password

  10. Close a window.
  11. Open "Network and Sharing Center" again and click "Change adapter settings".
  12. The VPN connection icon has appeared here. To connect, you need to right-click on the icon and click "Connect". To disable - also right-click on the icon and click "Disable".

    Here is the VPN connection icon, through which you can connect or disconnect

  13. In the window that opens, enter your username and password and connect.

    Enter your username and password (if necessary) and click "Connect"

Video: Creating and configuring a VPN

Possible errors and ways to solve problems

400 Bad Request

  1. Turn off the firewall or other program that affects the security and activities on the network.
  2. Update the version of the browser you are using or use a different one.
  3. Delete everything that the browser writes to disk: settings, certificates, saved files, and more.

611, 612

  1. Restart your computer and check if the local network is working. If this does not solve the problem, then call the technical assistance service.
  2. Close some programs to increase system performance.

629

Check firewall settings. As a last resort, you can disable it, but this is undesirable, as it will reduce the level of security.

630

Reinstall network adapter drivers.

650

  1. Check if "Local Area Connection" is working.
  2. There is a problem with the network card or network cable.

738

  1. It is possible that the username and password were stolen by intruders.
  2. "Hung" session. After a few minutes, try to connect again.

752

  1. The local firewall is configured incorrectly.
  2. Changed access attributes (international phone number instead of VPN server address).

789

Open the VPN connection settings, go to the "Network" tab and select "Automatic" or "Point-to-Point Tunneling Protocol (PPTP)" from the available VPN types. Then reconnect.

800

The cable, router or router may be damaged. If they are in order, then you need to check the following:

  1. LAN connection properties. Perhaps they got lost or were removed. You need to open the properties of the VPN connection, select "Internet Protocol version 4 (TCP / IPv4)" and open its properties. Then check the correctness of the parameters: IP address, subnet mask, default gateway. As a rule, they are specified in the provider's contract for connecting to the Internet. Alternatively, you can check the boxes next to "Obtain an IP address automatically" and "Obtain DNS server address automatically".
  2. If a router or router is used, then the Default Gateway field is 192.168.0.1 (192.168.0.1). More information about this is described in the instructions for the router. If it is known for sure that the access point has a default gateway of 192.168.0.1 or 192.168.1.1, then the IP addresses are in the range of 192.168.0.100 (192.168.1.100) and higher.
  3. IP address conflict (in the tray on the monitor icon there is a yellow exclamation mark). This means that there is a computer on the local network with the same IP address. If there is no router, but there is a conflict, then the IP address that is not specified in the agreement with the provider is used. In this case, you need to change the IP address.
  4. There may be problems with the subnet mask or DNS server. They must be specified in the contract. Where a router is used, the DNS is often the same as the default gateway.
  5. The network card is turned off or burned out. To check the device, you need to click "Start", select the "Run" tool and enter mmc devmgmt.msc into the line. In the window that opens, click on "Network adapters". If it is turned off (crossed out), then you need to start it. If the card does not turn on, it means that it burned out or left the slot (the second option is only possible if the card is not built into the motherboard). If the card works, then turn it off and start it again. As a last resort, you can remove the network card from the configuration and click on the "Update hardware configuration" icon. The system will find the network card and install it.
  6. Incorrect VPN server address. It should be listed in the instructions. If there is no such information, then you need to contact the technical service. If the Internet works without a VPN connection, then go to the provider's website and find the address of the VPN server. It can be either literal (vpn.lan) or as an IP address. To view the VPN server address, you need to open the properties of the VPN connection.
  7. There is no money in my personal account.

Regardless of the error, if it cannot be fixed on your own, you will have to contact the technical support service.

How to enable automatic start?

  1. In order for the connection to start automatically, you need to go to "Control Panel" - "Network and Internet" - "Network Connections".

    Find VPN in Control Panel

  2. We find the VPN, open the properties, then go to the "Settings" tab and uncheck the boxes "Display connection progress", "Prompt for a name, password" and "Enable Windows logon domain".
  3. After you need to open the Windows Task Scheduler. Go to "Control Panel" - "System and Security" - "Administrative Tools" - "Task Scheduler". Or you can go through the registry: Win + R, enter the taskschd.msc line.

    Open Task Scheduler

  4. Select "Action" from the menu, then "Create a simple task".

https://www.site/2018-04-24/kak_ustanovit_vpn_i_obhodit_blokirovki_pyat_nadezhnyh_servisov

For three letters

How to install a VPN and bypass blocking. Five reliable services

If you have not yet learned how to bypass Roskomnadzor blocking, the site publishes short and understandable instructions for installing VPN services on your devices.

What is a VPN?

VPN stands for Virtual Private Network. This is a technology that allows you to create a virtual private network. Simplifying greatly, it creates a direct secure connection between two hosts (points) on the network. Since one of the points may be located on the territory of another country, one of the useful features of a VPN is to bypass blocking.

Even easier? It is like a “tunnel” that allows you to “get out” on the Internet in a different geographic location. A device connected via VPN will be virtually located not in Russia, but in Germany, Sweden, the Czech Republic, Austria, the USA - anywhere. Accordingly, the restrictions of Roskomnadzor will not apply to him.

VPN is needed only to bypass blocking?

No, we can say that this is a side function (which, however, is now becoming almost the main one). But in general, VPN is used primarily for the security of connections. Including VPNs are actively used by corporate and government structures to combine different offices into one common network. In addition, experts advise connecting to any public Wi-Fi networks only with VPN turned on.

In general, VPN services provide you with anonymity (they do not record your activities on the Internet), encrypt your traffic, and generally make your Internet experience safer.

How to install a VPN? It's complicated? It is expensive?

It's easy, anyone can do it. VPN services provide various services (list below), you just need to select any of them, register, enter card details and install the necessary applications on your devices. During installation, the application will ask you to make automatic changes to the settings of your device - you will need to agree. Then you can simply open the app and turn the VPN on and off as needed. In general, you can keep the VPN turned on all the time.

There are free VPNs, but they usually have a daily or monthly data limit (and there may be other limits). It is better to use one of the paid services - it will work faster and more reliably. It costs about 60 to 100 dollars a year (about 3.5 - 6 thousand rubles). Depending on the payment plan, money will be debited from your card once a month or once a year (the second option is usually much more profitable).

Two screenshots of the VyprVPN app on iOS. On the left is the current connection screen (connection via an Austrian server). On the right is a list of servers available for connection (the smaller the number in the left column, the faster the Internet will work)

Most services allow you to use multiple devices at the same time on one account (usually from three to six, depending on the service). That is, you can connect your phone, tablet, home and work computers, and maybe even the devices of relatives through the same VPN service. The VPNs listed here support most common devices and operating systems (iOS, Android, Windows, and Mac, of course). Many VPN services can be configured right on the router so that, for example, all home or office traffic goes through the VPN connection.

Here are some good, proven services to recommend. By clicking on the link, you will be taken to the service website, where you will find links to registration and all applications.

As a rule, there are different tariff plans, which depend on the number of simultaneous connections and additional options (for example, cloud storage). In this list, we provide the cheapest plans.

Price: from $60 per year

Price: from $40 per year

Number of simultaneous connections: up to six

Price: from $60 per year (there is also a free version with limited traffic)

Price: from $80 per year

Number of simultaneous connections: up to three

Price: from $80 per year

Number of simultaneous connections: up to five

Will a VPN slow down your internet?

Yes, but not much. As a rule, the VPN service automatically connects through the fastest server. True, sometimes one is located on the territory of Russia, so this will not help you bypass the blocking. In this case, you can manually select another fast server in a special menu. You need to focus on the minimum delay value in milliseconds. When you connect to a fast server, you will most likely not even notice that you have a VPN connected, including when watching a video.

What problems can be with a VPN?

Sometimes a VPN connection can cause some services to not work properly. On mobile devices, it happens that there are problems with determining the location - for example, we had difficulties calling Uber. Streaming services like Netflix may not work. But in general, in the current conditions, connecting via VPN through a foreign server will most likely even make your work on the Internet more stable, since millions of IP blocks due to the fight against Telegram will not apply to you. By the way, Telegram will work fine.

And if something does not work with VPN, you can always turn it off.

Isn't VPN banned? It is legal?

Using a VPN in Russia is not prohibited by law. At the same time, formally, in our country there is a law that allows you to block those VPN services that do not prohibit their users from accessing sites banned in Russia. However, as far as is known, this law has not yet been applied to VPNs.

In any case, no sanctions are provided for ordinary users today.

I still don't know which service to choose. What are you using?

The site editors use VyprVPN and NordVPN. We've been using it for many years and we're happy with it. NordVPN has a website in Russian.

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

For example, using public Wi-Fi, all data that is transmitted through the network can be "hijacked". Theoretically, these can 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 goodies. The article also has a video.

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

  • limited in speed
  • instability (sometimes everything is fine, then it slows down terribly)
  • traffic restrictions (up to several gigabytes per month)
  • free trial limits
  • periodically need to look for other services
  • it’s not a fact that the transmitted data will be safe, you shouldn’t rely on anonymity at all, I would say.

Paid Disadvantages:

  • not always the right country or city is available
  • hackneyed IP addresses (used by hundreds of clients), also applies to free
  • sometimes it’s just 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 - this is ease of use, 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, a guarantee of security, then it makes sense to get confused by setting up a personal VPN server. As a rule, this requires deep knowledge of server system administration. But I tried to explain everything simply so that even the kettle can understand)

This method also has disadvantages:

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

Read to the end and I will show you how to use your VPS server to bypass blocking 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 shared hosting. More advanced is a dedicated virtual server - VPS (VDS is, consider, the same thing). You can host websites on a VPS, raise a VPN server, a mail server, a game server - whatever!

You need to know that there are several types of VPS servers: OpenVZ, Xen and KVM. For the VPN server to work, you need KVM. The server type is specified in the hosting tariffs. 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 what it is for, just asking. If not, can they turn it on. It doesn't hurt to also ask if VPN as such will work (even on KVM), as some companies cover up this possibility. Oh yes, the server operating system is Debian, Ubuntu or CentOS (generally Linux-like). Server power doesn't matter.

Setting up a VPN server

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

  • When ordering the service, you can choose the simplest 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 promo code: itlike60, you will get 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:

The operating system can then be changed, if suddenly something does not work out.

After payment, you receive the login details for the control panel and the Root password for setting up the server by mail. And also the IP address of the server, and it will be your IP address when we raise the VPN and connect to it from the computer

Press 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 in order to send commands to it. To do this, we will use the free Putty program.

Unpack the archive with the program and run the file

putty.org.ru\PuTTY PORTABLE\ PuTTY_portable.exe

In the "Host name" field, 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 such a window 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, in the "login" field, enter "root"

Then we 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. At the same time, 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 slip. If you wrote some kind of error, then check everything again. Also, the console will not wait long while you are looking for the root password. If by that time an error pops up, then start 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 the knowledge of a system administrator, because small nuances are overlooked. To the delight of all dummies, there is a universal “OpenVPN road warrior” script 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 skip and, if the script has successfully downloaded and launched, the dialog of the VPN server setup wizard will begin with us:

The script finds the expected value for each parameter and offers to agree with it, i.e. press "Enter", or enter your own 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. The second is protocol. UDP or TCP. Leave the default UDP.
  3. Move on, Port: 1194- we agree.
  4. "What DNS do you want to use with the VPN?"- select "Google", i.e. we drive in the number "2" instead of one, Enter. If Google is blocked, then leave by 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 over, it's time to reap the rewards. During the installation process, the script created a configuration file for our computer. In order for us to use the server, this file needs to be downloaded. To do this, paste into the command line:

cat ~/client.ovpn

The contents of the "client.ovpn" file will be displayed on the screen. Now it must be carefully copied to the clipboard. Scroll up to enter the command, select all the lines with the mouse, except for 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. We save the file on the desktop under the name "client.ovpn".

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

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

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

Download the version for Windows and install it, you do not need to run it.

If any windows pop up during the installation process, 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 with the connection initialization process. If everything went well, then the last line should be something like:

A window may also pop up with a question about the type of new network, then select "Public network".

You can check, go to the site 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 in order to close the VPN connection and return the old IP, you need to close the window from OpenVPN.

To connect next time, simply right-click the "client.ovpn" file from the desktop, nothing else is required.

With phone it’s even easier, you need to install the OpenVPN application through the playmarket, upload the client.ovpn file to memory, select it in the application and connect to our vpn server.

What if something went wrong

If you feel that everything is going wrong because of your mistake, then you can reinstall the operating system on the hosting. To do this, click "Reinstall" in the control panel (see the 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, don't lose it!

Connection errors

Most problems occur at the stage of connecting to the server in the OpenVPN program, especially in Windows 8/10. There may be errors in the black window, 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 openvpn.exe file -> properties. On the Compatibility tab, check the "Run this program as an administrator" checkbox. Now everything should work.

More treatment options:

  • uninstall the program and reinstall as administrator
  • turn off the “Routing and Remote Access” service via "Control Panel -> Administrative Tools -> Services"
  • try reinstalling from or here
  • remove all VPN programs and stray from other paid and free services

You can understand whether the problem is in a computer or laptop if you install the OpenVPN application on your phone or tablet through the playmarket, upload the client.ovpn file to it and connect to our vpn server. If this does not work out, then you need to look for the cause on the server, write to the support service.

If everything worked, the sites are stupid and open intermittently

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

as well as a message somewhere in the middle "WARNING: 'tun-mtu' is used inconsistently, local...":

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

tun-mtu ‘server value’

server value is the number at the end of the line in the text "remote='tun-mtu 1500'". Submit your value! As a result, it should look like this:

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

We let traffic through a proxy without any settings at all

You can use our VPS/VDS server as Proxy Server. To do this, we do everything as before until the moment you click the "Connect" button in the Putty program. No need to open the console and run the script. We go to the tab "SSH-> Tunnel", we prescribe Source Port: 3128

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

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

On the "Connection" tab, in the "Seconds between keepalives ..." field, set 100 seconds, this is necessary so that the connection does not break due to downtime. Now we are connected - we press "Open", we enter the login/password. Next, go to the network settings in the browser and set the proxy server there. In chrome it is "Settings->Search settings->write 'proxy'->Proxy 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, they will work directly. It is necessary in each program in the connection settings, if any, to register the address, port and proxy type: Socks4/5. Or install OpenVPN and don't use a proxy.

How to allow only certain sites through the proxy

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

On the "URL Patterns" tab, add masks of 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 the rest will go directly. If you click on the extension icon, you can choose to let 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, in the “Connection-> Data” section, register the server login, the one that is 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. Everything, one detail remains - to 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 checkmark will appear, but this can not be done.

Top Related Articles