I'm looking for a way to get iptables functionality in windows 10. I enabled IP routing and I need to forward tcp data to another host (port 8080) and then forward his response while masquerading IP. In linux I was able to do this using the following (Where $1 = < internal IP >, $2 = 80, $3 = 8080, $4 = tcp)
iptables -t nat -A PREROUTING -p $4 --match multiport --dports $2 -j DNAT --to-destination $1:$3
iptables -A FORWARD -p $4 --match multiport --dports $2 -d $1 -j ACCEPT
iptables -t nat -A POSTROUTING -j MASQUERADE
Is there a way to achieve similar functionality in Windows 10?
netsh interface portproxy add v4tov4 listenport=80 connectaddress=127.0.0.1 connectport=8080
I'll try to translate your iptables to netsh if I have time. replace the 127.0.0.1 with the address of your choice