Re: public ip on LAN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 02 January 2004 6:30 pm, Craig Steadman wrote:

> The issue with redirecting web traffic using DNAT is that if
> any of the web pages have absolute links then they fail to
> work for clients connecting from the internet.

When you say "absolute links", do you mean URLs containing IP addresses 
instead of hostnames?

If you mean "absolute links" as distinct from "relative links" (using 
hostnames) then providing you have your DNS set up correctly, so that 
external queries receive public addresses and internal queries get internal 
addresses, there should be no problem.

> Does anyone know of an apache module that can be configured to
> parse and change the anchors in a html page on the fly, for this
> scenario ?

I suspect that mod_rewrite may be able to do what you want; however I 
recommend you also investigate a proxy server (Apache or Squid would do the 
job) in what is generally accelerator mode (ie the proxy is at the server end 
of the link instead of the client end), as this can listen on a public IP 
address, receive queries from the Internet, and then make local requests to 
the true servers on private IP addresses.

The same proxy could be used for internal and external clients if you wish.

Antony.

-- 
Abandon hope, all ye who enter here.
You'll feel much better about things once you do.

                                                     Please reply to the list;
                                                           please don't CC me.



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux