New answers tagged

1

Assuming you only want to redirect the connections originating from your machine (as opposed to forwarded by your machine), the following rules should suffice: iptables -t nat -A OUTPUT -d hostA -p tcp --dport 3306 -j DNAT --to hostB iptables -t nat -A INPUT -s hostB -p tcp --sport 3306 -j SNAT --to hostA The first one consists in changing the ...



Top 50 recent answers are included