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.

#
# 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
- Add new comment
- 1572 reads
- Email this page
Thanks for Reading and Check Other Popular Linux Topics
All time:
- Configure and Setup Squid Cache Proxy Server on Fedora Core.
- Using Linux rm command to delete, remove hidden files and folder - Basic Linux Command.
- Copy Linux Files and Copy Directory Using cp Command - Linux Basic Command.
- Moving or rename files and directory using Linux mv command - Basic Linux Command.
- Add, view, edit and configure route and static route on Linux Fedora Core - Linux Server Configuration.
- Get and display the size of file and directory in Linux system using du command.
- Step by step Install Setup and Configure Linux Fedora Core Server and Network Management with Screen Shot and Example.
- Create file and display file contents in Linux using cat command.
- Configure Squid to block HTTP request to specific web sites.
- Example of samba smbpasswd file and samba smbusers configuration file.

Recent comments
12 hours 34 min ago
2 days 4 hours ago
4 days 9 hours ago
4 days 18 hours ago
5 weeks 2 days ago
9 weeks 2 days ago
14 weeks 19 hours ago
14 weeks 21 hours ago
14 weeks 5 days ago
15 weeks 2 days ago