A VPN creates a secure tunnel between your computer and the remote computer so that they appear to be on the same directly-connected network.
This is convenient for Windows file sharing and allows Windows services, such as Remote Desktop, to be secured to the same address range used by the VPN for added security.
To set up your server as a VPN:
- Log into your Windows server
 - Open Server Manager
 - Select Add Roles and Features
 - Verify that your administrator account has a strong password, network settings are configured, and that you have installed the latest security updates
 - Click Next
 - Ensure ‘Role-based or featured-based installation’ is ticked
 - Click Next
 - Ensure ‘Select a server from the server pool’ is ticked
 - Ensure that your server is highlighted in the Server Pool
 - Click Next
 - Scroll down through the Roles to Remote Access and check the box next to it
 - Click Next
 - Ensure that the features you want are going to be installed
 - Click Next
 - Read the information about Remote Access
 - Click Next
 - Ensure that ‘DirectAccess and VPN (RAS)’ is checked under Role Services
 - Click Next
 - Ensure that ‘Include management tools (if applicable)’ is checked
 - Click Add Features
 - Ensure that ‘Restart the destination server automatically if required’ is ticked
 - Click Yes on the pop-up window
 - Click Install
 - Wait until the installation completes
 - Click Close
 - Wait for your server to restart
 
Once your server restarts, you then need to enable and configure Remote Access on your server.
To enable Remote Access:
- Open your Server Manager
 - Select ‘Open the Getting Started Wizard’
 - Select Deploy VPN only
 - In Routing and Remote Access, right-click on your server and select ‘Configure and Enable Routing and Remote Access’
 - When the Routing and Remote Access Server Setup Wizard opens, click Next
 - Select Custom Configuration
 - Click Next
 - Check VPN access
 - Click Next
 - When the Setup Wizard is complete, click Finish
 - Click OK on the warning about the Firewall
 - Click Start Service
 - Remote Access will now be enabled on your server
 
To configure Remote Access:
- Right-click on your server in Routing and Remote Access
 - Select Properties
 - Select the IPv4 tab
 - Ensure that ‘Enable IPv4 Forwarding’ is checked
 - Select ‘Static address pool’
 - Click Add
 - Enter in a private IP address range (not the network range you are on), such as 192.168.0.0 to 192.168.255.255
 - Click OK
 - Right-click on your server in the Routing and Remote Access
 - Select All Tasks
 - Select Restart
 - Wait for the Routing and Remote Access to restart
 
Once you have Remote Access working, you will need to configure your firewall and set up a new user.
To set up the firewall:
- Open Windows Firewall with Advanced Security
 - Select Inbound Rules
 - Ensure that the rules for GRE-In and PPTP-IN are both enabled
 
Then set up your user:
- Open Computer Management
 - Select System Tools
 - Select Local Users and Groups
 - Select More Actions
 - Select New User
 - Enter in the user’s details, including name and password
 - Select Properties
 - Click on the Dial-In tab
 - Check Allow Access under Network Access Permission
 - Click OK
 - The users is now created
 
Now that your server is set up for VPN, you now need to set up your PC.
To create your connection to your server:
- Open Network and Sharing Center
 - Select ‘Set up a new connection or network’
 - Select ‘Connect to a workplace’
 - Select ‘Use my Internet connection (VPN)’
 - Enter in the IP address of the server and a name
 - Check ‘Don’t connect now; just set it up so I can connect later’
 - Click Next
 - Enter in the user name and password that you set up on your server
 - Click Create
 - The connection is now created
 
Now you need to change your adapter settings for the connection:
- In Network and Sharing Center, click ‘Change adapter settings’
 - Right-click on your new VPN connection and select ‘Properties’
 - Select the Security tab
 - Change Type of VPN to ‘Point to Point Tunneling Protocol (PPTP)’
 - Click OK
 - Select the Networking tab
 - Select Internet Protocol Version 4 (TCP/IPv4)
 - Click Properties
 - Click Advanced
 - Uncheck ‘Use default gateway on remote network’
 - Click OK until you are back at your Network Connections
 
Connect to your VPN connection:
- Right-click on your new VPN connection
 - Select Connect
 - Enter the User Name and the Password
 - Click Connect
 - You are now connected to your VPN
 
You now need to get the VPN IP address:
- Open your Connections
 - Select your VPN connection
 - Select Properties
 - Click on the Details tab
 - Write down the Server IPv4 address
 
Now connect via Remote Desktop
- Open Remote Desktop Connection
 - Enter in the IPv4 address you wrote down
 - Click Connect
 - On the Set Network Location, choose Work
 - Enter in the server’s Adminstrator user name and password
 - When the identity cannot be verified, click Yes
 
Now that you are in your server, you can secure the firewall rule for the VPN network range.
To secure the firewall rule:
- Open Windows Firewall on the server
 - Select Inbound Rules
 - Find the rule for ‘Remote Desktop – User Mode (TCP-IN)’
 - Select that rule and select Properties
 - Select Scope
 - Add the private network range used for your VPN connection
 
You will now be able to access Windows Shares and other connections.
When you no longer need to be connected, remember to disconnect on your computer.





