?
Solved

How to involve MAC Address in IPtables Rule

Posted on 2004-09-08
2
Medium Priority
?
376 Views
Last Modified: 2012-05-05
How can i add the mac address restriction to this rule ?


-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 22 -s 200.75.XXX.XXX --syn -j ACCEPT


Thanks to you all !
0
Comment
Question by:diordonez
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Expert Comment

by:NashvilleGuitarPicker
ID: 12016931
The following thread has a discussion similar to what you are trying to do:

http://lwn.net/2001/1011/a/netfilter-mac.php3

- Will
0
 

Accepted Solution

by:
danieldg earned 375 total points
ID: 14150601
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 22 -s 200.75.XXX.XXX -m mac --mac-source 01:02:03:04:05:06 --syn -j ACCEPT

Note this won't protect you from someone on the same switch/hub, mac addresses are not hard to forge.

Source:
http://iptables-tutorial.frozentux.net/iptables-tutorial.html#MACMATCH
0

Featured Post

Need protection from advanced malware attacks?

Look no further than WatchGuard's Total Security Suite, providing defense in depth against today's most headlining attacks like Petya 2.0 and WannaCry. Keep your organization out of the news with protection from known and unknown threats.

Question has a verified solution.

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

Wikipedia defines 'Script Kiddies' in this informal way: "In hacker culture, a script kiddie, occasionally script bunny, skiddie, script kitty, script-running juvenile (SRJ), or similar, is a derogatory term used to describe those who use scripts or…
Do you have a windows based Checkpoint SmartCenter for centralized Checkpoint management?  Have you ever backed up the firewall policy residing on the SmartCenter?  If you have then you know the hassles of connecting to the server, doing an upgrade_…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

764 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