Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th July 2011, 01:54 PM
Turtel Offline
Registered User
 
Join Date: Sep 2009
Location: Kanpur, India
Posts: 36
linuxfedorafirefox
iptables for blocking one computer

Friends the following shall block a particular machine in the same network, what can be done if it is dynamic IP
and from other network?

iptables -A INPUT -s 192.168.0.0/24 -m mac --mac-source 00:50:8D:FD:E6:32 -j DROP
Reply With Quote
  #2  
Old 9th July 2011, 02:06 PM
flyingfsck Online
Registered User
 
Join Date: Aug 2010
Location: Al Ain, UAE
Posts: 1,094
linuxfirefox
Re: iptables for blocking one computer

The MAC is (almost) guaranteed to be unique, so you need not filter on the IP address.
Reply With Quote
  #3  
Old 9th July 2011, 02:22 PM
fpmurphy Offline
Registered User
 
Join Date: May 2009
Location: /dev/ph
Posts: 308
windows_7firefox
Re: iptables for blocking one computer

I agree. Even if the IP address changes, the MAC address should not. However, if they know that they are doing, they can spoof the MAC address. All bets are off if this the case.
Reply With Quote
  #4  
Old 10th July 2011, 11:46 AM
Turtel Offline
Registered User
 
Join Date: Sep 2009
Location: Kanpur, India
Posts: 36
linuxfedorafirefox
Re: iptables for blocking one computer

If the computer does not have static IP I don't think it could be blocked by mac address if it is from another network we need to block a IP range to block it......if I am correct........
Reply With Quote
Reply

Tags
blocking, iptables

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IPTABLES SSH port blocking spoutin Security and Privacy 29 26th August 2006 07:53 AM
iptables finetuning, blocking icmp? GiLuX Security and Privacy 10 14th June 2005 05:28 AM
iptables blocking samba Pipette Monkey Servers & Networking 2 8th April 2005 11:34 PM


Current GMT-time: 18:58 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat