Hi everyone

Over the time I have collected a lot of sites to block. ads/malware/porn etc. 
This has been working like a charm. I have even created a
custom errorpage for this.
But since I don't know when, this has stopped working. And according to the 
googling I have done, my syntax in squid.conf are correct. 
So what can be wrong here?

This is my setup:


cat /etc/squid3/squid.conf 
http_port 192.168.0.1:3128 transparent
acl LAN src 192.168.0.0/24
http_access allow LAN
http_access deny all
cache_dir ufs /var/spool/squid3 5000 16 256


#Block
acl ads dstdom_regex -i "/etc/squid3/adservers"
http_access deny ads


cat /etc/squid3/adservers | less

(^|\.)yieldmanager\.edgesuite\.net$
(^|\.)yieldmanager\.net$
(^|\.)yoc\.mobi$
(^|\.)yoggrt\.com$
(^|\.)yourtracking\.net$
(^|\.)z\.times\.lv$
(^|\.)z5x\.net$
(^|\.)zangocash\.com$
(^|\.)zanox-affiliate\.de$
(^|\.)zanox\.com$
(^|\.)zantracker\.com$
(^|\.)zde-affinity\.edgecaching\.net$
(^|\.)zedo\.com$
(^|\.)zencudo\.co\.uk$
(^|\.)zenzuu\.com$
(^|\.)zeus\.developershed\.com$
(^|\.)zeusclicks\.com$
(^|\.)zintext\.com$
(^|\.)zmedia\.com$

This is my /var/log/squid3/access.log when trying to access zmedia.com 
(currently blocked)

1362833540.822    607 192.168.0.20 TCP_MISS/301 631 GET http://zmedia.com/ - 
DIRECT/216.34.207.134 text/html
1362833541.459    236 192.168.0.20 TCP_MISS/200 7586 GET 
http://www.valueclickmedia.com/ - DIRECT/2.21.34.88 text/html
1362833541.570     95 192.168.0.20 TCP_MISS/200 2465 GET 
http://www.valueclickmedia.com/sites/all/modules/google_analytics/googleanalytics.js?
 - DIRECT/2.21.34.88 application/javascript

Ps. 
Running Squid 3.1.6 on Debian Squeeze 
configure options:  '--build=x86_64-linux-gnu' '--prefix=/usr' 
'--includedir=${prefix}/include' '--mandir=${prefix}/share/man' 
'--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' 
'--libexecdir=${prefix}/lib/squid3' '--disable-maintainer-mode' 
'--disable-dependency-tracking' '--disable-silent-rules' '--srcdir=.' 
'--datadir=/usr/share/squid3' '--sysconfdir=/etc/squid3' 
'--mandir=/usr/share/man' '--with-cppunit-basedir=/usr' '--enable-inline' 
'--enable-async-io=8' '--enable-storeio=ufs,aufs,diskd' 
'--enable-removal-policies=lru,heap' '--enable-delay-pools' 
'--enable-cache-digests' '--enable-underscores' '--enable-icap-client' 
'--enable-follow-x-forwarded-for' '--enable-auth=basic,digest,ntlm,negotiate' 
'--enable-basic-auth-helpers=LDAP,MSNT,NCSA,PAM,SASL,SMB,YP,DB,POP3,getpwnam,squid_radius_auth,multi-domain-NTLM'
 '--enable-ntlm-auth-helpers=smb_lm,' 
'--enable-digest-auth-helpers=ldap,password' 
'--enable-negotiate-auth-helpers=squid_kerb_auth' 
'--enable-external-acl-helpers=ip_user,ldap_group,session,unix_group,wbinfo_group'
 '--enable-arp-acl' '--enable-esi' '--disable-translation' 
'--with-logdir=/var/log/squid3' '--with-pidfile=/var/run/squid3.pid' 
'--with-filedescriptors=65536' '--with-large-files' '--with-default-user=proxy' 
'--enable-linux-netfilter' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -g 
-Wall -O2' 'LDFLAGS=' 'CPPFLAGS=' 'CXXFLAGS=-g -O2 -g -Wall -O2' 
--with-squid=/tmp/buildd/squid3-3.1.6



Reply via email to