[squid-users] FATAL error while using dstdomain directive

Eric C. Kom eric.kom83 at gmail.com
Tue Jun 20 13:47:23 UTC 2017


Good day Folks,
Please I tried to block websites like youtube.com and facebook.com  using
acl dstdomain directive without success.

Squid replied the above error:
erickom at proxy:/etc/squid3$ sudo squid3 -z
2017/06/20 15:37:37| ERROR: '.google.com' is a subdomain of 'google.com'
2017/06/20 15:37:37| ERROR: You need to remove '.google.com' from the ACL
named 'ban_list'
FATAL: Bungled /etc/squid3/squid.conf line 57: acl ban_list dstdomain
"/etc/squid3/ban_list"
Squid Cache (Version 3.4.8): Terminated abnormally.
CPU Usage: 0.004 seconds = 0.004 user + 0.000 sys
Maximum Resident Size: 37520 KB


See below my ban_list file:
erickom at proxy:/etc/squid3$ cat ban_list
google.com
.google.com
youtube.com
.youtube.com
facebook.com
.facebook.com

Please assist

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20170620/8086282d/attachment.html>


More information about the squid-users mailing list