#####################

安装squid
#####################
yum install squid -y
#####################
正向解析
#####################
netstat -antlpe | grep squid        ###查看squid所使用的端口
vim /etc/squid/squid.conf           ###squid主配置文件

配置被代理主机

####################

反向代理加速
####################
vim /etc/squid/squid.conf          ###主配置文件
http_access allow all              ###允许所有人连接
cache_peer 172.25.254.116 parent 80 0 no-query   ##设定父网为172.25.254.116