squid/install.sh

raw link view readme
1 systemctl start firewalld
2 systemctl enable firewalld
3 firewall-cmd --permanent --add-interface=eth0 --zone=public
4 firewall-cmd --permanent --add-service=squid --zone=public
5 firewall-cmd --reload
6
7 yum install squid -y
8
9 sed -i.original "/acl localnet src 172.*/d" /etc/squid/squid.conf
10 sed -i "/acl localnet src 192.*/d" /etc/squid/squid.conf
11 sed -i "/acl localnet src fc00.*/d" /etc/squid/squid.conf
12 sed -i "/acl localnet src fe80.*/d" /etc/squid/squid.conf
13 sed -i "/^#/d;/^$/d" /etc/squid/squid.conf
14
15 systemctl start squid
16 systemctl enable squid
17
18 # squid -k reconfigure
19