Windows 10 Netsh firewall command to create forwarder rule.

  • Thread starter Thread starter VishakhaBansal
  • Start date Start date
V

VishakhaBansal

I have created forwarder rule in windows to route the traffic coming from any user to loopback address 127.0.0.1 and forward it to another IP address.

example:

netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=9000 connectaddress=127.0.0.8 connectport=9000 protocol=tcp


But I want to create firewall rule which will route traffic coming from one user to loopback address 127.0.0.1 and route it to the IP address already bounded to that user not to just random IP address. Means I want to insert userid somehwere in this command to get the traffic for that specific id.


expection command should look like below:

netsh interface (userid) portproxy add v4tov4 listenaddress=127.0.0.1 listenport=9000 connectaddress=ip connectport=9000 protocol=tcp

Continue reading...
 
Back
Top