0

I'm trying to change sstp vpn's port by changing the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SstpSvc\Parameters\ConfigStore\ ListenerPort key of my registry but when I change it the regedit show me an error that says Cannot edit ListenerPort: Error writhing the values's new contents.

So how can I resolve the problem?

ahmadali shafiee
  • 138
  • 1
  • 2
  • 12

2 Answers2

1

change the permissions of configstore write for admins

kadde
  • 11
  • 1
  • 1
    Please add a bit of explanation of why it fails, and why the proposed solution works. – vonbrand Mar 14 '13 at 10:00
  • take look at the permissions on HKLM\SYSTEM\CurrentControlSet\services\SstpSvc\Parameters\ConfigStore\ ListenerPort there are no write permissions for Administrator - add write permissions , change the port an may be revoke permissions – kadde Mar 18 '13 at 09:01
1

You can change SSTP port after VPN server stopped. I tested.

Also, windows client needs special treatment: 1. add hosts rule pointing to localhost by remote server name 2. add port redirection to vpn server use

 netsh interface portproxy add