My bad. Thanks
@cc_rider then
Just in case someone else reads this in the future, this is what I did to make it work. For reference, I'm using a series of scripts in AsusWRT Merlin to make the Vlan work across multiple routers
https://www.snbforums.com/threads/rt-ac68u-guest-networks-in-ap-mode-using-vlan-and-iptables.64172/
My main network is br0, IoT vlan is br1. WiiM uses fixed IP 192.168.20.170
Must add avahi-daemon.conf.add file to /jffs/configs to change the avahi configuration and enable the redirector. AsusWRT Merlin already enables Avahi, btw.
Code:
admin@RT-AC68U-7BA8:/tmp/home/root# cat /jffs/configs/avahi-daemon.conf.add
[reflector]
enable-reflector=yes
Then add the ability for devices on the main LAN to access WiiM and finally allow multicast to work across vlans (br0 and br1). I'm using a script in /jffs/scripts/firewall-start and added
Code:
# WiiM configuration begins
# make WiiM reachable from LAN (one way)
iptables -D FORWARD -i br0 -o br1 -d 192.168.20.170 -j ACCEPT >/dev/null 2>&1
iptables -I FORWARD -i br0 -o br1 -d 192.168.20.170 -j ACCEPT
# forward multicast on port 5353 between networks
iptables -D INPUT -i br1 -p udp -m multiport --dport 5353 -j ACCEPT >/dev/null 2>&1
iptables -I INPUT -i br1 -p udp -m multiport --dport 5353 -j ACCEPT
iptables -D INPUT -i br1 -p tcp -m multiport --dport 5353 -j ACCEPT >/dev/null 2>&1
iptables -I INPUT -i br1 -p tcp -m multiport --dport 5353 -j ACCEPT
#end WiiM configuration
I'm deleting the rule from iptables in case firewall-start is called once more, to avoid problems (the -D lines)
I can now use the WiiM app on the main lan controlling WiiM on the IoT network.