Search squid archive

Re: [squid-users] Hostname ACL question

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

 



On Wed, 16 Mar 2005, Joe Giles wrote:

I am trying to block/allow sites based on machine hostnames within my network; I have an inhouse DNS server that manages hostnames to IPs.

If you want to match client hostnames then the DNS must also have IP to hostname mappings (in-addr.arpa zone).


When I look at the squid logs, it appears to only show IP address.

To log the client hostname you need to set "log_fqdn on".

Is there a way to set up a client hostname ACL based on local machines on my network.

acl test srcdomain linuxbox.wolfhome.com
acl TestACL url_regex -i <reg expression>

http_access deny TestACL !test

This looks good to me. But requires that your DNS can answer the question what is the host name of 10.100.125.47


Verify this with

   host 10.100.125.47
or
   dig 47.125.100.10.in-addr.arpa PTR

Regards
Henrik

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

  Powered by Linux