Installation Kits
Yum-y Install squid*
Cp/etc/squid/squid.conf/etc/squid/squid.conf.bak
Vi/etc/squid/squid.conf
#请视使用人数和硬碟状况加大 Cache Folder Capacity
Cache_dir Ufs/var/spool/squid 1000 16 256
#限制允许连线范围, please revise your school status.
ACL hostname src 192.168.1.0/24
Http_access Deny All
http_access allow localhost
Http_access allow hostname
#Recommended Minimum Configuration:
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 # http
ACL safe_ports Port # FTP
ACL safe_ports port 443 563 # HTTPS Snews
ACL safe_ports Port # 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 Connect method Connect
#限制允许连线范围, please revise 111cn.net according to your own school condition
Service Squid restart
NAT and proxy:transparent Proxy speed up network transmission
#Fedora Core 7 new Squid version transparent Proxy settings simplified, integrated into the Http_port option.
Vi/etc/squid/squid.conf
Http_port 3128 Transparent
Httpd_accel_host Virtual
Httpd_accel_with_proxy on
Httpd_accel_uses_host_header on
Service Squid restart
--------------------------------------------
#Fodora the previous version of the Core 6 squid transparent Proxy set in the Squid profile plus the following four lines
Vi/etc/squid/squid.conf
Httpd_accel_host ha.shsps.kh.edu.tw
Httpd_accel_port 80
Httpd_accel_with_proxy on
Httpd_accel_uses_host_header on