2002-05-01 01:13:15 +02:00
|
|
|
##############################################################################
|
2002-05-18 15:45:23 +02:00
|
|
|
# Shorewall 1.3 /etc/shorewall/icmp.def
|
2002-05-01 01:13:15 +02:00
|
|
|
#
|
|
|
|
# This file defines the default rules for accepting ICMP packets.
|
|
|
|
#
|
2002-05-30 14:55:47 +02:00
|
|
|
# Do not modify this file -- if you wish to change these rules, create
|
|
|
|
# /etc/shorewall/icmpdef to replace it. It is suggested that you include
|
|
|
|
# the command "source /etc/shorewall/icmp.def" in your
|
|
|
|
# /etc/shorewall/icmpdef file so that you will continue to get the
|
|
|
|
# advantage of new releases of this file.
|
2002-05-01 01:13:15 +02:00
|
|
|
#
|
2002-05-30 14:55:47 +02:00
|
|
|
# For example, if you want to accept 'ping' everywhere then create
|
|
|
|
# /etc/shorewall/icmpdef with the following two lines:
|
2002-05-01 01:13:15 +02:00
|
|
|
#
|
2002-05-30 14:55:47 +02:00
|
|
|
# source /etc/shorewall/icmp.def
|
2002-05-01 01:13:15 +02:00
|
|
|
# run_iptables -A icmpdef -p ICMP --icmp-type echo-request -j ACCEPT
|
|
|
|
#
|
|
|
|
run_iptables -A icmpdef -p ICMP --icmp-type echo-reply -j ACCEPT
|
|
|
|
run_iptables -A icmpdef -p ICMP --icmp-type source-quench -j ACCEPT
|
|
|
|
run_iptables -A icmpdef -p ICMP --icmp-type destination-unreachable -j ACCEPT
|
|
|
|
run_iptables -A icmpdef -p ICMP --icmp-type time-exceeded -j ACCEPT
|
|
|
|
run_iptables -A icmpdef -p ICMP --icmp-type parameter-problem -j ACCEPT
|