netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Beverley <andy@andybev.com>
To: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
Cc: netfilter@vger.kernel.org
Subject: Re: Blocking machines by both Mac Address and IP address
Date: Sun, 24 Oct 2010 15:46:23 +0100	[thread overview]
Message-ID: <1287931583.1758.2.camel@andybev> (raw)
In-Reply-To: <4CC4411D.4070701@plouf.fr.eu.org>

> > 
> > Set your default policy to drop:
> > 
> > iptables -t mangle -P FORWARD DROP
> > 
> > Then set up a rule for each client that matches both IP address and MAC:
> > 
> > iptables -t mangle -A FORWARD -s 1.2.3.4 \
> > 	-m mac --mac-source aa:aa:aa:aa:aa:aa -j ACCEPT
> 
> The 'mangle' table is not intended for filtering. The 'filter' table is.

Ooops, I meant filter. Been using the mangle table too much recently :)

Andy



  reply	other threads:[~2010-10-24 14:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-23 22:19 Blocking machines by both Mac Address and IP address Scott Mayo
2010-10-23 22:33 ` Andrew Beverley
2010-10-24 13:14   ` Scott Mayo
2010-10-24 14:22   ` Pascal Hambourg
2010-10-24 14:46     ` Andrew Beverley [this message]
2010-10-23 22:51 ` Jan Engelhardt
2010-10-25 16:02 ` 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=1287931583.1758.2.camel@andybev \
    --to=andy@andybev.com \
    --cc=netfilter@vger.kernel.org \
    --cc=pascal.mail@plouf.fr.eu.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;
as well as URLs for NNTP newsgroup(s).