Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Jim Laurino <nfcan.x.jimlaur@dfgh.net>
To: netfilter@lists.netfilter.org
Subject: Re: mac-filtering is not working (nfcan: addressed to exclusive sender for this address)
Date: Thu, 17 Mar 2005 18:19:24 -0500	[thread overview]
Message-ID: <20050317231924.GG3730@salty> (raw)
In-Reply-To: <2239.1111100113@www54.gmx.net> (from +nfcan+jimlaur+7b5f1cc311.Port17#gmx.net@spamgourmet.com on Thu, Mar 17, 2005 at 17:55:13 -0500)

On 2005.03.17 17:55, Manuel Schmitz - Port17@gmx.net wrote:
> Hello,
> 
> I am desperately trying to establish mac-filtering on my debian-router.
> 
> - All default chains are empty, policy set to "ACCEPT".
> - I execute
> 
>   iptables -A FORWARD -m mac --mac-source $MY_MAC -j ACCEPT
> 
>   and then set the FORWARD-Policy to "DROP". Now I expect the chain to
>   drop all packages exept these coming from $MY_MAC. Am I right?
> - It does not work. It drops ALL traffic. So why?

How do you know that *all* packets are dropped?
Why would changing the default policy affect a working rule?
Have you done iptables -L -nvx and examined the counts?

The rule is for one direction only - from $MY_MAC to the world,
there is no provision for traffic to $MY_MAC.

A rule like this would handle most reply traffic:
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT

For a really good reference on iptables in general, check out
http://iptables-tutorial.frozentux.net/


-- 
Jim Laurino
nfcan.x.jimlaur@dfgh.net
Please reply to the list.
Only mail from the listserver reaches this address.


      reply	other threads:[~2005-03-17 23:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-17 22:55 mac-filtering is not working Manuel Schmitz
2005-03-17 23:19 ` Jim Laurino [this message]

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=20050317231924.GG3730@salty \
    --to=nfcan.x.jimlaur@dfgh.net \
    --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