I have 2 PCs which are linked by cables directly .PC1 address:10.10.10.1 , PC2 address:192.168.3.1 . Their firewalls have been shut down. PC1 is a stream server , sending multicast video to 184.108.40.206:1234 with VLC media player .PC2 could recieve and watch the video perfectly .
Now I have a router between PC1 and PC2 . The router is running LEDE 17.01.
Router's wan port is linked to PC1 ,lan port is linked to PC2.Router's lan IP is 192.168.1.1/24
And I changed the IP of PC2 to DHCP client mode.
According to this article : https://wiki.openwrt.org/doc/howto/udp_multicast
Install igmpproxy , /etc/config/igmpproxy:
config igmpproxy option quickleave 1 config phyint option network wan option direction upstream list altnet 0.0.0.0/0 config phyint option network lan option direction downstream
Enable IGMP snooping on LAN interface:
config interface 'lan' option type 'bridge' option ifname 'eth0.1' option proto 'static' option ipaddr '192.168.1.1' option netmask '255.255.255.0' option ip6assign '60' option igmp_snooping '1'
Set firewall rules:
config rule option src wan option proto igmp option target ACCEPT config rule option src wan option proto udp option dest lan option dest_ip 220.127.116.11/4 option target ACCEPT option family ipv4
Force IGMP version:
Add to "net.ipv4.conf.all.force_igmp_version=2" to /etc/sysctl.conf
After all these things done and igmproxy running, I cannot watch the stream video.At first I thought it was about IP address , then I changed IP of PC1 and Routers'wan to a same subnet , the issue still.
Using "ifconfig" to see RX/TX bytes count of eth0.2 (wan) ,it was confirmed that the stream was already recieved by the router. But don't know why the stream was not forwarded to lan?