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 ~]$
its so simple right???
by:http://www.labtestproject.com/squid_block_ip_address.html
0 komentar:
Posting Komentar