1
vote
1answer
74 views

iptables arp compare and execute

EXAMPLE: iptables :internet - [0:0] -A internet -m mac --mac-source 48:5D:60:FC:29:B0 -j RETURN COMMIT [root@localhost:~ ] $ arp Address HWtype HWaddress Flags Mask ...
2
votes
2answers
1k views

iptables, allow access from certain MAC addresses

Presently, I limit which clients can access my server by using IP addresses via iptables, only approved IP addresses can connect. However, the problem with this is if a client is on a laptop and goes ...
1
vote
1answer
40 views

Server 2003 Filter mobile devices via MAC

At one of my client's sites I need to keep my users unauthorized devices off the wireless. They all know the SSID and Password because many of them have laptops that need the wireless. I'm running ...
1
vote
1answer
182 views

Redirect traffic on port 80 into apache for unknown macs, and into squid for some macs

I have a linux box behaving like a router that handles two network interfaces: eth0 for internet and eth1 for LAN. I set up iptables in order to redirect all the web traffic coming by the LAN into a ...
1
vote
1answer
1k views

Using Ipset and Iptables for MAC address filtering

I use MAC address filtering on my Linux router. Here is what I have done: iptables -A INPUT -i eth5 -m mac --mac-source 00:07:e9:84:2b:99 -j RETURN #User: Someuser iptables -A INPUT -i eth5 -j DROP ...
2
votes
3answers
512 views

On CentOS 4.5, How to Masquerade a connection using MAC address?

Currently we give Internet access using ip address in our firewall script as follows iptables -t nat -A POSTROUNTING -s 192.168.1.40 -j MASQUERADE But we have noticed that some guys steal these ...
1
vote
2answers
496 views

Counting traffic to destination MAC address using ebtables/iptables

I would like to be able to count the number of bytes going to a given MAC address using iptables or ebtables or some other linux utility. I have tried looking at the byte counts in ebtables but they ...