一、服务器环境
[root@loclalhost ~]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
二、Squid部署
1. 安装Squid
[root@loclalhost ~]# yum install squid
2. 修改squid配置文件,修改后配置文件如下
[root@loclalhost ~]# cat /etc/squid/squid.conf
#
# Recommended minimum configuration:
#
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
#acl server1 src 122.51.205.169
#acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
#acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
#acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
#acl localnet src fc00::/7 # RFC 4193 local private network range
#acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) m