sudoaptinstallsquid
#设置匿名代理 forwarded_fordelete viaoff #修改监听端口 http_port3128 #允许本地网络访问 acllocalnetsrc10.0.0.0/8#RFC1918possibleinternalnetwork acllocalnetsrc172.16.0.0/12#RFC1918possibleinternalnetwork acllocalnetsrc192.168.0.0/16#RFC1918possibleinternalnetwork acllocalnetsrcfc00::/7#RFC4193localprivatenetworkrange acllocalnetsrcfe80::/10#RFC4291link-local(directlyplugged)machines http_accessallowlocalnet#去掉本地网络访问权限的注释 #自定义一个名为walker的控制组,并允许此控制组。 aclwalkersrc99.0.0.0/8#99段的A类地址 aclwalkersrc5.4.3.2/32#单个IP地址5.4.3.2 http_accessallowwalker#允许walker组 #修改或添加dns dns_nameservers223.5.5.5119.29.29.29114.114.114.114
重启服务
sudosystemctlrestartsquid.service #or sudosystemctlrestartsquid
*** walker ***