若無特別設定,iptables是不開放Multicast,開放方法如下

$iptables -A INPUT -m addrtype --dst-type MULTICAST -j ACCEPT
這個命令的意思是對接受所有目標位址是MULTICAST位址的請求
如果不行的話,檢查下iptables規則清單:
$iptables -L -n --line-numbers
如果在chain input裡有一行:
8 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
我們要保證MULTICAST的規則在這一條前面,比如插入到第7行:
iptables -I INPUT 7 -m addrtype --dst-type MULTICAST -j ACCEPT


另外一個辦法是直接改/etc/sysconfig/iptables,插入一行:
-A INPUT -m addrtype --dst-type MULTICAST -j ACCEPT
然後
$service iptables restart

 

arrow
arrow
    文章標籤
    iptables multicast
    全站熱搜

    痞客興 發表在 痞客邦 留言(0) 人氣()