Tuesday, February 10, 2009

How to configured Squid

How to configured Squid

 

Vi  Squid.conf

       http_port 8080

        icp_port 0

       acl QUERY urlpath_regex cgi-bin \?

       no_cache deny QUERY

       cache_mem 16 MB

       #cache_dir ufs /cache 200 16 256

       redirect_rewrites_host_header off

       #replacement_policy GDSF

      #acl localnet src 10.0.0.26/255.255.255.0

      acl localhost src 127.0.0.1/255.255.255.255

      acl Safe_ports port 80 443 210 119 70 21 1025-65535

      acl CONNECT method CONNECT

      acl all src 0.0.0.0/0.0.0.0

      http_access allow all

      http_access allow all

      http_access deny !Safe_ports

      http_access deny CONNECT

      #http_access deny all

      cache_mgr admin@openna.com

      visible_hostname pluto

      cache_effective_user squid

      cache_effective_group squid

      log_icp_queries off

      cachemgr_passwd my-secret-pass all

     buffered_logs on

 
 

0 comments:

Post a Comment