4.1 Create Router Step 1: # vim /etc/sysctl.conf net.ipv4.ip_forward = 1 Step 2: run this command # sysctl -p 4.2 Squid Configuration #apt-get install squid Minimum Configuration: # vim /etc/squid/sq…
4.1 Create Router Step 1: # vim /etc/sysctl.conf net.ipv4.ip_forward = 1 Step 2: run this command # sysctl -p 4.2 Squid Configuration #apt-get install squid Minimum Configuration: # vim /etc/squid/sq…
To setup authentication, first we need to download the package apache2 (Debian). First, we need to create a file that would contain the username and passwords of users who are allowed access. Step 1: #apt-get install apache2 Ste…
The following lines have been taken from the file squid.conf. Each day can be represented by an alphabet. Moreover,browsing time can be limited using h1:m1 – h2:m2 parameters, where h1:m1 > h2:m2. #acl aclname time [day-abbrev…
Blocking Specific MAC: acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 acl bad_MAC arp 192.168.200.100/32 acl our_network src 192.168.200.0/24 http_access deny bad_MAC http_access allow our_network http_access den…
Step 1: We could write down the IPs one by one separated with ‘spaces’. Or we could create a file (in this case /etc/squid/invalid_ip_file ) containing the IPs. 192.168.200.100 192.168.200.101 192.168.200.102 Step 2: vim /etc/s…
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_networ…
We would create a file /etc/squid/sitelist and add all to be blocked websites in the file. Below is a sample content of this file: .bad_site.com \.hacker.$ \.mp3$ # \keyword? I…
This task can be done using the url_regex, srcdomain and dstdomain. url_regex checks the url for matching characters. acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 acl our_network src 192.168.200.0/…
#apt-get install squid Minimum Configuration: edit http_port 8080 acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 add acl our_network src 192.168.200.0/24 In the part “ # Recommen…