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?

Advertisement

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

🥺 Was this helpful? Please add a comment to show your appreciation or feedback.

nixCrat Tux Pixel Penguin
Hi! 🤠
I'm Vivek Gite, and I write about Linux, macOS, Unix, IT, programming, infosec, and open source. Subscribe to my RSS feed or email newsletter for updates.

34 comments… add one
  • ruwan Nov 29, 2012 @ 8:06

    I want to block some web sites for some MAC Addresses and other MAC addresses want to use some web sites.. How do I do that?

  • arichikirido Jun 6, 2013 @ 8:13

    i would like to know. how can i make first load page to my creations own page with squid for squid clients browser?

    anyone explain to me step by step.

    Many Thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Your comment will appear only after approval by the site admin.