From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: netfilter@vger.kernel.org
Subject: Re: Blocking machines by both Mac Address and IP address
Date: Sun, 24 Oct 2010 16:22:21 +0200 [thread overview]
Message-ID: <4CC4411D.4070701@plouf.fr.eu.org> (raw)
In-Reply-To: <1287873234.1700.330.camel@andybev>
Hello,
Andrew Beverley a écrit :
>
> 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.
next prev parent reply other threads:[~2010-10-24 14:22 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 [this message]
2010-10-24 14:46 ` Andrew Beverley
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=4CC4411D.4070701@plouf.fr.eu.org \
--to=pascal.mail@plouf.fr.eu.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.