Internal web server works from Internet, but not from internal network!
Hi!
Here's the network layout:
user -> router -> Internet
router is a Fedora 4 machine running iptables and apache web server.
DNS (which is located on a separate network) has mydomain.com pointing at the network's external IP. I have no problems accessing the website (or mail) from any computer outside of this network.
However, when I try to access website from inside using mydomain.com, I can't. It just hangs. However, I can access the website using 192.168.0.1 IP just fine (which's the internal IP of the router).
Somebody told me that the problem is that when a request goes from the user, it tries to access the webserver via an external IP, but the response goes to an internal IP, which creates this problem. I don't really understand this, and if someone explained it would be nice.
Also, I was told that i need to add "192.168.0.1 mydomain.com" to router's /etc/hosts and restart it. Will this work? I want to be sure before I try it on a clien'ts machine.
Any help is appreciated, thanks!