Solved

How to involve MAC Address in IPtables Rule

Posted on 2004-09-08
2
367 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
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 125 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The DROP (Spamhaus Don't Route Or Peer List) is a small list of IP address ranges that have been stolen or hijacked from their rightful owners. The DROP list is not a DNS based list.  It is designed to be downloaded as a file, with primary intention…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now