Solved

Iptables & Squid Rules - Workstations with Dynamic Ip Address

Posted on 2006-10-30
2
362 Views
Last Modified: 2008-03-17
Hi Experts...

One of my networks has a Windows 2003 server thats acts as a DHCP to the local network, and i administer a Linux BOX (Debian) with iptables and Squid. The internet access is restricted based on individual policies acording with the CEO.

My questions:

In Iptables and in Squid is possible to apply rules using only the MAC ADDRESS or the Machine Name ?

Any help will be very apreciate...

Regard´s

Tullio

0
Comment
Question by:tullioc
2 Comments
 
LVL 4

Accepted Solution

by:
NorCal2612 earned 500 total points
ID: 17839686
This is a decent article explaining how to create iptables rules that filter based on MAC addresses:

http://jaredquinn.info/it-related/technical/2006.02.05/iptables-mac-filter/

And here is an example for squid:

(1) To allow http_access for only one machine with MAC Address 00:08:c7:9f:34:41

To use MAC address in ACL rules. Configure with option -enable-arp-acl.

acl all src 0.0.0.0/0.0.0.0
acl pl800_arp arp 00:08:c7:9f:34:41
http_access allow pl800_arp
http_access deny all

Hope this helps.
0
 

Author Comment

by:tullioc
ID: 17915681
NorCal2612

Perfect, thanks a lot....
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
Fine Tune your automatic Updates for Ubuntu / Debian
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question