Re: [squid-users] Routing By Hostname

From: Antony Stone <[email protected]>
Date: Sun, 21 Sep 2003 16:31:32 +0100

On Sunday 21 September 2003 4:26 pm, Cody Harris wrote:

> On Sunday 21 September 2003 12:19 pm, Antony Stone wrote:

> > Why not simply assign independent IP addresses to your three machines and
> > use DNS to route to the correct one?
>
> Because the ip for them is 192.168.0.*. It won't work.

Well, that's where your iptables DNAT rules come in... you translate from a
public IP address to a private IP address for each server so that people on
the outside can access your internal machines (I assume that is what you are
trying to do?).

So long as you are using protocols which do not mind being NATted, this works
fine. Routing is automatic.

(Please reply to the list, not directly to me)

Regards,

Antony.

-- 
It is also possible that putting the birds in a laboratory setting
inadvertently renders them relatively incompetent.
 - Daniel C Dennett
Received on Sun Sep 21 2003 - 09:31:39 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:19:59 MST