Hello,
i'm using a BPI-R3 with OpenWrt 23.05.2.
I'm trying to view my ISP's iptv network stream in VLC.
So I installed igmpproxy as explained here
Unfortunately it doesn't work. I was told that this string should work in VLC rtp://233.136.0.202:7500/202 and it doesn't.
So here is my configuration :
/etc/config/igmpproxy :
config igmpproxy
option quickleave 1
option verbose 3
config phyint
option network wan
option zone wan
option direction upstream
list altnet 0.0.0.0/0
config phyint
option network lan
option zone lan
option direction downstream
/etc/config/network :
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'sfp2'
config interface 'lan'
option device 'br-lan'
option igmp_snooping 1
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
as you can see option type 'bridge' is not set in the interface lan but in the device, not sure sure if it changes something, but as the tutorial said to add the option igmp_snooping 1 in lan I've done as they say.
also i can see this in the tutorial :
In older versions of igmpproxy it used to require firewall rules. However current versions insert the rules automatically during start-up of the igmpproxy daemon
unfortunately, i don't see any rule added in the firewall...is it because I have firewall4 so nftables?
i can see this in my logs : can't join group 233.136.0.202 on interface br-wan; Errno(98): Address in use
Sat Jun 1 13:23:52 2024 user.notice igmpproxy[7039]: RECV Membership query from 192.168.1.1 to 233.136.0.202
Sat Jun 1 13:23:52 2024 user.notice igmpproxy[7039]: RECV V2 member report from 192.168.1.10 to 233.136.0.202
Sat Jun 1 13:23:52 2024 user.debug igmpproxy[7039]: Should insert group 233.136.0.202 (from: 192.168.1.10) to route table. Vif Ix : 0
Sat Jun 1 13:23:52 2024 user.info igmpproxy[7039]: Updated route entry for 233.136.0.202 on VIF #0
Sat Jun 1 13:23:52 2024 user.debug igmpproxy[7039]: Joining group 233.136.0.202 upstream on IF address 192.168.20.1
Sat Jun 1 13:23:52 2024 user.notice igmpproxy[7039]: Joining group 233.136.0.202 on interface br-wan
Sat Jun 1 13:23:52 2024 user.warn igmpproxy[7039]: can't join group 233.136.0.202 on interface br-wan; Errno(98): Address in use
Sat Jun 1 13:23:52 2024 user.debug igmpproxy[7039]: Joining group 233.136.0.202 upstream on IF address 93.22.XX.XX
Sat Jun 1 13:23:52 2024 user.notice igmpproxy[7039]: Joining group 233.136.0.202 on interface br-wan
Sat Jun 1 13:23:52 2024 user.warn igmpproxy[7039]: can't join group 233.136.0.202 on interface br-wan; Errno(98): Address in use
in other words, without this command, multicast traffic doesn't arrive in the right vlan.
Maybe @minhng99 in case you're still interested in the reason for this problem
if you look at : /etc/init.d/omcid.sh
then you'll see this code that manipulates this variable
tmp=`fw_printenv omci_iop_mask 2>&- | cut -f2 -d=`
if [ -n "$tmp" ]; then
omci_iop_mask=$tmp
else
config_get omci_iop_mask "default" "omci_iop_mask" 0
fi