How to install VPN with SSTP for RRAS on Windows Server?
1. Install IIS and RRAS
In Server Manager:
- Go to Manage → Add Roles and Features.
- Check Remote Access and Web Server (IIS).
- In the Features pane, select Remote Server Administration Tools and all submodules.
- In Remote Access Role Services, select DirectAccess and VPN (RAS) and Routing.
2. Install WACS for LetsEncrypt
Download WACS to generate your SSL certificate:
3. Configure RRAS
- Run
rrasmgmt.msc. - Right click server → Configure and Enable Routing and Remote Access.
- Select Custom Configuration → VPN Access & Demand-dial connections.
- Start the service.
Properties Configuration
Right click the server → Properties:
- IPv4 Tab:
- Select Static address pool.
- Choose an appropriate IP range for VPN clients (e.g.
192.168.25.40-192.168.25.80).
4. SSTP & SNI Configuration
The Default Web Site host in IIS has an HTTPS binding. Important: The Require Server Name Indication (SNI) box must be UNTICKED! The host used for a SSTP VPN must NOT require SNI.
Remove Conflicting Certificates
To get rid of any existing certificates bindings that might conflict with the VPN host (vpn.company.com):
Run this in an Administrator PowerShell:
$hostname = "vpn.company.com"
Get-ChildItem -Path Cert:\LocalMachine\My | Where-Object {$_.Subject -match $hostname} | Remove-Item