Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mrouted, bridge and iptables nat table
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Bircoph
Apprentice
Apprentice


Joined: 27 Jun 2008
Posts: 258
Location: Moscow

PostPosted: Tue Sep 27, 2011 7:11 pm    Post subject: mrouted, bridge and iptables nat table Reply with quote

Hello,

I have successfully setup a multicast router between multiple networks using mrouted,
but I need to implement some "advanced" features concerning multicast routing and I
struck with them.

1) I have a bridge interface br0 connected to mrouted. When there are subscribed
multicast users on this interface, I want mrouted to send multicasts only to those bridge
port(s) where these subscribers are, not to the whole br0 interface. How can I achieve this?

2) This is peculiar, but after mrouted is started, multicast packets do not traverse nat table
in the iptables (-j TRACE shows that nat table is not affected at all by multicasts after mrouted
was started). I want to do some fancy things there (and as to my knowledge ip source
mangling can't be done in any other table). So I need either to make multicast somehow
traverse the nat table, or mangle ip source in another place.
_________________
Per aspera ad astra!
Back to top
View user's profile Send private message
AngelKnight
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jan 2003
Posts: 118

PostPosted: Sun Oct 02, 2011 4:18 pm    Post subject: Re: mrouted, bridge and iptables nat table Reply with quote

Bircoph wrote:
Hello,

I have successfully setup a multicast router between multiple networks using mrouted,
but I need to implement some "advanced" features concerning multicast routing and I
struck with them.

1) I have a bridge interface br0 connected to mrouted. When there are subscribed
multicast users on this interface, I want mrouted to send multicasts only to those bridge
port(s) where these subscribers are, not to the whole br0 interface. How can I achieve this?


CONFIG_BRIDGE_IGMP_SNOOPING

Bircoph wrote:
2) This is peculiar, but after mrouted is started, multicast packets do not traverse nat table
in the iptables (-j TRACE shows that nat table is not affected at all by multicasts after mrouted
was started). I want to do some fancy things there (and as to my knowledge ip source
mangling can't be done in any other table). So I need either to make multicast somehow
traverse the nat table, or mangle ip source in another place.


Not sure about this bit, maybe someone else has a better idea. Perhaps Linux Advanced Routing and Traffic Control can shed some light?
Back to top
View user's profile Send private message
Bircoph
Apprentice
Apprentice


Joined: 27 Jun 2008
Posts: 258
Location: Moscow

PostPosted: Sun Oct 02, 2011 5:51 pm    Post subject: Re: mrouted, bridge and iptables nat table Reply with quote

AngelKnight wrote:

CONFIG_BRIDGE_IGMP_SNOOPING

It was already enabled:
Code:

CONFIG_BRIDGE_IGMP_SNOOPING=y

but nevertheless tcpdump shows what I wrote before.

Quote:

Not sure about this bit, maybe someone else has a better idea. Perhaps Linux Advanced Routing and Traffic Control can shed some light?

Oh, no. This is the first document I started to read when I was curious about multicast. And it is extremely poor about multicast (but good in other subjects).
_________________
Per aspera ad astra!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum