* mac-filtering is not working
@ 2005-03-17 22:55 Manuel Schmitz
2005-03-17 23:19 ` mac-filtering is not working (nfcan: addressed to exclusive sender for this address) Jim Laurino
0 siblings, 1 reply; 2+ messages in thread
From: Manuel Schmitz @ 2005-03-17 22:55 UTC (permalink / raw)
To: netfilter
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?
--Manuel
--
SMS bei wichtigen e-mails und Ihre Gedanken sind frei ...
Alle Infos zur SMS-Benachrichtigung: http://www.gmx.net/de/go/sms
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: mac-filtering is not working (nfcan: addressed to exclusive sender for this address)
2005-03-17 22:55 mac-filtering is not working Manuel Schmitz
@ 2005-03-17 23:19 ` Jim Laurino
0 siblings, 0 replies; 2+ messages in thread
From: Jim Laurino @ 2005-03-17 23:19 UTC (permalink / raw)
To: netfilter
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-17 23:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-17 22:55 mac-filtering is not working Manuel Schmitz
2005-03-17 23:19 ` mac-filtering is not working (nfcan: addressed to exclusive sender for this address) Jim Laurino
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox