Installation: Yum install-y squid
Configuration file: vim/etc/squid/squid.conf
Specify disk directory: Cache_dir ufs/var/spool/squid 100 16 256
Cache_dir is used to specify the disk directory and size, the three values following the directory are represented from left to right:
Disk directory maximum Capacity unit is m, the number of first-level subdirectories, the number of two levels of subdirectories.
Enable memory as a cache to speed up: Cache_mem MB
Refresh mode: Refresh_pattern \. (jpg|png|gif|js|css|mp3|mp4) $1440 20% 2880 ignore-reload
Define the Hostname:visible_hostname aminglinux.com of the proxy machine
Log path:
[Email protected] ~]# Ls/var/log/squid
Access.log Cache.log Squid.out
Initialize cache directory After configuration is complete: squid-z
Forward Proxy scenario: The company can limit the employee's Internet access through a proxy server
Add White list:
ACL http Proto http
ACL Good_domain dstdomain. apelearn.com. baidu.com
Http_access Allow Good_domain
Http_access Deny!good_domain
This article is from the "Parody Games" blog, so be sure to keep this source http://kevinjin117.blog.51cto.com/11655131/1843406
Squid forward Proxy service configuration under Linux