Search squid archive

http_access deny for dstdomain acl not denying access to url.. what am I doing wrong?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Trying to understand what I am doing wrong with my ACLs (yes I've read the ACL guide on squid site.. but still confused).. My client is 172.16.10.101, trying to block access to facebook (and other dstdomain file lists), but it is not working from the client I can still access fb.

Is this because I have this rule below..?

acl localnet src 172.16.0.0/12
http_access allow localnet

Instead of denying everything access and manually maintaining rules, I want to allow http/https access for everything except explicitly defined ACLs (in this case the facebook acl as a test).

I've tried to set debugging to debug_options ALL,1 33,2 to see more info on ACLs (read on some site this is the debug flags to set) but I don't see any ACL details in my access.log file.

my squid.conf (for SQUID 3.3.3) file is below..

acl localnet src 10.0.0.0/8     # RFC1918 possible internal network
acl localnet src 172.16.0.0/12  # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network

acl SSL_ports port 443 8180 8443 563 1494 2598 8531
acl Safe_ports port 80 # http
acl Safe_ports port 81           # http for Pacific Brokerage
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # http
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 8080 8081 8082 8088 8180
acl Safe_ports port 3128         # Squid http server
acl Safe_ports port 1494 2598   # ICA - Citrix
acl Safe_ports port 7000 8000   # Oracle
acl Safe_ports port 9000         # Oracle
acl Safe_ports port 8530 # WSUS
acl Safe_ports port 55905 # WSUS
acl Safe_ports port 1025-65535 # unregistered ports
acl CONNECT method CONNECT

http_access allow localhost manager
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost

acl ads dstdomain "/etc/squid/blacklists/ads/domains"
acl adult dstdomain "/etc/squid/blacklists/adult/domains"
acl gambling dstdomain "/etc/squid/blacklists/gambling/domains"
acl fb dstdomain .facebook.com

http_access allow localnet
http_access allow localhost

http_access deny ads adult gambling fb

http_access deny all

http_port 8080
dns_nameservers 172.16.11.3 172.16.11.2 172.16.11.1
visible_hostname www-proxy

hierarchy_stoplist cgi-bin ?

logformat oppy %ts.%03tu %6tr %>a %>A %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt
access_log daemon:/var/log/squid/access.log oppy
cache_store_log daemon:/var/log/squid/store.log
cache_log /var/log/squid/cache.log
cache_mem 64 MB
logfile_rotate 4
debug_options ALL,1
# ACL Debug Options
# debug_options ALL,1 33,2
# debug_options ALL,1 33,2 28,9
coredump_dir /var/log/squid/squid

shutdown_lifetime 3 seconds
dns_v4_first on
retry_on_error on
forward_max_tries 25
forward_timeout 30 seconds
connect_timeout 30 seconds
read_timeout 30 seconds
request_timeout 30 seconds
persistent_request_timeout 1 minute

cache_dir ufs /var/cache/squid 100 16 256
cache_mgr ittechs@xxxxxxxxxx

snmp_port 0
icp_port 0
htcp_port 0

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux