This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Squid ACL Blacklist

Hi,
i want to have a URL limit, i have readed some stuff from thge squid config manual...
And now i had modify the squid.conf.

But the url limit wont work here my settings in the
/var/chroot-squid/etc/squid.conf-default

i got added these lines:



# ACL URL Deny
# ----------------------------------------------------------------------------
acl intern src 192.168.200.0/255.255.255.0
acl admin src 192.168.200.95/255.255.255.255
acl blacklist url_regex "/var/chroot-squid/etc/url.list"

# ACCESS CONTROLS
# -----------------------------------------------------------------------------
# network cache access is set with the packet filter, not squid ACLs
#
acl all src 0.0.0.0/0.0.0.0
acl aua proxy_auth REQUIRED
http_access allow aua
http_access allow all

deny_info ERR_ACCESS_DENIED blacklist
http_access deny blacklist

http_access deny all



im happy about all solutions...

here is the error:
urmel:/var/chroot-squid/etc # /etc/rc.d/squid restart
:: Stopping HTTP proxy squid
Starting...DONE
:: Starting HTTP proxy squid
2003/01/14 14:49:00| strtokFile: /var/chroot-squid/etc/url.list not found
2003/01/14 14:49:00| aclParseAclLine: IGNORING invalid ACL: acl blacklist url_regex -i "/var/chroot-squid/etc/url.list"
2003/01/14 14:49:00| squid.conf line 59: http_access deny blacklist
2003/01/14 14:49:00| aclParseAccessLine: ACL name 'blacklist' not found.
2003/01/14 14:49:00| squid.conf line 59: http_access deny blacklist
2003/01/14 14:49:00| aclParseAccessLine: Access line contains no ACL's, skipping
 
 [size="1"][ 14 January 2003, 08:21: Message edited by: Mark Nicolas ][/size]


This thread was automatically locked due to age.
  • it should be after the '/var/chroot-squid' directory (no where else worked).  Thus the real location of the file '/var/chroot-squid/etc/blacklist.filter' would be '/etc/blacklist.filter' in the squid config file (in quotes).

    example squid config file:
    # -------------------------------------------
    # Custom ACL
    # -------------------------------------------
    acl blockList dstdomain "/etc/blacklist.filter"
    http_access deny blockList

    Also, not that this should be done in the 'squid.conf-default' file (NOT 'squid.conf'), and once done - either restart the machine or restart http proxy in WebAdmin to submit the changes.