Jesin's Blog

Welcome to the Portal of Technology

  • Facebook
  • GitHub
  • RSS
  • Twitter
  • Home
  • Categories
    • Domains
    • Linux
    • Networking
    • PHP
    • Virtualization
    • Web Design
    • Web Servers
    • Windows
  • WordPress Plugins
    • Custom Error Pages
    • HTTP Digest Authentication
    • Mailgun Email Validator
  • Toolbox
    • DNS Lookup Tool
    • htdigest Generator Tool Online
    • htpasswd Generator Tool Online
    • HTTP Headers Lookup Tool
    • MD5 Encryption Tool
    • Open Port Check Tool
    • SHA-1 Encryption Tool
    • URL Encoding/Decoding Tool
  • About Me
  • Contact Me
  • Sitemap
Home ›
Windows ›
How to setup a VPN Server in Windows Server 2008

How to setup a VPN Server in Windows Server 2008

November 20, 2011 Windows Jesin A 8 Comments

windows category thumbnail

This article will explain the procedure for setting up a VPN server in Windows Server 2008. The VPN protocol used will be PPTP (Point to Point Tunneling Protocol). The method outlined here uses an environment consisting of an active directory server, a DHCP server, few workstation PCs and a VPN server. Configuration of the VPN server alone is explained in the following steps

  1. Configure IP addresses on the VPN server
  2. Join the VPN server to the domain
  3. Install Network Policy and Access Server Role
  4. Configure Routing and Remote Access
  5. Allow users to login via VPN
  6. Setup a VPN connection on the remote client PC

The network topology used in this setup is shown below

win2008 vpn setup topology

Configure IP addresses on the VPN Server

The VPN server will have two interfaces, private and public with the following IP configuration

private
IP address – 10.0.0.1
Subnet Mask – 255.0.0.0
Preferred DNS – 10.0.0.2 (Assuming DNS runs on the Active Directory Server)

public
Obtain the public IP information from your ISP (Internet Service Provider)

Join the VPN server to the domain

Right Click computer -> Properties -> Change Settings -> Change -> Select Domain and enter your domain name you’ll be asked for credentials enter them also and reboot.

join vpn server to domain

Install Network Policy and Access Server Role

Login to the VPN server as the administrator, go to Start -> Administrative Tools -> Server Manager. Click Add Roles and Check “Network Policy and Access Server”

select network policy and access server role

In the role services section check “Routing and Remote Access”

select network policy and access server role services

Confirm your selections and install.

Configure Routing and Remote Access

After installation Go to Start -> Run and type rrasmgmt.msc. In the console that opens right click your server name and click “Configure and Enable Routing and Remote Access”

Configure and Enable Routing and Remote Access

In the Wizard that appears click Next and Select Custom Configuration

rras custom configuration

Select the Check Box VPN access

rras vpn access

Click Next -> Finish. In the message box that appears click “Start Service”. If you have a DHCP server configured in the network in the same subnet you can go ahead with the final step.

Networks which have a DHCP server in a different subnet, should have the DHCP relay agent configured. Expand IPv4 -> right click DHCP relay agent and go to properties

dhcp relay agent properties

In the window that appears enter the IP address of the DHCP server. The appropriate DHCP scope should be configured in the DHCP server.

If your network doesn’t have a DHCP server the VPN server itself can assign IP addresses to VPN clients. Right click your Server name -> properties -> IPv4 tab -> select “static address pool” -> click Add. Enter the start and end IP ranges.

RRAS static address pool

Allow users to login via VPN

On the Active Directory Server go to Start -> Administrative Tools -> Active Directory Users and Computers -> Right Click the properties of an user -> Dial-In tab and click “Allow access”

dialin permissiion

Setup a VPN connection on the remote client PC

On the VPN client PC go to start -> Run and type ncpa.cpl, open “New Connection Wizard”, in the wizard that appears click next and select “Connect to the network at my workplace”

vpn connection setup step1

In the next step select Virtual Private Network Connection.

vpn connection setup step2

Enter a company name which is used to name the connection and in the final step enter the IP address of the PUBLIC IP address of the VPN server. After the connection is created enter the username and password of a user in the active directory database and click connect.

vpn connection credentials

Related posts:

windows category thumbnailHow to setup roaming user profiles in Windows Server 2008 windows category thumbnailSetting up an authoritative DNS in Windows Server 2008 linux category thumbnailSetup Linux DNS Server for Windows Active Directory linux category thumbnailSetup a DHCP server on Linux windows category thumbnailInstalling ADSI edit in Windows Server 2003

Tags: vpn, windows server

Comments

  1. Norman Risner says

    September 10, 2013 at 9:27 pm

    Nice instructions for setting up VPN on Windows Server. Been sometime since I set this up.

    Reply
  2. Pankaj kumar says

    December 18, 2013 at 1:34 pm

    thanks for ..my help

    Reply
  3. niko says

    January 21, 2014 at 5:39 pm

    Hi, I have read both your articles (this and the Debian PPTP) and they are very helpful. I have to mix them somehow together. I am trying to build a VLAN inside a LAN with VPN Server
    vmware Windows 7 => MyDesktop => Debian => Virtual Windows Server/VPN Server. Go to the link for a diagramm http://www.administrator.de/images/content/82c2a7ece0292a749ad7a591ee3f44a7.jpg
    VMWare Windows Client and WMware Windows Server have to have the same Subnet like 172.16.16.0 … I did the
    I setup my VPN like your windows tutorial on my windows server. After that I added the ip tables from the debian tutorial, so that the requests be redirected to the virtual machine, but it does not work. Any ideas why? Is there a better way to make this setup, or it is ok that the VPN is installed on a virtuall server. Thank you for your help in advance.

    Reply
  4. Fabio Alexandre says

    August 5, 2015 at 9:54 pm

    Hi,

    I tried to accomplish this setup and it worked perfectly when I use windows connection, but when I use a hardware to hook it is not established.
    Checking the log of hardware, check that it is closed when the equipment asks for dns3 and this is rejected by the server.
    How could I set up dns3?

    34 Aug 6 00:20:15 PPP ERROR LCP down
    33 Aug 6 00:20:15 PPP INFO rcvd [LCP TermReq]
    32 Aug 6 00:20:15 PPP INFO rcvd PPTP-Set-Link-Info
    31 Aug 6 00:20:15 PPP INFO sent [IPCP Req addr=0.0.0.0 dns1=0.0.0.0]
    30 Aug 6 00:20:15 PPP INFO rcvd [IPCP Rej dns3=0.0.0.0]
    29 Aug 6 00:20:15 PPP INFO sent [IPCP Ack addr=192.168.1.150]
    28 Aug 6 00:20:15 PPP INFO rcvd [IPCP Req addr=192.168.1.150]
    27 Aug 6 00:20:15 PPP INFO sent [LCP ProtRej]
    26 Aug 6 00:20:15 PPP INFO rcvd [CCP ConfReq mppe +H -M +S -L -D +C]
    25 Aug 6 00:20:15 PPP INFO sent [IPCP Req addr=0.0.0.0 dns1=0.0.0.0 dns3=0.0.0.0]

    Best Regards

    Fabio

    Reply
  5. salman says

    February 11, 2018 at 3:02 pm

    Very useful blog..Can you post the client side procedures that has to be done to connect with this vpn server…

    Reply
  6. Saud Khan says

    November 7, 2019 at 10:21 am

    How can we setup vpn on server running only sql server, no ad or domain?

    Thanks

    Reply

Trackbacks

  1. Setting up a PPTP VPN Server on Debian/Ubuntu | Jesin's Blog says:
    May 16, 2013 at 5:14 pm

    […] this article for the benefit of all netizens. To create a similar type of VPN server in windows read this tutorial. You’ll find a lot of articles on the internet with the similar topic but in this article […]

    Reply
  2. Binding Webserver to VPN Connection | Zenus's Blog says:
    July 12, 2013 at 9:51 pm

    […] How to Install VPN on Windows Server 2008 […]

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Get a wealth of information delivered to your inbox. Subscribe and never miss a single article.

  • Tutorials and howtos
  • Code, scripts and commands
  • Online Tools

* No spam, unsubscribe anytime

Hire Me

  • SSL installation and hardening (A+ on Qualys SSL test)
  • Apache & Nginx configuration
  • Email deliverability improvement (10/10 on Mail Tester & MailGenius)
  • WordPress customization, optimization and migration
  • and much more…

    Tools

    • DNS Lookup Tool
    • htdigest Generator Tool Online
    • htpasswd Generator Tool Online
    • HTTP Headers Lookup Tool
    • MD5 Encryption Tool
    • Open Port Check Tool
    • SHA-1 Encryption Tool
    • URL Encoding/Decoding Tool

    Nav

    • Home
    • About Me
    • Contact Me
    • Privacy Policy
    • Sitemap
    Vultr SSD VPS

    Creative Commons License
    Jesin's Blog by Jesin A is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
    Based on a work at websistent.com.