I have a situation that can be described as bellow:
CentOS A: 184.108.40.206(eth0 - WAN network) --- 220.127.116.11 (ham0 - Hamachi)
Win32 B: 18.104.22.168 (WAN network) ---- 22.214.171.124 (hamachi)
I use iptables to forward port 80 from A to B, so that people can access web server of 126.96.36.199 from 188.8.131.52
iptables -t nat -A PREROUTING --dst 184.108.40.206 -i eth0 -p tcp --dport 80 -j DNAT --to-destination 220.127.116.11:80 iptables -t nat -A POSTROUTING -p tcp --dst 18.104.22.168 --dport 80 -j SNAT --to-source 22.214.171.124
But it did not.
If I change the forward target to an ip that not in hamachi network, but in the WAN network, in this example: 126.96.36.199. It works perfectly.
Please tell me which part that I'm wrong?