Omcproxy crashes in loop

Hello,

I was using mcproxy in order to proxy broadcast between IOT network (br-lan.30) and LAN network (br-lan.10). I am using the proxy for SSPD in DLNA (on 239.255.255.250:1900)
Since I am on OpenWrt SNAPSHOT, when I tried to update my system I discovered that mcproxy was not available anymore. So I decide to migrate to omcproxy. I have configured omcproxy but it crashes in loop and stop.

This was my old mcproxy configuration:

# Use your own MCProxy config file
config mcproxy 'mcproxy_file'
	option disabled '1'
	option respawn '1'
	option file '/etc/mcproxy.conf'

# Use OpenWrt UCI config
config mcproxy 'mcproxy'
	option disabled '0'
	option respawn '1'
	option protocol 'IGMPv3'

###########################################

config instance
	option disabled '0'
	option name 'proxy1'
	list upstream 'br-lan.30'
	list downstream 'br-lan.10'

config instance
	option disabled '0'
	option name 'proxy2'
	list upstream 'br-lan.10'
	list downstream 'br-lan.30'

This was my omcproxy configuration:

config proxy
	option uplink 'IOT'
	option downlink 'lan'

config proxy
	option uplink 'lan'
	option downlink 'IOT'

These are the errors messages

Thu Oct 31 09:27:07 2024 kern.info kernel: [ 4961.012082] br-lan.30: entered allmulticast mode
Thu Oct 31 09:27:07 2024 kern.info kernel: [ 4961.016712] br-lan: entered allmulticast mode
Thu Oct 31 09:27:07 2024 kern.info kernel: [ 4961.021335] br-lan.10: entered allmulticast mode
Thu Oct 31 09:27:07 2024 kern.info kernel: [ 4961.026155] br-lan.30: left allmulticast mode
Thu Oct 31 09:27:07 2024 kern.info kernel: [ 4961.030505] br-lan.10: left allmulticast mode
Thu Oct 31 09:27:07 2024 kern.info kernel: [ 4961.034860] br-lan: left allmulticast mode
Thu Oct 31 09:27:07 2024 daemon.info procd: Instance omcproxy::instance1 s in a crash loop 7 crashes, 1 seconds since last crash

What am I missing ? Also I tried to only use the first proxy but I never get the result back so it doesn't work.

If I tried to run omcproxy manually I get a segmentation fault

root@OpenWrt:~# /usr/sbin/omcproxy -v "br-lan.30,br-lan.10" "br-lan.10,br-lan.30"
Segmentation fault

Okay, so there is a bug in omcproxy that causes the segmentation fault. It has been fixed in this PR https://github.com/openwrt/omcproxy/pull/10

I tried it and it works. But seems the project seems dead, I instead use smcroute.

I follow the instructions here [How To] Cast to a LG TV in another VLAN with fw4 (ssdp and a bit of mdns)

The only change between smcroute and mcproxy is that I had to add a rule in firewall to increase the ttl of the broadcast packages.

Hope this help

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.