Windows Port Redirection

Share on:

Exposse a windows service on the VPN only through port redirection

The first command create the port redirection whilst the second one open the windows firewall

1netsh interface portproxy add v4tov4 listenaddress=10.10.100.11 listenport=8200 connectaddress=127.0.0.1 connectport=8200
2netsh advfirewall firewall add rule name="duplicati" dir=in action=allow protocol=TCP localport=8200

Close the service

1netsh advfirewall firewall del rule name="duplicati"