Re: [squid-users] Squid with DMz/Dnat

From: kdv <kdv@dont-contact.us>
Date: Fri, 17 Jun 2005 11:29:42 +0300

Noc Phibee wrote:

> kdv a écrit :
>
>> Noc Phibee wrote:
>>
>>> Hi
>>>
>>> i have a small problems with my config :
>>>
>>> i have on my Squidbox 3 Ethernet :
>>> Eth0 => Internet with a public address (213.41.42.131)
>>> Eth1 => My DMZ in 192.168.1.0/24
>>> Eth2 => My Lan in 192.168.2.0/24
>>>
>>> i use shorewall for said a DNAT :
>>> 213.41.42.132 => 192.168.1.10
>>> and on my squidbox, i have now eth0(213.41.42.131) and eth0:1
>>> (213.41.42.132)
>>>
>>> on 192.168.1.10, i have a webmail and a DNS entry webmail.phibee.fr
>>> for the ip 213.41.42.132 ..
>>> On Internet when i put http://webmail.phibee.fr, It's Ok that's work
>>> On the Lan with proxy, when i put http://192.168.1.10, it's Ok
>>> that's Work
>>> but
>>> On the lan with proxy, when i put http://webmail.phibee.fr that's
>>> don't work
>>> because i thinks that the local iptable don't forward to
>>> 192.168.1.10 ...
>>>
>>> Can i put into my squid.conf a instruction for said
>>> webmail.phibee.fr = 192.168.1.10
>>> and not 213.41.42.132 ?
>>>
>>> Thanks for your help
>>>
>> Put the line
>> 192.168.1.10 webmail.phibee.fr
>> to your "hosts" file on the machine running squid.
>
>
>
> No change ;=) i am not sure that my linuxbox use the hosts file in etc
> ;=)
>
Did you restart the squid service?
Also, look in host.conf file, the first line must be:
order hosts,bind
Received on Fri Jun 17 2005 - 02:29:49 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Jul 01 2005 - 12:00:02 MDT