Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-19-2005, 06:01 PM   #1
Registered: Nov 2004
Posts: 31

Rep: Reputation: 15
reject certain mac-adresses

To not go to off-topic ill just put this in another post.

At a lan-party we have huge virus problems. Viruses that jam our router completly.

We have a linux-box as router and its running iptraf. Theoretically, (we havent tried it yet) Iptraf's monitor on sent packages from each mac adress connected to the box should go wild when someone starts playing with our internet. Can i somehow block those mac-adresses that are making trouble, so they wont reach the router that is jammed? Preferably they will only be denied to reach the other side of the linux box, because the linux box is running CS-servers +++

Our network looks like this:

ISP->Router->Linuxbox(eth1)->Linuxbox(eth0)->Core switch->Users and desk switches.

We dont mind the troublemakers accessing eth0, but we dont want them to get through into eth1 and to the router. Can this be done easily?
Old 06-19-2005, 06:14 PM   #2
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
you could use an iptables rule to block any mac address you want...

iptables -I FORWARD -i eth0 -m mac --mac-source \
xx:xx:xx:xx:xx:xx -j DROP


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
wget --reject -R troubles cursed Linux - Software 0 11-12-2005 10:23 AM
Multiple MAC Adresses to one NIC? cjs500 Linux - Networking 8 04-29-2005 03:36 AM
linux router must grant internet acces based on MAC adresses YNets269 Linux - Networking 6 07-15-2004 05:56 AM
Network IP Adresses greggery Linux - General 1 12-01-2003 03:30 PM
How do I forward IP Adresses? teeno Linux - Networking 2 07-16-2001 09:38 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:25 PM.

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