agent tools, xxx Tools
Yum install-y Squid (Install squid service)
Configuring the Forward proxy (for access control in the enterprise, etc.)
vim/etc/squid/squid.conf (Edit squid config file)
......
ACL http Proto http (add protocol)
ACL good_domain dstdomain baidu.com (white list set)
Http_access Allow Good_domain (whitelist access allowed)
Http_access deny!good_domain (exclude people from white list)
......
......
ACL http Proto http (add protocol)
ACL Bad_domain dstdomain baidu.com (set blacklist)
Http_access deny Bad_domain (Deny blacklist)
Http_access Allow!bad_domain (blacklist outside access allowed)
......
Cache_dir Ufs/var/spool/squid 100 16 256 (open cache folder)
Cache_mem M (add cache memory size)
refresh_pattern \. (jpg|png|gif|mp3|xml) 1440 50% 2880 ignore-reload (cache file type and related configuration)
Visible_hostname zhoulongfei.com (Squid host name)
Squid-kcheck (check configuration file for errors)
/etc/init.d/squid Start (Start squid service)
NETSTAT-LNP (see which port squid uses)
Tcpdump-nn Port 3128 (grab for 3128)
Configure the reverse proxy (site cache, etc., you must know the address to be able to configure the reverse proxy)
vim/etc/squid/squid.conf (Edit squid config file)
Http_port Accel Vhost Vport (Port Point changed to 80)
Cache_peer 61.135.169.121 Parent 0 originserver Name=a
Cache_peer_domain a www.baidu.com
Configure Squid agent under Linux