block traffic basing on MAC

Stuff that don´t fit in the other categories.
Post Reply
User avatar
l0ngb1t
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 598
Joined: 15 Apr 2009, 16:00
15
Contact:

block traffic basing on MAC

Post by l0ngb1t »

hey i need a solution to block inbound traffic to a firewall server from the inside network basing on the source MAC for windows OS, or linux in case their is something can run a linux app on windows
and please don't tell me their is other solution ,i know their is but i need this one.
is it possible?
P.S please let me know if i didn't explain it well. :roll:
There is an UNEQUAL amount of good and bad in most things, the trick is to work out the ratio and act accordingly. "The Jester"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: block traffic basing on MAC

Post by bad_brain »

hm, on a Linux system it's no problem to set up iptables rules for MAC filtering.
in this example you would allow access only from 2 MAC addresses and deny access from all others:

Code: Select all

iptables -A INPUT -m mac --mac-source 00:0F:EA:91:04:08 -j ACCEPT
iptables -A INPUT -m mac --mac-source 00:0F:AA:61:02:01 -j ACCEPT
iptables -A INPUT -j DROP
:wink:
Image

Post Reply