Skip to content

Commit

Permalink
Documentation for several ACL types (squid-cache#189)
Browse files Browse the repository at this point in the history
These ACL types have been available for some time but have not
yet had a mention in the squid.conf docs.
  • Loading branch information
yadij committed Jul 8, 2018
1 parent 3fd8887 commit 95e57cc
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/cf.data.pre
Original file line number Diff line number Diff line change
Expand Up @@ -904,18 +904,27 @@ DOC_START
acl aclname dst [-n] ip-address/mask ... # URL host's IP address [slow]
acl aclname localip ip-address/mask ... # IP address the client connected to [fast]

acl aclname arp mac-address ... (xx:xx:xx:xx:xx:xx notation)
if USE_SQUID_EUI
acl aclname arp mac-address ...
acl aclname eui64 eui64-address ...
# [fast]
# MAC (EUI-48) and EUI-64 addresses use xx:xx:xx:xx:xx:xx notation.
#
# The 'arp' ACL code is not portable to all operating systems.
# It works on Linux, Solaris, Windows, FreeBSD, and some other
# BSD variants.
#
# NOTE: Squid can only determine the MAC/EUI address for IPv4
# The eui_lookup directive is required to be 'on' (the default)
# and Squid built with --enable-eui for MAC/EUI addresses to be
# available for this ACL.
#
# Squid can only determine the MAC/EUI address for IPv4
# clients that are on the same subnet. If the client is on a
# different subnet, then Squid cannot find out its address.
#
# NOTE 2: IPv6 protocol does not contain ARP. MAC/EUI is either
# IPv6 protocol does not contain ARP. MAC/EUI is either
# encoded directly in the IPv6 address or not available.
endif

acl aclname srcdomain .foo.com ...
# reverse lookup, from client IP [slow]
Expand All @@ -942,6 +951,7 @@ DOC_START
# cache_peer_access mycache_mydomain.net deny all

acl aclname peername myPeer ...
acl aclname peername_regex [-i] regex-pattern ...
# [fast]
# match against a named cache_peer entry
# set unique name= on cache_peer lines for reliable use.
Expand Down

0 comments on commit 95e57cc

Please sign in to comment.