]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed the dump format of arp ACL
authorserassio <>
Sun, 8 May 2005 15:58:05 +0000 (15:58 +0000)
committerserassio <>
Sun, 8 May 2005 15:58:05 +0000 (15:58 +0000)
Added arp ACL documentation in squid.conf

src/ACLARP.cc
src/cf.data.pre

index 9fb7187299fca8233846f8fa0ad40848a04726fa..aea067bab369c1bf3ff6524c829ef0923f268605 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ACLARP.cc,v 1.16 2005/05/08 09:15:38 serassio Exp $
+ * $Id: ACLARP.cc,v 1.17 2005/05/08 09:58:05 serassio Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -677,8 +677,9 @@ aclDumpArpListWalkee(acl_arp_data * const &node, void *state)
     acl_arp_data *arp = node;
     static char buf[24];
     snprintf(buf, sizeof(buf), "%02x:%02x:%02x:%02x:%02x:%02x",
-             arp->eth[0], arp->eth[1], arp->eth[2], arp->eth[3],
-             arp->eth[4], arp->eth[5]);
+             arp->eth[0] & 0xff, arp->eth[1] & 0xff,
+             arp->eth[2] & 0xff, arp->eth[3] & 0xff,
+             arp->eth[4] & 0xff, arp->eth[5] & 0xff);
     wordlistAdd((wordlist **)state, buf);
 }
 
index f66e710322a39da319ccee95f9856600e7d59526..4657f2dfefbd0597d672667681220cf41d8b71a5 100644 (file)
@@ -1,6 +1,6 @@
 
 #
-# $Id: cf.data.pre,v 1.387 2005/05/01 08:11:48 serassio Exp $
+# $Id: cf.data.pre,v 1.388 2005/05/08 09:58:05 serassio Exp $
 #
 #
 # SQUID Web Proxy Cache          http://www.squid-cache.org/
@@ -2480,6 +2480,16 @@ DOC_START
        acl aclname dst      ip-address/netmask ... (URL host's IP address)
        acl aclname myip     ip-address/netmask ... (local socket IP address)
 
+       acl aclname arp      mac-address ... (xx:xx:xx:xx:xx:xx notation)
+         # The arp ACL requires the special configure option --enable-arp-acl.
+         # Furthermore, the ARP ACL code is not portable to all operating systems.
+         # It works on Linux, Solaris, Windows, FreeBSD, OpenBSD and some other *BSD
+         # variants.
+         #
+         # NOTE: Squid can only determine the MAC address for clients that are on
+         # the same subnet. If the client is on a different subnet, then Squid cannot
+         # find out its MAC address.
+
        acl aclname srcdomain   .foo.com ...    # reverse lookup, client IP
        acl aclname dstdomain   .foo.com ...    # Destination server from URL
        acl aclname srcdom_regex [-i] xxx ...   # regex matching client name
@@ -2597,6 +2607,7 @@ DOC_START
          # use REQUIRED to accept any non-null user name.
 
 Examples:
+acl macaddress arp 09:00:2b:23:45:67
 acl myexample dst_as 1241
 acl password proxy_auth REQUIRED
 acl fileupload req_mime_type -i ^multipart/form-data$