Squid Proxy Server Mac Address based filtering
Q. I'm using squid proxy server under CentOS Linux version 5. How to filter a particular MAC address under squid?
A. Not all operating system supports Mac address based filtering. For some operating systems. Squid calls these "ARP ACLs" and they are supported on Linux, Solaris, and BSD variants.
How do I set up ACL's based on MAC address?
Open squid.conf:
# vi /etc/squid/squid.conf
Local acl, section and append ACL as follows:
acl macf1 arp mac-address
acl macf2 arp 00:11:22:33:44:55
http_access allow macf1
http_access allow macf2
http_access deny all
Save and close the file. Restart squid server:
# /etc/init.d/squid restart
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Linux / UNIX FAQ:
- Squid content filtering: Block / download of music MP3, mpg, mpeg, exec files
- Squid proxy How to filter or block a particular port
- Squid deny users accessing a website
- How to: Linux / UNIX setup Squid Proxy authentication
- Squid proxy authentication in transparent mode
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Please do not use the comment form to ask for help / question. Ask your question on the excellent Linux tech support forum. Thank you very much for stopping by our site!
Tags: acl, acls, bsd variants, centos linux, linux version, mac address, squid proxy server, squid server ~ Last updated on: November 1, 2007



January 9th, 2008 at 7:36 am
dear all
i tried to the above but still not able to control using mac
error:
2008/01/09 10:26:32| aclParseAclLine: Invalid ACL type ‘arp’
FATAL: Bungled squid.conf line 1882: acl ARP arp
Squid Cache (Version 2.5.STABLE14): Terminated abnormally.
please assist
March 12th, 2008 at 4:03 am
web site is block but i want to open web site ony one ip address 192.168.3.1
what is acl rule in squid file in linux