【发布时间】:2016-04-17 19:56:52
【问题描述】:
我正在一台设备上运行 openwrt,并且有一个 python 脚本可以监听并打印 239.2.1.1 上的屏幕多播流量。
但是屏幕上没有打印任何内容,我相信这是防火墙问题。 如何确保在运行 openwrt 的 lan 接口上允许多播流量?
【问题讨论】:
标签: linux multicast multicastsocket
我正在一台设备上运行 openwrt,并且有一个 python 脚本可以监听并打印 239.2.1.1 上的屏幕多播流量。
但是屏幕上没有打印任何内容,我相信这是防火墙问题。 如何确保在运行 openwrt 的 lan 接口上允许多播流量?
【问题讨论】:
标签: linux multicast multicastsocket
我知道这有点晚了,但我想它会对仍在寻找答案的人有所帮助。
安装 IGMPProxy
install igmpproxy
make menuconfig
-> Network
-> Routing and Redirection
在 bin 文件夹中查找包
AR9331 hardware:- bin/ar71xx/packages/base/igmpproxy_0.1-9_ar71xx.ipk
copy the ipk to openwrt router.
opkg install igmpproxy
/etc/init.d/igmpproxy start
确保您在/etc/config/firewall 中获得此部分
config rule
option name Allow-IGMP
option src wan
option proto igmp
option family ipv4
option target ACCEPT
确保您在 /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
在网络配置中确保以下内容
In /etc/config/igmpproxy
config interface lan
option igmp_snooping 1
也在 br-lan 中启用
echo "0" > /sys/devices/virtual/net/br-lan/bridge/multicast_snooping
【讨论】: