Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Gerard París Aixalà" <gerard.paris@estudiants.urv.cat>
To: netfilter@lists.netfilter.org
Subject: Re: Filtering MAC addresses and Multicast
Date: Wed, 02 Aug 2006 13:55:04 +0200	[thread overview]
Message-ID: <44D09298.20503@estudiants.urv.cat> (raw)
In-Reply-To: <44D0731A.4070507@freemail.hu>

Gáspár Lajos wrote:
> Martijn Lievaart írta:
>> Gerard París Aixalà wrote:
>>
>>> Martijn Lievaart wrote:
>>>
>>>> Gerard París Aixalà wrote:
>>>>
>>>>> Hello all,
>>>>>
>>>>> /sbin/iptables -t mangle -A PREROUTING -m mac --mac-source 
>>>>> 00:06:5B:12:C9:7A -j DROP
>>>>> /sbin/iptables -t mangle -A PREROUTING -m mac --mac-source 
>>>>> 00:06:5B:13:4A:69 -j DROP
>>>>>
>>>>> These rules drop Unicast traffic but they do not drop Multicast 
>>>>> traffic.
>>>>
>>>>
>>>> Multicast traffic is sent to specific multicast MAC adresses.
>>>> Learn how multicast works and drop the corresponding MAC addresses. 
>>>> (No I don't have a link handy, tcp/ip illustrated would be a good, 
>>>> but pricy source).
>>>>
>>>> HTH,
>>>> M4
>>>>
>>>
>>> I know how multicast works, but I want to drop packets with the 
>>> specified MAC source adresses. In multicast, the source address is 
>>> always a real one, to identify which computer the packet came from 
>>> (the destination address, both MAC and IP, is a special one).
>>
>>
>> <blush> Oops, my bad. Should read better. Sorry, Can't help you 
>> there. If you don't get a reply on this list in a few days, maybe ask 
>> netfilter-devel, because this looks like a bug.
>>
>> M4
>>
>>
>>
>>
> Try this:
>
> iptables -t mangle -A PREROUTING -j DROP -m mac --mac-source 
> XX:XX:XX:XX:XX:XX -m pkttype --pkt-type multicast
>
>
I tried this.
And this:
iptables -t mangle -I PREROUTING -d 225.0.0.4 -j DROP       # 225.0.0.4 
is the multicast address
iptables -t mangle -I PREROUTING -j DROP
But the multicast traffic still arrives at the destination computer.


  reply	other threads:[~2006-08-02 11:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-01  8:35 Filtering MAC addresses and Multicast Gerard París Aixalà
     [not found] ` <44CFB3EE.2010007@rtij.nl>
2006-08-02  7:17   ` Gerard París Aixalà
2006-08-02  7:23     ` Martijn Lievaart
2006-08-02  9:40       ` Gáspár Lajos
2006-08-02 11:55         ` Gerard París Aixalà [this message]
2006-08-02 12:12           ` Gáspár Lajos
2006-08-02 16:04             ` Gerard París Aixalà

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=44D09298.20503@estudiants.urv.cat \
    --to=gerard.paris@estudiants.urv.cat \
    --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