#!/bin/sh
iptables -A OUTPUT -p udp -d 224.0.1.105/32 -j DROP -m comment --comment "Disable modcluster multicast"
iptables -A OUTPUT -p udp -d 230.0.0.4/32 -j DROP -m comment --comment "Disable jgroups-mping and jgroups-udp multicast"
iptables -A OUTPUT -p udp -d 231.7.7.7/32 -j DROP -m comment --comment "Disable messaging-group multicast"

iptables -A INPUT -p udp -d 224.0.1.105/32 -j DROP -m comment --comment "Disable modcluster multicast"
iptables -A INPUT -p udp -d 230.0.0.4/32 -j DROP -m comment --comment "Disable jgroups-mping and jgroups-udp multicast"
iptables -A INPUT -p udp -d 231.7.7.7/32 -j DROP -m comment --comment "Disable messaging-group multicast"

# Reset all
#iptables --policy INPUT   ACCEPT
#iptables --policy OUTPUT  ACCEPT
#iptables --policy FORWARD ACCEPT
#iptables -Z
#iptables -F
#iptables -X
