Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-22-2007, 09:24 AM   #1
LQ Newbie
Registered: Mar 2006
Posts: 29

Rep: Reputation: 15
MAC address blocking

Hi everybody !

I'm using Slackware linux. There are 2 NIC card in it, one is for real ip and other is for my internal network. I don't want to give internet access to all of my network PC. I want to allow only some pc to get aceess to internet, and i want to do that by MAC address matching using iptable. can anyone tell me how to do it?
Old 04-22-2007, 01:08 PM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
You can use -m mac --mac-source MACADDRESS to select a given iptables rule for only that mac.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 05:33 AM
blocking mac address and NAT com90185 Linux - Security 6 03-07-2005 07:37 PM
blocking mac address using iptables Kendo1979 Linux - Networking 9 10-25-2004 05:09 AM
iptables - blocking a host by MAC address retiem Linux - Security 6 08-29-2003 12:58 PM
blocking connection through MAC address shahriars Linux - Security 7 06-02-2003 02:45 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration