Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "George Vieira" <georgev@citadelcomputer.com.au>
To: Cedric Blancher <blancher@cartel-securite.fr>,
	Leonardo Pires <leonardo@nextwave.com.br>
Cc: netfilter@lists.netfilter.org
Subject: RE: Reject Mac-Address
Date: Fri, 1 Aug 2003 19:15:15 +1000	[thread overview]
Message-ID: <FDEMKKNJDLAJDPNDPCDDKEDENFAA.georgev@citadelcomputer.com.au> (raw)
In-Reply-To: <1059724368.1178.9.camel@elendil.intranet.cartel-securite.net>

Hey, don't forget.. the firewall will only see the MAC of the routers (from
experience) unless the routers pass the MAC address across when routed...
but AFAIK they don't.. so -m mac is useless in this scenario...


-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org]On Behalf Of Cedric Blancher
Sent: Friday, August 01, 2003 5:53 PM
To: Leonardo Pires
Cc: netfilter@lists.netfilter.org
Subject: Re: Reject Mac-Address


Le ven 01/08/2003 à 05:20, Leonardo Pires a écrit :
> I have the following scenario:
> internet--router---firewall---router---clients
> I have the mac_address of all clients, and I need to reject some
> clients in the firewall  using the mac_address, someone know how can I
> do  it ?

You will do source MAC address based filtering. Use mac match :

cbr@elendil:~$ iptables -m mac --help
iptables v1.2.7a
[...]
MAC v1.2.7a options:
 --mac-source [!] XX:XX:XX:XX:XX:XX
                                Match source MAC address

Suppose you want to deny access to a host considering its MAC address :

	iptables -A FORWARD -m mac --mac-source $FORBIDEN_MAC -j DROP

--
http://www.netexit.com/~sid/
PGP KeyID: 157E98EE FingerPrint: FA62226DA9E72FA8AECAA240008B480E157E98EE




  reply	other threads:[~2003-08-01  9:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-01  3:20 Reject Mac-Address Leonardo Pires
2003-08-01  7:52 ` Cedric Blancher
2003-08-01  9:15   ` George Vieira [this message]
2003-08-01  9:28     ` Cedric Blancher

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=FDEMKKNJDLAJDPNDPCDDKEDENFAA.georgev@citadelcomputer.com.au \
    --to=georgev@citadelcomputer.com.au \
    --cc=blancher@cartel-securite.fr \
    --cc=leonardo@nextwave.com.br \
    --cc=netfilter@lists.netfilter.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