cp /163.17.209.1/etc/squid/squid.conf /etc/squid/.
vim /etc/squid/squid.conf
# add follows to the end
request_header_access Referer deny all
request_header_access X-Forwarded-For deny all
request_header_access Via deny all
request_header_access Cache-Control deny all
# do not display IP address
forwarded_for off
chown -R squid:squid /cache1
systemctl start squid
systemctl status squid
systemctl enable squid
firewall-cmd --add-service=squid --permanent
firewall-cmd --reload
沒有留言:
張貼留言