Linux マシンでのマルチキャスト・ブロードキャストの許可

Linux マシン上のサーバー間で ehcache が正常に同期されるようにするには、マルチキャスト・ブロードキャストを実行できるようにする必要があります。

iptables -list コマンドを実行します。 マルチキャスト・ブロードキャストが許可されている場合、次のようなメッセージが表示されます。

...
ACCEPT     all  --  anywhere             anywhere            PKTTYPE = multicast
...  

マルチキャスト・ブロードキャストが許可されていない場合は、以下を実行して許可します。

$ iptables -A INPUT -m pkttype --pkt-type multicast -j ACCEPT
$ service iptables save

このコマンドは次のようになります。

./iptables -I <rule_name> <position_in_rule> -m pkttype --pkt-type multicast -j ACCEPT

例:

iptables -I RH-Firewall-1-INPUT 26 -m pkttype --pkt-type multicast -j ACCEPT

ehcache メカニズム:

- Displaying the current configuration:
   ./etc/rc.d/init.d/iptables status
      oder
   iptables -list
- Add / Grant multicast traffic:
   iptables -A INPUT -m pkttype --pkt-type multicast -j ACCEPT
      oder
   iptables -A INPUT -m pkttype --pkt-type multicast -j ACCEPT
      oder
   vi /etc/sysconfig/iptables
      oder
   iptables -I RH-Firewall-1-INPUT 33 -m pkttype --pkt-type multicast -j ACCEPT
- Permanently save this firewall configuration:
   service iptables save
      oder
   ./etc/rc.d/init.d/iptables save



最終更新: 12 Mar 2019