Blocking Specific IP
Step 1 : Create a folder /etc/squid/bad_IP and put the IP:
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 bad_IP src 192.168.200.100/32 ### Add this Line
acl our_network src 192.168.200.0/24
http_access deny bad_IP ### Add this line
http_access allow our_network
http_access deny all
:wq! ### Save and Exit
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 bad_IP src 192.168.200.100/32 ### Add this Line
acl our_network src 192.168.200.0/24
http_access deny bad_IP ### Add this line
http_access allow our_network
http_access deny all
:wq! ### Save and Exit
Comments
Post a Comment