OPNsense Forum

English Forums => General Discussion => Topic started by: zone42 on September 30, 2021, 10:16:28 pm

Title: SSDP Multicast vs. Bridge interface
Post by: zone42 on September 30, 2021, 10:16:28 pm
I've set up a bridge interface with three members (one eth, two wifi interfaces).

Code: [Select]
ath0_wlan1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 04:f0:21:2e:5d:a8
        inet6 fe80::6f0:21ff:fe2e:5da8%ath0_wlan1 prefixlen 64 scopeid 0x8
        groups: wlan
        ...
        status: running
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
ath1_wlan1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 04:f0:21:2e:5d:1c
        inet6 fe80::6f0:21ff:fe2e:5d1c%ath1_wlan1 prefixlen 64 scopeid 0x9
        groups: wlan
        ...
        status: running
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
igb0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8520b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO>
        ether 00:0d:b9:55:fa:8c
        inet6 fe80::20d:b9ff:fe55:fa8c%igb0 prefixlen 64 scopeid 0x1
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 02:02:e6:60:06:00
        inet 172.16.100.129 netmask 0xffffff00 broadcast 172.16.100.255
        inet6 2001:bf0:c080:403:: prefixlen 64
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        member: ath1_wlan1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 9 priority 128 path cost 33333
        member: ath0_wlan1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 8 priority 128 path cost 33333
        member: igb0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 1 priority 128 path cost 20000
        groups: bridge
        nd6 options=1<PERFORMNUD>

Unfortunatly SSDP multicast messages (255.255.255.250 udp/1900) are not forwarded between the member interfaces.  :(

Is there a special setting/tunable needed for this?
Title: Re: SSDP Multicast vs. Bridge interface
Post by: cookiemonster on October 01, 2021, 05:36:23 pm
I am really not sure as I don't have this setup but you might want to see if you need to use the igmp proxy relay plugin.
Title: Re: SSDP Multicast vs. Bridge interface
Post by: zone42 on October 03, 2021, 09:39:03 am
IGMPproxy is a simple mulitcast router. But bridge0 is just one interface.

So this can't be the solution.
Title: Re: SSDP Multicast vs. Bridge interface
Post by: zone42 on October 03, 2021, 05:07:55 pm
The problem seems to be similiar like in this older post: https://forum.netgate.com/topic/11349/upnp-bridged-interfaces/5

Unfortunately that thread ended without a solution.  :(
Title: Re: SSDP Multicast vs. Bridge interface
Post by: zone42 on October 04, 2021, 03:08:02 pm
May be this bug: https://bugs.freebsd.org/bugzilla//show_bug.cgi?id=243554 ?
Title: Re: SSDP Multicast vs. Bridge interface
Post by: zone42 on October 04, 2021, 10:28:42 pm
I think I found a clue after doing some sniffing on the affected interfaces.

SSDP NOTIFY multicast messages sent on the igb0 interface are apparently subject NAT. They arrive on the athX_wlan1 interfaces with the sender address of the WAN uplink.

However, the NAT rule for this network is an automatically generated one.

Presumably, the NAT is performed because the multicast address 239.255.255.250 does not clearly belong to the broadcast network of bridge0.

So the question is probably: How can this NAT be prevented?



Title: Re: SSDP Multicast vs. Bridge interface
Post by: Patrick M. Hausen on October 04, 2021, 10:32:44 pm
Switch NAT to "manual" and configure everything manually. ;)
Title: [SOLVED] Re: SSDP Multicast vs. Bridge interface
Post by: zone42 on October 15, 2021, 10:57:12 am
It's not pretty, but it works.  ;)
Title: Re: SSDP Multicast vs. Bridge interface
Post by: DesruX on January 01, 2023, 02:36:18 pm
Switch NAT to "manual" and configure everything manually. ;)

I think I have a similar issue. Multicast not propagating across my "LAN" network bridge.

how would a manual NAT configuration look like? :)