Squid Block IP Address

 

Squid Block IP Address client

 

   The configuration example below show how you can instruct squid server to block IP Address (internal user IP Address) from using your squid proxy server.  The configuration example below show that you can block user by using their IP Address or you can instruct squid to block all IP Address ranges.

 

Step to block IP Address.

 

1.  login on your Linux Fedora system.

 

2.  Open x-terminal, and issue command example below to edit squid configuration file using gedit editor.

 

[fedora10@fedora ~]$ su -c "gedit /etc/squid/squid.conf &"

Password:

[fedora10@fedora ~]$

 

3.  Add the configuration line below in squid.conf (acl section), but make sure you edit the IP Address that need to block base on your network configuration.

 

Squid Block IP Address

#

# Block local squid user:

#

# acl block-client src 172.16.160.0/24  # Block IP range internal network

acl block-client src 172.16.168.19/32        # Block single IP internal network

 

#

# Block local squid user:

#

http_access deny block-client

 

4.  Save squid.conf and exit the editor.

 

5.  Reload squid configuration file to to make sure that squid proxy server using the new configuration.

 

[fedora10@fedora ~]$ su -c "service squid reload"

Password:

[fedora10@fedora ~]$

 

Keywords: squid block ip address, block ip address squid, squid ip address block, squid server block ip address 

 

aaaaaaaaaaa