Linux Netfilter discussions
 help / color / mirror / Atom feed
* Bridging issues: Issues with IP packets with multicast MAC address
@ 2014-02-06  0:01 Sophal Lee
  2014-02-07 19:22 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Sophal Lee @ 2014-02-06  0:01 UTC (permalink / raw)
  To: netfilter@vger.kernel.org

Hi 

I'm having issues with multicast Ethernet frames getting forwarding to all my virtual guest in a KVM virtualised environment. 

Some information about ow the system's configure, ebtables and iptables are used for L2/L3 filtering. A virtual IP. (192.168.1.1) has a multicast MAC paired with it (03:11:11:11:11:11). 

Bridge networking has been setup i.e. shared physical device. So my interfaces are the bridge interface (br0) and multiple virtual interface for the guest (vnet0, vnet1, vnet2, etc.).

Here's a few articles I've been referring to for setting up my bridge: 
https://wiki.debian.org/BridgeNetworkConnections
http://wiki.libvirt.org/page/Networking

I've configured the kernel state to have arp/iptables ignore bridge traffic through changing the following fields
* bridge-nf-call-arptables
* bridge-nf-call-iptables
* bridge-nf-call-ip6tables
From my understanding and how I've configured the bridge, it should behave just like a switch, so I'd expect that multicast MAC address to be forwarded to all virtual interfaces by the bridge interface. However, only certain multicast frames are going through to the KVM guest such as Microsoft NLB packets, ARP and other types of multicast/broadcast traffic.  However, IP packets with the multicast MAC address is not getting forwarded.

Running a few test, I can see these IP packets (with the multicast Ethernet frame) arrive at the bridge interface but doesn't get forwarded to any of the virtual net interface. 

ebtables has been configured to filter by bridging, so it should be forwarding packets to the virtual interfaces based on MAC multicasting. In the brouting chain, I've left the policy ACCEPT which should be making decision on the link-layer.

Judging from what's happening, it might be possible they are being routed instead. Is there a way to see where  and what's happening to these packets? Which chains the packets are going from and what rules are being applied? Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bridging issues: Issues with IP packets with multicast MAC address
  2014-02-06  0:01 Bridging issues: Issues with IP packets with multicast MAC address Sophal Lee
@ 2014-02-07 19:22 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2014-02-07 19:22 UTC (permalink / raw)
  To: Sophal Lee; +Cc: netfilter@vger.kernel.org

On Thu, 6 Feb 2014 00:01:51 +0000
Sophal Lee <sophal@esolute.com> wrote:

> Hi 
> 
> I'm having issues with multicast Ethernet frames getting forwarding to all my virtual guest in a KVM virtualised environment. 
> 
> Some information about ow the system's configure, ebtables and iptables are used for L2/L3 filtering. A virtual IP. (192.168.1.1) has a multicast MAC paired with it (03:11:11:11:11:11). 
> 
> Bridge networking has been setup i.e. shared physical device. So my interfaces are the bridge interface (br0) and multiple virtual interface for the guest (vnet0, vnet1, vnet2, etc.).
> 
> Here's a few articles I've been referring to for setting up my bridge: 
> https://wiki.debian.org/BridgeNetworkConnections
> http://wiki.libvirt.org/page/Networking
> 
> I've configured the kernel state to have arp/iptables ignore bridge traffic through changing the following fields
> * bridge-nf-call-arptables
> * bridge-nf-call-iptables
> * bridge-nf-call-ip6tables
> From my understanding and how I've configured the bridge, it should behave just like a switch, so I'd expect that multicast MAC address to be forwarded to all virtual interfaces by the bridge interface. However, only certain multicast frames are going through to the KVM guest such as Microsoft NLB packets, ARP and other types of multicast/broadcast traffic.  However, IP packets with the multicast MAC address is not getting forwarded.
> 
> Running a few test, I can see these IP packets (with the multicast Ethernet frame) arrive at the bridge interface but doesn't get forwarded to any of the virtual net interface. 
> 
> ebtables has been configured to filter by bridging, so it should be forwarding packets to the virtual interfaces based on MAC multicasting. In the brouting chain, I've left the policy ACCEPT which should be making decision on the link-layer.
> 
> Judging from what's happening, it might be possible they are being routed instead. Is there a way to see where  and what's happening to these packets? Which chains the packets are going from and what rules are being applied? Thanks.

The bridge does IGMP snooping to filter multicast packets. What kernel version are you using?


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-07 19:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-06  0:01 Bridging issues: Issues with IP packets with multicast MAC address Sophal Lee
2014-02-07 19:22 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox