LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-17-2009, 02:29 PM   #1
jasem200
LQ Newbie
 
Registered: May 2005
Location: Libya
Distribution: redhat enterprise 4
Posts: 29

Rep: Reputation: 15
Block incoming connections from 1 Mac address ?????


hi everyone

i have a web server on the internet, and i want to know how to...

list incoming connection from internet by mac address.
is it possible to block incoming connection from internet by mac address.
block incoming connections from all and allow only specific mac address.

i tried to do
-A INPUT -m --mac-source 00:1c:63:f1:10:03 -j DROP

but i still can connect to the server.

please advice
 
Old 09-17-2009, 03:28 PM   #2
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
http://www.linuxquestions.org/questi...address-86254/

Regards,

--
Prasanta
 
Old 09-17-2009, 03:35 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
What you are asking to do is not possible. You can't block via MAC on a WAN interface, because you are never seeing the actual MAC of the computer trying to connect to you. The connection has been run though so many different routers that the original source MAC is long since obfuscated.

If you did block the MAC that connections from a specific machine appear to be coming from, all you would do is block the next router up the line from you; which would potentially block you off from the Internet entirely.

Last edited by MS3FGX; 09-17-2009 at 03:36 PM.
 
  


Reply


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
can I limit ssh and apache connections to one mac address? slide77 Linux - Security 3 04-19-2009 05:11 PM
how to reject connections which come from unknown mac address? Winanjaya Linux - Security 6 04-05-2009 10:40 AM
can't block MAC Address using iptables Ameii83 Linux - Newbie 2 02-27-2007 07:31 AM
Block all users and allow certain Mac Address georgiozoze Linux - Networking 2 01-18-2007 05:31 AM
block mac address Ammad Linux - General 1 09-11-2005 02:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:05 PM.

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