From a477f549fa8c1d3a0f53f1b24b58de68809ab48c Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sat, 30 Jan 2016 15:19:14 +0100 Subject: Additional rule for ICMPv6 added --- Bash/iptables-whiteblacklisting.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Bash/iptables-whiteblacklisting.sh b/Bash/iptables-whiteblacklisting.sh index b383f5b..a34757d 100755 --- a/Bash/iptables-whiteblacklisting.sh +++ b/Bash/iptables-whiteblacklisting.sh @@ -64,9 +64,10 @@ IPTABLES --policy INPUT ACCEPT IPTABLES --flush INPUT #=============================================================================== -# Ping requests over ICMP protocol are always accepted +# Ping requests over ICMP and ICMPv6 protocol are always accepted #=============================================================================== -IPTABLES --append INPUT --protocol icmp --jump ACCEPT +${IPTABLES_V4} --append INPUT --protocol icmp --jump ACCEPT +${IPTABLES_V6} --append INPUT --protocol icmpv6 --jump ACCEPT #=============================================================================== # Local loopback connections are also always accepted -- cgit v1.2.3