View previous topic :: View next topic |
Author |
Message |
lermit Tux's lil' helper
Joined: 14 Oct 2005 Posts: 141
|
Posted: Tue Nov 07, 2006 7:34 pm Post subject: [squid] problème de configuration du contrôle d'accès |
|
|
boujous à tous,
je suis occupé à monter un petit server. je intallai une serveur proxy (squid) mais j'ai probléme d'envoi des pages web.
voici mon fichier /etc/squid/squid.conf
Code: |
http_port 192.168.9.254:3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \? \.cgi \.pl \.php3 \.asp
no_cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_mem 20 MB
maximum_object_size 4096 KB
cache_dir ufs /var/cache/squid 500 16 256
cache_log /var/log/squid/cache.log
pid_filename /var/run/squid.pid
debug_options ALL,3
ftp_user root@truc.com
refresh_pattern -i \.gif$ 300 80% 43200
refresh_pattern -i \.jpg$ 300 80% 43200
refresh_pattern -i \.jpeg$ 300 80% 43200
refresh_pattern -i \.microsoft\.com 1440 40% 20160
refresh_pattern -i \.doubleclick\.net 1440 40% 20160
refresh_pattern ^http:// 30 40% 20160
refresh_pattern ^ftp:// 30 50% 20160
refresh_pattern ^gopher:// 30 40% 20160
refresh_pattern . 30 40% 20160
shutdown_lifetime 10 seconds
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 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
acl client src 192.169.254.0/255.255.255.0
acl client2 src 192.168.99.0/255.255.255.0
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 client
http_access allow Client2
http_access deny all
http_reply_access allow all
icp_access allow all
cache_mgr root@truc.com
visible_hostname servertruc.truc
logfile_rotate 4
coredump_dir /var/cache/squid
|
est quand j'essai sur le server d'accés a internet ia le proxy
Code: |
links -http-proxy 192.168.9.254:3128 http://www.google.be
|
sa me donne sa
Code: |
ERROR
The requested URL could not be retrieved
While trying to retrieve the URL: http://www.google.be/
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 root@truc.com.
Generated Wed, 08 Nov 2006 03:29:35 GMT by serverytruc.truc (squid/2.6.STABLE3)
|
quelqu'un pourrait me dire d'ou viend mon probleme??
merci d'avence.
lermit |
|
Back to top |
|
|
lermit Tux's lil' helper
Joined: 14 Oct 2005 Posts: 141
|
Posted: Wed Nov 08, 2006 8:56 am Post subject: |
|
|
personne serai me dire de ou peux provenir mon probleme avec squid?? |
|
Back to top |
|
|
animemint n00b
Joined: 27 Feb 2006 Posts: 16
|
Posted: Wed Nov 08, 2006 10:06 am Post subject: Re: [squid] problème de configuration du contrôle d'accès |
|
|
lermit wrote: | ...
acl client src 192.169.254.0/255.255.255.0
acl client2 src 192.168.99.0/255.255.255.0
http_access allow localhost
http_access allow client
http_access allow Client2
... |
Je suppose que t'as fait un copier/coller et que ce n'est pas une erreur de frappe.
Dans la ligne où tu déclares client tu as mis 192.169.254 mais je pense que tu voulais mettre 192.168.9.254 non?
Ensuite tu déclares client2 mais utilise Client2. Je ne sais pas si squid est case-sensitive ou pas mais il vaut mieux mettre la même chose au cas où. |
|
Back to top |
|
|
|