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?