Blocking Multiple IP
Step 1: We could write down the IPs one by one separated with ‘spaces’. Or we could create a file
(in this case /etc/squid/invalid_ip_file) containing the IPs.
192.168.200.100
192.168.200.101
192.168.200.102
Step 2: vim /etc/squid/squid.conf
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl invalid_IP src 192.168.200.100 192.168.200.101
acl invalid_IP src “/etc/squid/invalid_ip_file” ### Add this line
acl our_network src 192.168.200.0/24
OR
http_access deny invalid_IP ###### Add this line
http_access allow our_network
http_access deny all
Comments
Post a Comment