All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: Blocking forwarding of packets in WLAN
Date: Thu, 14 Oct 2004 10:27:30 -0400	[thread overview]
Message-ID: <20041014142730.GA3211@bender.817west.com> (raw)
In-Reply-To: <000501c4b1f4$89506360$db0a11ac@eurecom.fr>

On Thu, Oct 14, 2004 at 03:48:50PM +0200, Claudio Lavecchia wrote:
> Prototype for my function is then: 
> 
> void block_forwarding(char * MAC_address); 
> 
> Is this feasible someway using iptables? Can anyone give me a precise hint
> on how to do that? I would be truly grateful if someone could help me. 

can't help you with the C code aspect of it, but if at some point you
get to the part where you need the actual iptables command to block
forwarding of a packet by MAC address, it's:

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

where $MACADDR is in XX:XX:XX:XX:XX:XX form.

-j

-- 
Jason Opperisano <opie@817west.com>


  parent reply	other threads:[~2004-10-14 14:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-14 13:48 Blocking forwarding of packets in WLAN Claudio Lavecchia
2004-10-14 13:58 ` Lukas Ruf
2004-10-14 14:27 ` Jason Opperisano [this message]
2004-10-14 21:39 ` Jose Maria Lopez
  -- strict thread matches above, loose matches on Subject: below --
2004-10-14 13:38 Claudio Lavecchia

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=20041014142730.GA3211@bender.817west.com \
    --to=opie@817west.com \
    --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 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.