Reply To: static NAT not working

Home Page Forums Network Management Networking static NAT not working Reply To: static NAT not working

#51182

mirza
Member

Hi ppalias, thanks for reply. let’s keep all my settings except nat and change my nat settings to

#for 1:1 natting

iptables -t nat -I PREROUTING 1 -d 87.101.232.36 -i ETH00 -j DNAT –to-destination 172.26.1.61
iptables -t nat -I PREROUTING 1 -d 87.101.232.37 -i ETH00 -j DNAT –to-destination 172.26.1.38

#for 1:1 natting

iptables -t nat -I POSTROUTING 1 -s 172.26.1.61 -o ETH00 -j SNAT –to-source 87.101.232.36
iptables -t nat -I POSTROUTING 1 -s 172.26.1.38 -o ETH00 -j SNAT –to-source 87.101.232.37

even though it’s not natting one to one even though i am able to ping outside but from outside i am not able to ssh, http to the real servers from outside.