netsh-interface-portproxy
Configure and display the status of various network components. tldr-pages
On Windows
Windows
Display the current port forwarding setup
netsh interface portproxy show allIdentifySet up IPv4 port forwarding (run in elevated console)
netsh interface portproxy add v4tov4 listenaddress=192.168.0.1 listenport=8080 connectaddress=10.0.0.1 connectport=80IdentifyTrips 1 Sigma rule: mediumNew Port Forwarding Rule Added Via Netsh.EXE by Florian Roth (Nextron Systems), omkar72, oscd.community, Swachchhanda Shrawan Poudel
Remove IPv4 port forwarding (run in elevated console)
netsh interface portproxy delete v4tov4 listenaddress=192.168.0.1 listenport=8080IdentifyTrips 1 Sigma rule: mediumNew Port Forwarding Rule Added Via Netsh.EXE by Florian Roth (Nextron Systems), omkar72, oscd.community, Swachchhanda Shrawan Poudel
Display help
netsh interface portproxyIdentify