Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 03-03-2008, 10:56 AM   #1
LQ Newbie
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
Banning certain MAC address for certain time

Hello. I couldn't find a topic for this problem anywhere, so I thought it might be a good idea to create one. But if someone knows thread conserning this problem, please tell me.

I'd want to close internet from one computer in my LAN, so the internet would be closed like 23.00pm - 07.00am

I've heard that the best way would be to block computers MAC address, with using Crontab for timings.

I know that the command for banning the MAC address is
//iptables -A INPUT -m mac --mac-source <mac address> -j DROP//

But how do I remove ban also?
Old 03-03-2008, 11:25 AM   #2
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
Originally Posted by Shalkku View Post
I know that the command for banning the MAC address is
//iptables -A INPUT -m mac --mac-source <mac address> -j DROP//

But how do I remove ban also?
the -D will Delete the rule

iptables -D INPUT -m mac --mac-source <mac address> -j DROP
depending on your ruleset you may want to look at adding this to the FORWARD chain


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
Single DHCP server ,to provide the ip address to a MAC address in two different subne alix123 Linux - Software 5 05-08-2007 11:16 PM
How can I change/set the MAC address at boot time under SuSE? Basel Linux - Networking 6 10-20-2006 12:23 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM
couple C++ questions - mac address & last file access time. BrianK Programming 3 07-17-2002 03:17 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:58 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