Having a strange problem with a FreeBSD gateway/firewall system I set up.
The gateway connects a small network to an ADSL line and has three static
external IP addresses. I am using natd to provide access to the Internet
for computers in the internal LAN.
One of the machines behind the firewall is a web server and I use a natd
line similar to the following to route incoming connections to that box:
redirect_address 192.168.1.100 xxx.xxx.xxx.1
In this case the real IP of the web server is 192.168.1.100 and it is
accessed from outside the LAN by the address xxx.xxx.xxx.1. This works.
The problem is that if any of the computers on the internal LAN try to
access the web server at xxx.xxx.xxx.1 it doesn't work. I can access the
web server fine from inside the LAN using the local address (192.168.1.100).
I suspect there is a simple solution to this problem. Can anyone explain
what it is?