I want to allow my internal users to access our web server (on internal network) using it's external IP address (not DNS name). External users already have access to our server through pix but internal users cannot access it. How can I do it?
Pix internal IP = 172.16.1.1
Internal net = 172.16.0.0/24
Pix External IP. 200.x.y.1
Web Server Internal IP: 172.16.1.10
Web Server External IP: 200.x.y.2
I want users to access http://200.x.y.2 from internal network.
I used to do it using IPTABLES as shown:
#Allow external users access to webserver
-A PREROUTING -d 200.x.y.2 -p tcp -m tcp --dport 80 -j DNAT --to-destination 172.16.1.0
#Allow internal users access to webserver
-A POSTROUTING -p tcp -m tcp --dport 80 -d 172.16.1.10 -s 172.16.0.0/16 -j SNAT --to 172.16.1.1
Thanks in advance.