All of lore.kernel.org
 help / color / mirror / Atom feed
From: Claude Biron <claude.biron@shaw.ca>
To: netfilter-devel@lists.netfilter.org
Subject: MAC Filtering
Date: Tue, 14 Jun 2005 13:55:14 -0700	[thread overview]
Message-ID: <001601c57123$5ce2ab00$0a01a8c0@office> (raw)

I hope you don't mind asking you a question re: ebtables.   I'm looking to
use ebtables to do MAC filtering in a wireless router in AP mode (default).

The object is to do the following:

 

1.	on router startup, prevent all but the host PC from connecting.
2.	allow a specified MAC to make a connection.
3.	drop/block the MAC at some point in time.  Their current connection
is dropped.

 

The following ebtables commands do not work.  Is there a simple solution?
Many thanks in advance!   Using the linkyss WRT54GS router with SVEASOFT.

 

1.  (on startup block all MACs except one)

ebtables -N check_mac

ebtables -A check_mac -s 00:11:11:B6:A9:21 -j ACCEPT

ebtables -t filter -F INPUT

ebtables -t filter -F FORWARD

ebtables -P INPUT DROP

ebtables -P FORWARD DROP

ebtables -A INPUT --logical-in br0 -j check_mac

ebtables -A FORWARD --logical-in br0 -j check_mac

 

2. (allow a MAC access)

ebtables -A check_mac -s xx:xx:xx:xx:xx:xx -j ACCEPT

 

3. (drop or prevent access)

ebtables -D check_mac -s xx:xx:xx:xx:xx:xx -j ACCEPT


 

 

 

             reply	other threads:[~2005-06-14 20:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-14 20:55 Claude Biron [this message]
2005-06-16 16:22 ` MAC Filtering Charlie Brady
  -- strict thread matches above, loose matches on Subject: below --
2010-04-21  3:55 mac filtering ratheesh k
2010-04-21  5:54 ` Marek Kierdelewicz
2010-04-21  7:49 ` Lars Nooden
2005-06-29 11:56 MAC filtering varun_saa
2005-06-29 15:58 ` Gustavo Castro Puig
2005-06-29 20:30 ` /dev/rob0
2005-01-05 13:25 MAC Filtering Erwin Van de Velde
     [not found] ` <17648.213.236.112.75.1104937880.squirrel@213.236.112.75>
2005-01-05 16:12   ` Erwin Van de Velde
2005-01-05 16:22     ` Patrick Schaaf
2005-01-05 18:16     ` Bart De Schuymer
2004-01-14 23:58 Gopal Chandavarapu
2004-01-14 23:52 Gopal Chandavarapu
2004-01-21 13:55 ` Harald Welte

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='001601c57123$5ce2ab00$0a01a8c0@office' \
    --to=claude.biron@shaw.ca \
    --cc=netfilter-devel@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 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.