I have following three rules in my iptables firewall
-A PREROUTING -i eth0 -p tcp -m tcp --dport 12346 -j DNAT --to-destination 11.207.2.4:12350
-A PREROUTING -i eth0 -p tcp -m tcp --dport 12348 -j DNAT --to-destination 11.207.1.3:80
-A PREROUTING -i eth0 -p tcp -m tcp --dport 12347 -j DNAT --to-destination 11.207.1.2:80
1st and 3rd works as expected. 2nd (forwarding to 11.207.1.3:80) do not work.
Why it is so?
-A POSTROUTING -o eth1 -j SNAT --to-source 11.207.1.1
. But, then how it worked for 11.207.1.2:80 (line 3) without it?