You are on page 1of 2

Squid Block IP Address client

he 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 ~]$ Password: [fedora10@fedora ~]$

su -c "gedit /etc/squid/squid.conf &"

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.

# # Block local squid user: # # acl block-client src 172.16.160.0/24 internal network # # Block local squid user: #

# Block IP range internal network # Block single IP

acl block-client src 172.16.168.19/32

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 ~]$ Password: [fedora10@fedora ~]$

su -c "service squid reload"

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

You might also like