summaryrefslogtreecommitdiffstats
path: root/Bash
diff options
context:
space:
mode:
Diffstat (limited to 'Bash')
-rwxr-xr-xBash/iptables-whiteblacklisting.sh5
1 files 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