Search squid archive

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

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

 



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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux