Web Servers not accessible due to Nat and external DNS
Posted on 2002-04-09
we have a linux machine and an NT webserver which is visible from the outside of the organization thru NAT, using a statememt like:
ip nat inside source static tcp 192.168.1.3 80 22.214.171.124 80 extendable.
browsing the webserver from outside the org. works fine. However, when we attempt to browse the website from machines from within the org. we get permission dialogs and authentification errors. This is because essentially, we are trying the browse the router from the inside interface. Ie, DNS queries for the domain and finds that 126.96.36.199 is the ip address the website is on. It then tries to connect to this address, but thru the internal router network card. This causes the login dialog to appear.
Is there a way to tell the router that is should redirect traffic which connects to the external network card via the internal network card on a specific port (i.e. only on port 80, 21 etc) back using the NAT settings?