I create a network namespaceIn this namespace, I open a nginxSo for now, I can visit web server by 172.17.0.2What I want to do is mapping this IP to 127.0.0.1Lets say if I visit 127.0.0.1, I want to connect to web server (172.17.0.2)I try to use iptables like this:iptables -t nat -A PREROUTING -d 127.0.0.1  -p tcp --dport 80 -j  DNAT --to-destination  172.17.0.2:80iptables -t nat -A PREROUTING -p tcp --dport 80 -j  DNAT --to-destination  172.17.0.2:80I still cannot visit 127.0.0.1 to connect nginx.So any ideas?
How to map IP by iptables ?
linux;iptables;ip;namespace