PROnetworks »

Post new topic    Reply to topic
Login to print this topic
Author Message
sceaser
PostPosted: Mon Apr 28, 2008 4:25 pm Reply with quote

PRO Level 3
 
 


Joined: 28 Dec 2004
Posts: 59
Location: MARS
Hello fellow computer enthusiasts , Im am attempting to filter MAC addresses
using iptables , I have 3 MAC addresses entered into the script I plan to run , the 3 lines are allow port 22 MAC ******** , ect , but I need a little help with the Drop commands , If not specifed MAC addresses 1 ,2 or 3 port 22 drop ??
Does anyone have some help for da sceaser ???

I am running Redhat Enterprise Linux 5 ,
 
Back to top
imnuts
PostPosted: Tue Apr 29, 2008 12:24 am Reply with quote

Moderator
Support Team
 
 


Joined: 24 Mar 2004
Posts: 14567
Location: Boothwyn, Pennsylvania
I don't know the exact command, but I'm guessing that iptables is similar to ipfw from FreeBSD in how it applies rules. What you'll want to do is put the three allow commands as the first three rules, then the final filter will be to drop everything else. I don't know what it would look like exactly, but that is likely how it would be done. It's also possible that the lower number commands have lower priority (I forget as I haven't ever really used it), in which case just switch the order of your commands.
 
Back to top
Back to top
Index >> Unix, Linux, & Macintosh >> Iptables MAC filtering

Page 1 of 1

Post new topic   Reply to topic


Tired of the Ads? Registered users have 80% less adverts.