Enable IP Packet Forwarding on the machine Solution 1 sudo vim /etc/sysctl.conf then change the following parameter to 1 net.ipv4.ip_forward = 1 Save file & exit. Now execute the following command to implement the changes made, sudo sysctl -p Solution 2 echo 1 > /proc/sys/net/ipv4/ip_forward Configure the squid proxy Configure for ssl mkdir /etc/squid/ssl_cert cd […]
Tag Archives: proxy
Blacklist Run following command to create /etc/ad_block.txt file curl -sS -L –compressed “http://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&mimetype=plaintext” > /etc/ad_block.txt Configure Add config to squid.conf ## disable ads ( http://pgl.yoyo.org/adservers/ ) acl ads dstdom_regex “/etc/ad_block.txt” http_access deny ads Automating the Fetching of the Blacklist Create script /etc/newads.sh #!/bin/bash curl -sS -L –compressed “http://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&mimetype=plaintext” > /etc/squid3/ad_block.txt ## restart squid /usr/sbin/squid3 restart […]