Hello
voila, je voudrai transformer un de mes PC un proxy
j’ai donc installé squid, mais je lorsqu’on se connecte au proxy, on a l’erreur :
[code]ERROR
The requested URL could not be retrieved
While trying to retrieve the URL: http://www.tdd.fr/
The following error was encountered:
* Access Denied.
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.
Your cache administrator is webmaster.
Generated Tue, 09 May 2006 21:34:04 GMT by localhost.localdomain (squid/2.5.STABLE10) [/code]
voila le fichier squid.conf que j’ai trouvé sur ce site :
[code]
SERVEUR MANDATAIRE - SQUID
__________________________
Paramétrage du serveur :
http_port 8080
cache_dir ufs /var/spool/squid 1024 16 256
cache_log /var/log/squid/cache.log
error_directory /usr/share/squid/errors/French
emulate_httpd_log on
visible_hostname ADMINISTRATEUR-ISCG
Déclaration des Access List :
acl all src 0.0.0.0/0
acl eth0 src 192.168.6.0/24
acl localhost src 127.0.0.1/32
Configuration du traitement des requêtes client :
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
httpd_accel_single_host off
Restrictions journalière/horaire :
M:Monday T:Tuesday W:Wednesday H:Thursday F:Friday A:Saturday S:Sunday
acl sem time MTWHF 08:30-17h30
Restrictions :
acl mot urlpath_regex “/etc/squid/mot”
acl search url_regex http://fr.yahoo.com
http_access deny mot
http_access deny search
Autorisation d’accès :
http_access allow eth0
http_access allow localhost
http_access deny all [/code]
sachant que ce proxy se trouve derriere un routeur, l’ordi en question a l’ip locale 192.168.1.1 sur eth0