Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Abhishek Singh <aks.abhishek@gmail.com>
To: netfilter@vger.kernel.org
Subject: Regarding iptables mac matching
Date: Thu, 21 Aug 2008 20:18:14 +0545	[thread overview]
Message-ID: <48AD7CAA.8020205@gmail.com> (raw)

Dear All,
     I'm using iptables on Fedora 9. I need to block network access to a 
specific mac address. My LAN uses a gateway. On the gateway I'm using 
iptables for firewalling. I monitor the network traffic from hosts on my 
LAN, and need to block the hosts which are consuming too much of network 
traffic. To block a host with MAC address 00:E0:4D:02:1F:B8, I added 
these rules in iptables:

iptables -A INPUT -m mac --mac-source 00:E0:4D:02:1F:B8 -j DROP
iptables -A FORWARD -m mac --mac-source 00:E0:4D:02:1F:B8 -j DROP

I tested the network connection on the host with the mac address 
matching 00:E0:4D:02:1F:B8 and I got the following results:

   * The gateway blocked ssh and ping requests from the host.
   * But I was still able to access other servers on real ip (say
     pinging google.com, worked fine)

I like to block the access of that host to other hosts, the gateway and 
the internet as well. But I'm unable to do that using the above 
mentioned rules. I'm quite optimistic that someone help me with this 
problem.
Thanks in advance.

Regards,
Abhishek Singh



             reply	other threads:[~2008-08-21 14:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-21 14:33 Abhishek Singh [this message]
2008-08-21 14:41 ` Regarding iptables mac matching Grant Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48AD7CAA.8020205@gmail.com \
    --to=aks.abhishek@gmail.com \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox