VPN (routing & remote access) on Windows VPS

Written by Pravin on October 10, 2008 – 5:01 am -

Configuring VPN (routing & remote access) on a windows VPS is a very simple task.

First we will have to enable the VPN module for the VPS using following command on the node.

vzctl set VEID –vpn on –save (Here VEID is the vps ID on the node)

Restart the VPS once the VPN module is enabled.

Now enable the “Routing and Remote Access” service on the VPS. This can be done from Go to Start >> RUN >> Type “services.msc” .

Also stop the Windows Firewall on the VPS.

Configure Routing and Remote Access:

On VPS  go to  Start >> Settings >> Control Panel >> Administrative Tools >>  “Routing and Remote Access”. Right click on the computer name & you will see the option “Configure and Enable remote and routing access”.

On the configuration wizard procced with the configuration, click Next >> select “Custom Configuration”, click Next >> select  VPN Access & NAT and Basic Firewall Option, click Next >> Now press Finish to end the configuration.

The above configuration has enabled PPTP & L2TP VPN access to your firewall with private routing capability.

Route Private Traffic to Public Interface:

As the VPS does not have second network interface, we will use the NAT (Network Address Translation) using the Microsoft Loopback adapter to route private traffic to public interface.

From the Routing and Remote Access panel >> Expand ComputerName (Local) >> Expand Ip Routing >> Right click on “NAT/Basic Firewall” & use the New interface to add network translation. First add the “Internal” Inferface which is used for private network access with default settings and on second attempt add your main adapter to the NAT list and select the options says “Public Interface connected to this inferface” and select the option says “Enable NAT on this interface”.

The routing & remote access on your VPS is configured, just restart the routing & remote access service & VPN is ready for you.


Tags: , ,
Posted in VPS hosting, Windows VPS | 1 Comment »
RSS

  • Subscribe Me

  • Tag Cloud

  • Archives