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](/news/penetration-basics-port-forwarding-and-proxying) covers cleanup commands for both the portproxy and firewall rules.