IP and MAC address based ACL’s in Squid

I am little bit confused on how to match IP address of a computer with its MAC address while writing ACL’s in squid. My objective is to allow IP address for which the NIC’s MAC address is already defined in ACL, so that other, who are responsible for IP collision may not use proxy. For example, i will allow a computer with IP 10.2.1.77 when its mac address is only 00:0f:fe:1c:9d:63 so on. I think the following ACL will do the job.

acl comp1_ip src 10.2.1.77

acl comp1_mac arp 00:0f:fe:1c:9d:63

http_access allow comp1_ip comp1_mac

I think the above ACL’s will work. Will post the results here after testing it.

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

4 Responses to IP and MAC address based ACL’s in Squid

  1. Pingback: IP and MAC address based ACL's in Squid « Varadharajan's Journal | IP address.co.uk

  2. Pingback: IP and MAC address based ACL's in Squid | Drakz Free Online Service

  3. fossman says:

    Squid setup process has been completed successfully and the format of the above acl’s magically works! 🙂

  4. Amar says:

    Thanks …it is perfect work with squid 2.6 STABLE Ver.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s