How to connect to a virtual private network (VPN). Setting up a VPN connection on Windows


In this article we will take a detailed look at the process of setting up a VPN server in the operating room. Windows system Server, and also answer the questions: What is a VPN and how to set up a VPN connection?

What is a VPN connection?

VPN (Virtual Private Network) is a virtual private network that is used to provide a secure connection to the network. A technology that allows you to connect any number of devices into a private network. As a rule, via the Internet.

Although this technology is not new, it has recently gained relevance due to the desire of users to maintain data integrity or privacy in real time.

This connection method is called a VPN tunnel. You can connect to a VPN from any computer, with any operating system that supports a VPN connection. Or a VPN-Client is installed, which is capable of forwarding ports using TCP/IP to a virtual network.

What does a VPN do?

VPN provides remote connection to private networks

You can also safely combine several networks and servers

Computers with IP addresses from 192.168.0.10 to 192.168.0.125 are connected through a network gateway, which acts as a VPN server. Rules for connections via the VPN channel must first be written on the server and router.

VPN allows you to safely use the Internet when connecting even to open wi-fi networks in public areas (in shopping centers, hotels or airports)

And also bypass restrictions on displaying content in certain countries

VPN prevents cyber threats from interception of information by an attacker on the fly, unnoticed by the recipient.

How VPN works

Let's look at how a VPN connection works in principle.

Let's imagine that transmission is the movement of a packet along highway from point A to point B, along the path of the packet there are checkpoints for passing the data packet. When using a VPN, this route is additionally protected by an encryption system and user authentication to secure the traffic containing the data packet. This method is called “tunneling” (tunneling - using a tunnel)

In this channel, all communications are reliably protected, and all intermediate data transmission nodes deal with an encrypted package and only when the data is transmitted to the recipient, the data in the package is decrypted and becomes available to the authorized recipient.

VPN will ensure the privacy of your information along with a comprehensive antivirus.

VPN supports such certificates as OpenVPN, L2TP, IPSec, PPTP, PPOE and the result is completely secure and safe way data transfer.

VPN tunneling is used:

  1. Inside the corporate network.
  2. Consolidation of remote offices, as well as small branches.
  3. Access to external IT resources.
  4. For building video conferences.

Creating a VPN, selecting and configuring equipment.

For corporate communications in large organizations or combining offices remote from each other, hardware is used that is capable of maintaining uninterrupted operation and security in the network.

To use the VPN service, the role of the network gateway can be: Linux/Windows servers, a router and a network gateway on which the VPN is installed.

The router must provide reliable operation networks without freezes. The built-in VPN function allows you to change the configuration for working at home, in an organization or in a branch office.

Setting up a VPN server.

If you want to install and use a VPN server based on the Windows family, then you need to understand that client machines are Windows XP/7/8/10 this function do not support, you need a virtualization system or a physical server on the Windows 2000/2003/2008/2012/2016 platform, but we will consider this function on Windows Server 2008 R2.

1. First, you need to install the “Network Policy and Access Services” server role. To do this, open the server manager and click on the “Add role” link:

Select the Network and Access Policy Services role and click next:

Select "Routing and Remote Access Services" and click Next and Install.

2. After installing the role, you need to configure it. Go to Server Manager, expand the "Roles" branch, select the "Network and Access Policy Services" role, expand it, right-click on "Routing and Remote Access" and select "Configure and enable routing and remote access"

After starting the service, we consider the configuration of the role complete. Now you need to allow users access to the server and configure the issuance of IP addresses to clients.

Ports that VPN supports. After the service is raised, they open in the firewall.

For PPTP: 1723 (TCP);

For L2TP: 1701 (TCP)

For SSTP: 443 (TCP).

The L2TP/IpSec protocol is more preferable for building VPN networks, mainly for security and higher availability, due to the fact that a single UDP session is used for data and control channels. Today we will look at setting up an L2TP/IpSec VPN server on the Windows Server 2008 r2 platform.

You can try to deploy on the following protocols: PPTP, PPOE, SSTP, L2TP/L2TP/IpSec

Let's go to Server Manager: Roles - Routing and remote access , right-click on this role and select “ Properties", on the “General” tab, put a tick in the IPv4 router fields, select “ local network and call on demand", and IPv4 remote access server:

Now we need to enter the pre-shared key. Go to the tab Safety and in the field Allow special IPSec policies for L2TP connections, check the box and enter your key. (About the key. You can enter an arbitrary combination of letters and numbers there main principle, the more complex the combination, the safer it is, and remember or write down this combination; we will need it later). In the Authentication Provider tab, select Windows Authentication.

Now we need to configure Connection security. To do this, go to the tab Safety and choose Authentication Methods, check the boxes EAP and Encrypted Authentication (Microsoft version 2, MS-CHAP v2):

Next let's go to the tab IPv4, there we will indicate which interface will accept VPN connections, and also configure the pool of addresses issued to L2TP VPN clients on the IPv4 tab (Set the Interface to “Allow RAS to select an adapter”):

Now let's go to the tab that appears Ports, right-click and Properties, select a connection L2TP and press Tune, we will display it in a new window Remote access connection (incoming only) And On-demand connection (incoming and outgoing) and set the maximum number of ports, the number of ports must match or exceed the expected number of clients. It is better to disable unused protocols by unchecking both checkboxes in their properties.

List of ports that we have left in the specified quantity.

This completes the server setup. All that remains is to allow users to connect to the server. Go to Server Manager Active Directory users – we find the user we want allow access press properties, go to the bookmark incoming calls

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 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 occupies 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 in-depth knowledge of 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. A more advanced one is a dedicated virtual server - VPS (VDS is the same thing). On a 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 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 should appear in front of us ( command line). 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 everything 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 the knowledge of a 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. Let's move on "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 the 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 separate files for them, 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 a 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 wrong, then you can reinstall the operating system on the 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” service 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.

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

Three letters

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

If you have not yet learned how to bypass Roskomnadzor blocking, the site publishes a short and clear instructions on 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. Much simplified, 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 useful functions VPN - bypass blocking.

Even easier? It’s like a “tunnel” that allows you to “get out” on the Internet to another geographical point. A device connected via VPN will be virtually located not in Russia, but in Germany, Sweden, the Czech Republic, Austria, the USA - anywhere. Accordingly, Roskomnadzor restrictions will not apply to it.

Is a VPN only needed to bypass blocks?

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 connection security. VPNs are also actively used by corporate and government agencies to unite different offices into one common network. In addition, experts advise connecting to any public Wi-Fi networks only with a VPN enabled.

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

How to install a VPN? It's complicated? Is it expensive?

It's not difficult, anyone can do it. VPN services provide various services (list below), you just need to select any of them, register, enter your card details and install on your devices required applications. When installing, the application will ask you to make automatic changes to your device settings - 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 on all the time.

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

Two screenshots of the VyprVPN application 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 lower the number in the left column, the faster the Internet will work)

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

Here are some good, proven services that we can 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 are also 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 only slightly. Typically, a VPN service will automatically connect through the fastest server. True, sometimes it is located on Russian territory, 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 connected to a fast server, you most likely won't even notice that you have a VPN connected, including when watching videos.

What problems can there be when using a VPN?

Sometimes, due to a VPN connection, some services may not work well. On mobile devices, it happens that problems arise with determining the geoposition - 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 you will not be subject to blocking of millions of IPs due to the fight against Telegram. By the way, Telegram will work great too.

And if something doesn’t work with VPN, you can always turn it off.

Isn't VPN banned? Is this 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 prohibited in Russia. However, as far as we know, this law has not yet been applied to VPNs.

In any case, no sanctions for ordinary users not available today.

I still don't know which service to choose. Which ones do you use?

The site's editorial staff use VyprVPN and NordVPN. We have been using it for many years and are happy with everything. NordVPN has a website in Russian.

Here I will try to talk about setting up a VPN on Android devices.
Many users have never heard of VPN, and when they saw this item in the phone settings, they simply shrugged their shoulders and moved on. If you know what a VPN is and how it works, then most likely this article will not tell you anything new. I wrote it for beginners who want to protect their security online, bypass censorship and regional bans, and maintain their anonymity.
So what is a VPN?
VPN- (English Virtual Private Network - virtual private network) is a generalized name for technologies that allow one or more network connections (logical network) to be provided over another network (for example, the Internet).
PPTP VPN- PPTP (English Point-to-point tunneling protocol) is a point-to-point tunnel protocol that allows a computer to establish a secure connection with a server by creating a special tunnel in a standard, unprotected network. PPTP wraps (encapsulates) PPP frames into IP packets for transmission over a global IP network such as the Internet. PPTP can also be used to establish a tunnel between two local networks. PPTP uses an additional TCP connection to maintain the tunnel. PPTP traffic can be encrypted using MPPE. Can be used for client authentication various mechanisms, the most secure of them are MSCHAP-v2 and EAP-TLS.
My goal in this article is not detailed story You can get information about VPN (what it is, how it works, where it came from) here: ru.wikipedia.org/wiki/VPN
Let's go straight to the phone settings, I did everything on mine Samsung Galaxy GT N-7100 Galaxy Note2, MIUI firmware, Android 4.1.1 settings on other devices are similar. First, we need to choose a provider who will provide us with VPN services, for myself I chose russianproxy.ru, I selected the “Upload” tariff that was suitable for myself, after payment to you in personal account and your personal settings (login, password, server name) will be sent to your e-mail; they roughly look like this:
VPN server address: pptp-l2tp-vpn-russia-1.atomintersoft.com
User: v1111-111111
Password: XXXXXXXXXXX
Access end date: 2013-01-26 00:00:00
Open the phone settings
->WIRELESS NETWORKS
->Additionally...
->VPN
->CONFIGURATION
->Add VPN network

Next, enter the appropriate data in the fields listed below:
“Network name” - enter any name
"Type" - select PPTP
“VPN server address” - the name of the server to connect to (check in the Client Account in the My Subscriptions section)
“Enable Encryption (MPPE)” - check the box
Confirm the creation of the connection by clicking the Save button in the lower right corner.
Click on the VPN connection you just created and enter the following information:
“Username” - login of your subscription
“Password” - the password for your subscription
“Save credentials” - check the box
Click Connect to establish a connection.
At successful connection A key icon will appear in the upper status bar, when you click on it you will have the following options: view connection statistics (time, traffic)
disable the subscription using the “Disconnect” button

I would also like to tell you about several programs for working with VPNs that I found in the market.
VpnRoot- play.google.com/store/apps/details?id=com.did.vpnroot shareware VPN client, to unlock all functions you need a donation via PayPal, unlike the standard VPN in Android it can reconnect after the connection is lost, has a widget with with which you can activate a VPN session in one click on the desktop, it does not yet have autostart, the author promised to add it in future versions.
DroidVPN- play.google.com/store/apps/details?id=com.aed.droidvpn requires registration on the program website to work, after creating a personal account they give 100MB of VPN traffic for a month, then you have to pay, a penny in general, something like 150 rubles for three months, I don’t understand the users who left negative comments on the program... There are several VPN servers to choose from different countries, for some reason I liked Italian more, you can make the servers change randomly each time, your IP will correspond to the country whose server you chose in the settings, which makes it easy to bypass regional restrictions. The program has autostart and can reconnect when the connection is lost.
Orbot: Tor for Android- play.google.com/store/apps/details?id=org.torproject.android Tor is a cross-platform open source software whose task is to protect against eavesdropping and ensure the confidentiality of personal and business data transmitted to global network. The product provides complete anonymity for clients when visiting websites, publishing materials, sending messages and working with applications that use the TCP protocol. Users of the Android platform have already been given the opportunity to use Tor proxy networks for anonymous surfing. Some time ago, a group of researchers from the University of Cambridge released a product called Shadow. The new Orbot application is the official version of the Tor client from the creators of the platform. Tor on Wikipedia

Instructions

Click on the Start menu and select Control Panel. Find the "Network and Internet" section. To organize a VPN connection, you need to launch the Network and Sharing Center snap-in. You can also click on the network icon in the tray and select a similar command. Proceed to create a new connection or network, noting that you need to connect to your desktop. Click the "Next" button. You will be prompted to use an existing connection. Check the box “No, create a new connection” and proceed to the next step of the settings.

Select "Use my Internet connection" to set up a VPN connection. Set aside the Internet settings prompt that appears before continuing. A window will appear in which you need to specify the VPN server address according to the agreement and come up with a name for the connection, which will be displayed in the Network and Sharing Center. Check the “Don’t connect now” checkbox, otherwise the computer will try to establish a connection immediately after setup. Check Use Smart Card if the remote VPN host authenticates the connection using a smart card. Click Next.

Enter your username, password and domain, according to which you gain access to the remote network. Click the “Create” button and wait until the VPN connection is configured. Now you need to establish an Internet connection. To do this, click on the network icon in the tray and start setting the properties of the created connection.

Open the Security tab. Set "VPN Type" to "Automatic" and "Data Encryption" to "Optional". Check "Allow the following protocols" and select the CHAP and MS-CHAP protocols. Go to the “Network” tab and leave a checkmark next to “Internet Protocol Version 4” only. Click the "Ok" button and connect the VPN connection.

Any VPN net provides for the presence of a specific server that will provide communication between network computers and other devices. At the same time, it provides some of them (or all) with access to an external network, for example, the Internet.

You will need

  • - network cable;
  • - network card.

Instructions

Most simple example A VPN network can serve to create a local network between, each of which will gain access to the Internet. Naturally, only one PC will have a direct connection to the provider’s server. Select this computer.

Install an additional network adapter into it, which will be connected to the second computer. Using a network cable of the required length, connect the network cards of two computers to each other. Connect the provider cable to another network adapter on the main PC.

Set up your Internet connection. This can be a LAN or DSL connection. In this case it doesn't matter at all. Once you've completed creating and configuring your new connection, go to its properties.

Open the "Access" menu in the window that appears. Allow all computers that are part of a specific local network to use this Internet connection. Specify net, formed by your two computers.