SQUID + VHOSTS : Problème d'accès...

SQUID + VHOSTS : Problème d'accès... - réseaux et sécurité - Linux et OS Alternatifs

Marsh Posté le 01-08-2007 à 15:16:19    

Bonjour,  
 
 
Je vous explique mon problème :  
 
J'ai un serveur APACHE 2 ayant quelques vhosts et avant d'installer un serveur DNS j'avais modifier mon fichier /etc/hosts en indiquant une ligne du type :
 
127.0.0.1 cacti
 
Pour pouvoir accéder a Cacti en ne tappant que http://cacti.
 
Bref tout cela marche bien seulement lorsque je configurer mon navigateur pour utiliser mon proxy SQUID, tout marche bien sauf les requetes interne du type : http://cacti.
 
L'erreur :  
---------------------------------------------------------------
The requested URL could not be retrieved
While trying to retrieve the URL : http://cacti
The following error was encountered :  
      Unable to determine IP address from host name for cacti
The dnsserver returned :
      Name Error : The domain name does not exist.
This means that :
      The cache was not able to resolve the hostname presented in the URL
----------------------------------------------------------------

 
D'ou peut bien venir ce probleme ?  
 
Voici mes ACL :
 
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
acl SIYA src 192.168.0.0/255.255.255.0
 
 
Ainsi que mes autorisation :
 
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow SIYA
http_access deny all
 
Merci par avance pour votre aide.

Reply

Marsh Posté le 01-08-2007 à 15:16:19   

Reply

Marsh Posté le 01-08-2007 à 16:02:39    

problème de DNS, rien à voir avec squid.

Reply

Marsh Posté le 01-08-2007 à 16:08:29    

Ce que je pensais aussi, sauf que dans mon cas, j'ai indiqué dans mon fichier hosts que cacti se resolvait sur 127.0.0.1
 
Ca marche sans squid, mais des que je start squid, ca marche plus...

Reply

Marsh Posté le 02-08-2007 à 12:20:41    

et ton navigateur il est sur ton serveur ?

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed