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