#/00210
#----------------------------------------------------------------------
# ICMP

# (4) Source_Quench
#            

$IPTABLES -t filter -A FORWARD -o $INTERFACE -p icmp --src $PARAM1 --icmp-type 4 --dst $PARAM2 -j ACCEPT
$IPTABLES -t filter -A FORWARD -i $INTERFACE -p icmp --src $PARAM2 --icmp-type 4 --dst $PARAM1 -j ACCEPT

# (12) Parameter_Problem
#           

$IPTABLES -t filter -A FORWARD -o $INTERFACE -p icmp --src $PARAM1 --icmp-type 12 --dst $PARAM2 -j ACCEPT
$IPTABLES -t filter -A FORWARD -i $INTERFACE -p icmp --src $PARAM2 --icmp-type 12 --dst $PARAM1 -j ACCEPT

# (3) Dest_Unreachable, Service_Unavailable
#        ,  
#      ;   ,  
#       ;  traceroute

$IPTABLES -t filter -A FORWARD -o $INTERFACE -p icmp --src $PARAM1 --icmp-type 3 --dst $PARAM2 -j ACCEPT
$IPTABLES -t filter -A FORWARD -o $INTERFACE -p icmp --src $PARAM1 --icmp-type fragmentation-needed --dst $PARAM2 -j ACCEPT 

$IPTABLES -t filter -A FORWARD -i $TEMP_INTERFACE -p icmp --src $PARAM2 --icmp-type 3 --dst $PARAM1 -j ACCEPT
$IPTABLES -t filter -A FORWARD -i $TEMP_INTERFACE -p icmp --src $PARAM2 --icmp-type fragmentation-needed --dst $PARAM1 -j ACCEPT 

# (11) Time_Exceeded
#           -,
#        TTL- traceroute

$IPTABLES -t filter -A FORWARD -o $TEMP_INTERFACE -p icmp --src $PARAM1 --icmp-type 11 --dst $PARAM2 -j ACCEPT
$IPTABLES -t filter -A FORWARD -i $TEMP_INTERFACE -p icmp --src $PARAM2 --icmp-type 11 --dst $PARAM1 -j ACCEPT

