{"id":1681,"date":"2020-04-22T17:25:54","date_gmt":"2020-04-22T23:25:54","guid":{"rendered":"http:\/\/www.RiptideHosting.com\/blog\/?p=1681"},"modified":"2020-04-25T09:11:33","modified_gmt":"2020-04-25T15:11:33","slug":"how-to-install-vpn-server-on-windows-server-2019","status":"publish","type":"post","link":"https:\/\/www.RiptideHosting.com\/blog\/how-to-install-vpn-server-on-windows-server-2019\/","title":{"rendered":"How to Install VPN server on Windows Server 2019"},"content":{"rendered":"\n<p>Windows Server 2019 has a built-in VPN server role that can be added to the server OS at no charge.  The below method will setup PPTP VPN using Windows Authentication so it is password based and strong\/complex passwords are still very important.\u00a0 There are other protocols such as L2TP\/IPSec, certificate authentication, etc. which can result in a stronger security setup depending on your needs and environment. Toward the end of this document we will show you how to enable L2TP with preshared key and disable PPTP if you want to do that.  This post will detail how to setup the VPN role on a Windows server, how to setup the VPN connection client on your local Windows PC, how to disable RDP and other protocols from using the public profile in the Windows firewall, and finally how to extend the VPN setup to LT2P. There is no additional cost for installing the VPN\/RRAS role on Windows Server.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong><span style=\"text-decoration: underline;\">STEPS TO INSTALL VPN SERVER ROLE ON WINDOWS SERVER 2019<\/span><\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>Log on to Windows Server 2019 using the Administrator account or an account with administrative rights.<\/li><li>Open Server Manager, Dashboard, \u201cAdd Roles and Features\u201d wizard, next, then select \u201crole-based or feature-based installation\u201d, next, select your server, next, then on select server roles screen select \u201cRemote Access\u201d, on select features screen can use defaults and press next.&nbsp; Under Remote Access Role Services select only \u201cDirectAccess and VPN (RAS)\u201d (select to add the features that are automatically selected) and leave the other options of Routing and Web Application Proxy unchecked, next, leave defaults under the Web Server Role Services, next, Click Install (takes a few minutes to install but usually doesn\u2019t require a reboot).  <img decoding=\"async\" class=\"wp-image-1721\" style=\"width: 150px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Installing-Remote-Access-VPN-1-3.png\" alt=\"\"><img decoding=\"async\" class=\"wp-image-1723\" style=\"width: 150px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Installing-Remote-Access-VPN-1-4.png\" alt=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"523\" class=\"wp-image-1726\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Installing-Remote-Access-VPN-1.png\" alt=\"Installing Remote Access VPN-1\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Installing-Remote-Access-VPN-1.png 924w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Installing-Remote-Access-VPN-1-300x224.png 300w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Installing-Remote-Access-VPN-1-768x574.png 768w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Installing-Remote-Access-VPN-1-624x467.png 624w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"518\" class=\"wp-image-1727\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Installing-Remote-Access-VPN-2.png\" alt=\"Installing Remote Access VPN-2\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Installing-Remote-Access-VPN-2.png 919w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Installing-Remote-Access-VPN-2-300x222.png 300w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Installing-Remote-Access-VPN-2-768x568.png 768w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Installing-Remote-Access-VPN-2-624x462.png 624w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/li><li>At the top bar of Server Manager, you will see a yellow triangle can click on it to select \u201cOpen the Getting Started Wizard\u201d or click on \u201cRemote Access\u201d in the left window and click on more in the right windows to get the \u201cOpen the Getting Started Wizard\u201d.<img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"309\" class=\"wp-image-1728\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Open-the-Getting-Started-Wizard.png\" alt=\"Open the Getting Started Wizard\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Open-the-Getting-Started-Wizard.png 1550w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Open-the-Getting-Started-Wizard-300x132.png 300w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Open-the-Getting-Started-Wizard-1024x452.png 1024w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Open-the-Getting-Started-Wizard-768x339.png 768w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Open-the-Getting-Started-Wizard-1536x678.png 1536w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Open-the-Getting-Started-Wizard-624x275.png 624w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/li><li>Select \u201cDeploy VPN only\u201d (may take up to 1 minute to open) (note: If you deploy DirectAccess, this option requires the server to be connected to a domain \u2013 not workgroup mode)  <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"502\" class=\"wp-image-1729\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Open-the-Getting-Started-Wizard-Deploy-VPN-only-selection.png\" alt=\"Open the Getting Started Wizard-Deploy VPN only selection\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Open-the-Getting-Started-Wizard-Deploy-VPN-only-selection.png 767w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Open-the-Getting-Started-Wizard-Deploy-VPN-only-selection-300x215.png 300w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Open-the-Getting-Started-Wizard-Deploy-VPN-only-selection-624x447.png 624w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/li><li>Right click on Server name and select \u201cconfigure and enable routing and remote access\u201d  <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"477\" class=\"wp-image-1730\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-1.png\" alt=\"Configure RRAS-1\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-1.png 672w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-1-300x204.png 300w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-1-624x425.png 624w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"567\" class=\"wp-image-1731\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-2.png\" alt=\"Configure RRAS-2\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-2.png 556w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-2-300x243.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/li><li>Select \u201c<strong>Custom<\/strong> configuration\u201d <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"555\" class=\"wp-image-1732\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-3.png\" alt=\"Configure RRAS-3\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-3.png 555w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-3-300x238.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/li><li>Select \u201cVPN access\u201d only, then Finish, Start Service.&nbsp; Windows Firewall should automatically open the necessary ports (or you might see message below telling you to manually open the firewall rules). And press OK by message reminding you to open\/enable firewall rules.  <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"554\" class=\"wp-image-1733\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-4.png\" alt=\"Configure RRAS-4\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-4.png 558w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-4-300x238.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"348\" class=\"wp-image-1734\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-5.png\" alt=\"Configure RRAS-5\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-5.png 445w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-5-300x149.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"563\" class=\"wp-image-1735\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-6.png\" alt=\"Configure RRAS-6\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-6.png 551w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-6-300x241.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/li><li>Go back to Routing and Remote Access by going to Server Manager, Tools (dropdown near upper right corner of server manager), select \u201cRouting and Remote Access\u201d.&nbsp; Then right click on the server name and select properties.&nbsp; Then go to IPv4 tab to add static IP address pool in IPv4 tab \u2013 see screenshots below: <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"487\" class=\"wp-image-1736\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-7.png\" alt=\"Configure RRAS-7\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-7.png 699w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-7-300x209.png 300w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Configure-RRAS-7-624x434.png 624w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/li><li>Next, open \u201cNetwork and Sharing Center\u201d and click on \u201cchange adaptor settings\u201d.&nbsp; Right click on the ethernet adaptor, highlight the \u201cInternet Protocol Version 4 TCP\/IPv4\u201d row, click on properties, advanced and add a secondary IP Address which is private IP in the same subnet as pool above \u2013 in this example, used 192.168.0.20 (this will be the IP address you can use to RDP to the server after the VPN connection is made). <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"406\" class=\"wp-image-1737\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Ethernet-adaptor-properties.png\" alt=\"Ethernet adaptor properties\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Ethernet-adaptor-properties.png 677w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Ethernet-adaptor-properties-300x174.png 300w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Ethernet-adaptor-properties-624x362.png 624w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"504\" class=\"wp-image-1738\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Ethernet-adaptor-properties-2.png\" alt=\"Ethernet adaptor properties-2\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Ethernet-adaptor-properties-2.png 447w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Ethernet-adaptor-properties-2-300x216.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/li><li>Next, adjust settings for <strong>each<\/strong> user you want to be able to VPN to the server by going to Computer Management, Local Users and Groups, Users, and right click on the individual User and enter Properties.&nbsp; Go to \u201cDial-In\u201d tab and change \u201cNetwork Access Permission\u201d section to \u201cAllow Access\u201d (instead of \u201ccontrol access through NPS network policy\u201d.&nbsp; You need to do this for each user you want to allow VPN access to the server.<img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"625\" class=\"wp-image-1739\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Change-User-Properties-Dial-In-to-Allow-Access.png\" alt=\"Change User Properties Dial-In to Allow Access\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Change-User-Properties-Dial-In-to-Allow-Access.png 779w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Change-User-Properties-Dial-In-to-Allow-Access-300x268.png 300w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Change-User-Properties-Dial-In-to-Allow-Access-768x686.png 768w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Change-User-Properties-Dial-In-to-Allow-Access-624x558.png 624w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/li><li>Open Windows Firewall rules for PPTP (PPTP requires both PPTP-In and GRE-In) and other VPN protocols if you might use them (L2TP or SSTP): <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"259\" class=\"wp-image-1740\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Windows-Firewall-Inbound-Rule-PPTP-GRE-L2TP-SSTP.png\" alt=\"Windows Firewall Inbound Rule PPTP GRE L2TP SSTP\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Windows-Firewall-Inbound-Rule-PPTP-GRE-L2TP-SSTP.png 1088w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Windows-Firewall-Inbound-Rule-PPTP-GRE-L2TP-SSTP-300x111.png 300w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Windows-Firewall-Inbound-Rule-PPTP-GRE-L2TP-SSTP-1024x378.png 1024w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Windows-Firewall-Inbound-Rule-PPTP-GRE-L2TP-SSTP-768x284.png 768w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Windows-Firewall-Inbound-Rule-PPTP-GRE-L2TP-SSTP-624x231.png 624w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/li><li>Usually it is a good idea to reboot server at this point even if it doesn\u2019t ask for a reboot.<\/li><\/ol>\n\n\n\n<p><\/p>\n\n\n\n<p><strong><u>SETUP VPN CONNECTION ON LOCAL PC (to connect loca PC to offsite server via VPN)<\/u><\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>On your local PC, Go to Control Panel, Network and Internet, Network and Sharing Center, and \u201cSetup a new connection or network\u201d and then \u201cConnect to a workplace \/ setup a VPN\u201d or \u201cAdd a VPN connection\u201d.&nbsp; Select \u201cUse My Internet Connection\u201d<img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"545\" class=\"wp-image-1741\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Setup-VPN-connection-on-Local-PC.png\" alt=\"Setup VPN connection on Local PC\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Setup-VPN-connection-on-Local-PC.png 660w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Setup-VPN-connection-on-Local-PC-300x234.png 300w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Setup-VPN-connection-on-Local-PC-624x486.png 624w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/li><li>Enter IP address of server you will connect to \u2013 this is a public IP address (not private IP address you setup above 192.168.x.x)<\/li><li>Enter description name for connection, then create.<\/li><li>Then go to your VPN connection by clicking start icon and typing VPN, or going to notifications and clicking VPN<\/li><li>Click on the VPN Connection you just setup and press connect.&nbsp; Enter Username and Password on next screen and click \u201cConnect\u201d<\/li><li>You can adjust setting (security settings and other) by going back to the Connection and entering properties (go to change adaptor settings, find connection, right click for properties where you can change settings to match VPN settings on the server if needed.).&nbsp; Also you can change VPN settings on the server.<\/li><\/ol>\n\n\n\n<p><strong>VERIFY THIS AND <span style=\"text-decoration: underline;\">UNCHECK<\/span> THE BOX BY \u201cUSE DEFAULT GATEWAY ON REMOTE NETWORK\u201d OTHERWISE ALL YOUR TRAFFIC INCLUDING WEB BROWSING WILL GO THROUGH THE REMOTE SERVER WHICH WILL LESSEN YOUR PERFORMANCE.<\/strong>   NOTE:&nbsp;&nbsp; If you can no longer access the internet on your local machine once the VPN connects, you can change this by going to the networking tab in Properties of the VPN Connection, highlight the TCP\/IPv4 row, click Properties, click Advanced, and uncheck \u201cuse default gateway on remote network\u201d.&nbsp; (you may have to disconnect and reconnect before this change will apply)<img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"732\" class=\"wp-image-1742\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Local-PC-VPN-connection-uncheck-use-default-gateway.png\" alt=\"Local PC VPN connection - uncheck use default gateway\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Local-PC-VPN-connection-uncheck-use-default-gateway.png 614w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Local-PC-VPN-connection-uncheck-use-default-gateway-287x300.png 287w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong><u>ADJUSTING FIREWALL RULES TO TURN OFF RDP ACCESS (PORT 3389) ON PUBLIC PROFILE<\/u><\/strong><\/p>\n\n\n\n<p>Note: there are many adjustments you can make to the Windows Firewall and this is just one example\/method.&nbsp; You should properly test any changes made.<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>Make sure you are logged in via RDP via VPN to the private IP (192.168.0.20 in this example) first before changing these rules below.<\/li><li>First make sure the RAS interface on the server is set to <strong><u>private<\/u><\/strong> firewall profile in \u201cnetwork and sharing center\u201d on the server.&nbsp; If it isn\u2019t (and most likely it is set to public so you will have to change it), change it as follows:&nbsp; gpedit.msc -&gt; Computer Configuration -&gt; Windows Settings -&gt; Security Settings -&gt; Network List Manager Policies and assign &#8220;RAS (Dial In) Interface&#8221; to a Private Network Profile.  (alternative method&#8211; start, secpol, network list manager policies, right click on RAS Interface, network location tab, change it to private)  <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"359\" class=\"wp-image-1743\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/RAS-interface-must-be-changed-to-Private-Profile.png\" alt=\"RAS interface must be changed to Private Profile\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/RAS-interface-must-be-changed-to-Private-Profile.png 982w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/RAS-interface-must-be-changed-to-Private-Profile-300x154.png 300w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/RAS-interface-must-be-changed-to-Private-Profile-768x394.png 768w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/RAS-interface-must-be-changed-to-Private-Profile-624x320.png 624w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"454\" class=\"wp-image-1744\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/RAS-interface-must-be-changed-to-Private-Profile-2.png\" alt=\"RAS interface must be changed to Private Profile-2\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/RAS-interface-must-be-changed-to-Private-Profile-2.png 849w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/RAS-interface-must-be-changed-to-Private-Profile-2-300x195.png 300w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/RAS-interface-must-be-changed-to-Private-Profile-2-768x498.png 768w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/RAS-interface-must-be-changed-to-Private-Profile-2-624x405.png 624w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"357\" class=\"wp-image-1745\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/RAS-interface-must-be-changed-to-Private-Profile-3.png\" alt=\"RAS interface must be changed to Private Profile-3\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/RAS-interface-must-be-changed-to-Private-Profile-3.png 924w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/RAS-interface-must-be-changed-to-Private-Profile-3-300x153.png 300w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/RAS-interface-must-be-changed-to-Private-Profile-3-768x391.png 768w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/RAS-interface-must-be-changed-to-Private-Profile-3-624x318.png 624w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/li><\/ol>\n\n\n\n<ul class=\"wp-block-list\"><li>Next, Open Windows Firewall with Advanced Security and modify 4 x Inbound Rules,<ul><li>\u201cRemote Desktop Services \u2013 User Mode (TCP-In)\u201d<\/li><\/ul><ul><li>\u201cRemote Desktop Services \u2013 User Mode (UDP-In)\u201d<\/li><\/ul><ul><li>\u201cRemote Desktop \u2013 User Mode (TCP-In)\u201d<\/li><\/ul><ul><li>\u201cRemote Desktop \u2013 User Mode (UDP-In)\u201d<\/li><\/ul><\/li><\/ul>\n\n\n\n<p>and turn it off for Public Profile.&nbsp; You could\/should also modify other rules affecting the public profile to restrict access to private profile only.  <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"886\" class=\"wp-image-1746\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Adjust-inbound-firewall-rules-to-exclude-public-profile.png\" alt=\"Adjust inbound firewall rules to exclude public profile\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Adjust-inbound-firewall-rules-to-exclude-public-profile.png 481w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Adjust-inbound-firewall-rules-to-exclude-public-profile-237x300.png 237w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Now it is time to connect and test your changes.<\/li><li>Connect to the server via VPN first, then you can RDP to the server using the private IP (192.168.0.20 in example above) when VPN is active.&nbsp; You shouldn\u2019t be able to RDP to the public IP address.&nbsp; You should test all scenarios after deployment.<\/li><\/ul>\n\n\n\n<p>Congratulations, Now your PPTP VPN should be setup and working!<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong><u>OPTIONAL STEPS TO SETUP\/CONFIGURE L2TP:<\/u><\/strong><\/p>\n\n\n\n<p>The steps above will create a \u201cpoint-to-point tunneling protocol\u201d (PPTP) VPN connection and will open the Windows Server firewall for PPTP, L2TP and SSTP (or you manually enabled these rules) although L2TP &amp; SSTP require additional configuration to work.&nbsp;&nbsp; You can increase security by implementing L2TP or SSTP.&nbsp; One example is L2TP with \u201cpre-shared key\u201d where you enter a pre-shared key in RRAS properties on the security tab (on server) and then also enter the pre-shared key on the client PC VPN connection.&nbsp; When you connect, the windows VPN client on the PC will show if connected as PPTP or L2TP.&nbsp; In security options on the PC VPN client, you can select which protocol to use if more than PPTP has been setup on the server.&nbsp; If you are using L2TP instead of PPTP, you can then turn off PPTP on the Windows Server and also disable the PPTP firewall rule (see below).<\/p>\n\n\n\n<p><strong>How to enable L2TP\/IPsec VPN and disable PPTP protocol<\/strong><\/p>\n\n\n\n<p>Configure L2TP with preshared key:<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>First may sure the Windows Firewall inbound rules on the server allow L2TP (if you had only enabled the inbound firewall rules for PPTP and GRE earlier, you should also enable L2TP now).&nbsp; Open RAAS Management Console, right click on server name, and go to properties.&nbsp; Go to security tab and enable the checkbox by \u201callow custom IPsec policy for L2TP\/IKEv2 connection\u201d and create\/enter a complex password in the \u201cpreshared key\u201d field.<img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"925\" class=\"wp-image-1747\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/L2TP-preshared-key-on-server-settings.png\" alt=\"L2TP preshared key on server settings\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/L2TP-preshared-key-on-server-settings.png 463w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/L2TP-preshared-key-on-server-settings-227x300.png 227w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/li><li>The preshared key is something that is the same for all users<\/li><li>Now disconnect your current PPTP session and reconnect using L2TP\/preshared key settings in your local connection client.&nbsp; Go to you local VPN network adaptor settings and adjust accordingly.<img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"429\" class=\"wp-image-1748\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/L2TP-preshared-key-on-local-PC-VPN-connection-settings.png\" alt=\"L2TP preshared key on local PC VPN connection settings\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/L2TP-preshared-key-on-local-PC-VPN-connection-settings.png 892w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/L2TP-preshared-key-on-local-PC-VPN-connection-settings-300x184.png 300w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/L2TP-preshared-key-on-local-PC-VPN-connection-settings-768x471.png 768w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/L2TP-preshared-key-on-local-PC-VPN-connection-settings-624x383.png 624w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/li><li>Now login to server and disable PPTP by clicking on ports, right click to properties, highlight the PPTP row and uncheck the top two boxes to disable PPTP. <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"365\" class=\"wp-image-1749\" style=\"width: 700px;\" src=\"http:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Disable-PPTP-ports.png\" alt=\"Disable PPTP ports\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Disable-PPTP-ports.png 989w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Disable-PPTP-ports-300x156.png 300w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Disable-PPTP-ports-768x400.png 768w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2020\/04\/Disable-PPTP-ports-624x325.png 624w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/li><li>Last, disable Windows firewall rules for PPTP and GRE if only using L2TP.  <\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Windows Server 2019 has a built-in VPN server role that can be added to the server OS at no charge. The below method will setup PPTP VPN using Windows Authentication so it is password based and strong\/complex passwords are still very important.\u00a0 There are other protocols such as L2TP\/IPSec, certificate authentication, etc. which can result [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,7,1,15,99,100],"tags":[103,102],"class_list":["post-1681","post","type-post","status-publish","format-standard","hentry","category-all-posts","category-remote-desktop-hosting","category-uncategorized","category-windows-server-2016","category-windows-server-2019","category-windows-vpn","tag-windows-server-ras","tag-windows-server-rras"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/posts\/1681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/comments?post=1681"}],"version-history":[{"count":13,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/posts\/1681\/revisions"}],"predecessor-version":[{"id":2031,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/posts\/1681\/revisions\/2031"}],"wp:attachment":[{"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/media?parent=1681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/categories?post=1681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/tags?post=1681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}