This project has moved. For the latest updates, please go here.

How to setup and configure SSTP VPN tunnel on Windows Server 2008 to share internet traffic?

SSTP VPN is supported in Windows Vista, 7 and Windows server 2008. It uses HTTPS so it does not blocked by many firewalls.

Requirements

"Windows Server 2008 Standard" or "Enterprise" or "Data Center edition". Not "Web edition"!
Your server should have at-least one valid IP.
You should open TCP port 443 (HTTPS port) on your network firewall to able to connect to your server in the normal way, but if you don't have access to your network firewall you can use BarbaTunnel.

Installing certificate

SSTP VPN requires valid certificate, but if you don't have valid certificate you can create self-signed certificate, in this case your users should install your self-signed certificate on their machine. To create self-signed certificate sees How to create self-singed certificate.
  1. Open start menu then in search box type "mmc.exe" and run it.
  2. In MMC window go to "File" menu and select "Add/Remove Snap-In" item.
    • Microsoft Management Console - Add/Remove Snap-In
  3. In "Add or Remove Snap-ins" window select "Certificates" from "Available snap-ins" and press "Add".
    • Add or Remove Snap-ins
  4. In "Certificates snap-in" page select "Computer account" and click "Next".
    • Certificates snap-in
  5. In "Select Computer" page select "Local computer" and click "Finish".
    • Certificates snap-in - Select Computer
  6. In "Add or Remove Snap-ins" window make sure that "Certificates (Local Computer)" is added to "selected snap-ins" and press "OK".
    • Add or Remove Snap-ins
  7. In MMC window expand "Certificates (Local Computer)" node and select "Personal" node. In "Personal" item context menu select "All Tasks" and choose "Import".
    • MMC - Import Certificate for Personal store
  8. In "Certificate Import Wizard" step to "File to Import" page and select "Browse".
    • Certificate Import Wizard - File Import
  9. In "Open" file window select "Personal Information Exchange" file type and select your certificate PFX file and press "Open". Make sure you select your PFX file not CER file.
    • Certificate Import Wizard - PFX Import
  10. Step to "Certificate Store" page and ensure "Personal Store" is selected then press "Next".
    • Certificate Import Wizard - Certificate Store
  11. Step to the final page and check your settings then press "Finish" button.
    • Certificate Import Wizard - Finish

Configure SSTP VPN for Windows Server 2008 R2

  1. Do all steps in How to setup and configure PPTP VPN tunnel on Windows 2008 to share internet traffic?
  2. From start menu find and open "Routing and Remote Access". It is usually under "Administrative Tools" menu.
  3. Select your Server Name and open its context menu by pressing right click on the mouse then select "Properties".
    • Launching Routing and Remote Access Properties of your server
  4. Go to "Security" page and in SSL certificate binding is selected your certificate then press "OK".
    • RRAS Properties - Security
  5. Restart “Routing as Remote Access services” by going to context menu of your Server Name then open "All Tasks" sub-menu and select "Restart".
    • Restarting Routing and Remote Access Properties of your server

Configure SSTP VPN for Windows Server 2008

If your Windows Server 2008 is not R2 version you should run following command to bind your certificate to SSTP VPN Server.
  1. Do all steps in How to setup and configure PPTP VPN tunnel on Windows 2008 to share internet traffic?
  2. Run the following commands with administrator privilege in command prompt to delete the old bound certificate.
    • netsh http delete sslcert ipport=0.0.0.0:443
    • netsh http delete sslcert ipport=:::443
    • reg delete HKLM\SYSTEM\CurrentControlSet\Services\SstpSvc\Parameters /v SHA256CertificateHash /f
  3. Restart “Routing as Remote Access services” by going to context menu of your Server Name then open "All Tasks" sub-menu and select "Restart".
    • Restarting Routing and Remote Access Properties of your server

More Info: http://support.microsoft.com/kb/947027


Your server is now ready to accept VPN-SSTP connection
  • Make sure your certificate is valid or installed on your client computer.
  • Make sure your user connects to your server via domain name not IP its address.

Last edited Jun 8, 2013 at 8:05 AM by BarbaCoder, version 10

Comments

Kheni Jun 20, 2013 at 3:18 AM 
i did all Steps but i got error Certificate for Client ... " Root certificate which is not trusted by the Trust Provider "