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

Comments

Popular posts from this blog

Squid Configuration

Squint Configure

Postfix SASL authentication with SMTP port 465:

How to Change the Logo from Zimbra Admin Console