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= listenport=8200 connectaddress= 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"