One Day Sec

How can I set up a forward port forwarding rule on Windows using netsh?

Use `netsh interface portproxy add v4tov4` with administrators privileges to add a forwarding rule, specifying the listen address and port, and the connect address and port. Then add a firewall inbound rule with `netsh advfirewall firewall add rule` to allow the traffic. The article covers cleanup commands for both the portproxy and firewall rules.
netshport forwardingWindowsfirewall rule

Browse all Q&A →