summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerg G. Brester <github@sebres.de>2017-08-09 15:54:57 +0200
committerGitHub <noreply@github.com>2017-08-09 15:54:57 +0200
commit5b7375c614294816ecf2917ab80e102c5449e350 (patch)
treea02f658306684d5507d0816f414fb7809f6d7f41
parent9a3716465bf57cdc6924ea752e48b2a3cdefc71c (diff)
parent3adc16d266627eb3ed27db172845786f5440a635 (diff)
downloadfail2ban-5b7375c614294816ecf2917ab80e102c5449e350.tar.gz
Merge pull request #1638 from roedie/shorewall-ipv6
Add shorewall IPv6 support
-rw-r--r--config/action.d/shorewall.conf18
1 files changed, 16 insertions, 2 deletions
diff --git a/config/action.d/shorewall.conf b/config/action.d/shorewall.conf
index f5f2c775..282b95af 100644
--- a/config/action.d/shorewall.conf
+++ b/config/action.d/shorewall.conf
@@ -40,7 +40,7 @@ actioncheck =
# Tags: See jail.conf(5) man page
# Values: CMD
#
-actionban = shorewall <blocktype> <ip>
+actionban = shorewall<family> <blocktype> <ip>
# Option: actionunban
# Notes.: command executed when unbanning an IP. Take care that the
@@ -48,12 +48,26 @@ actionban = shorewall <blocktype> <ip>
# Tags: See jail.conf(5) man page
# Values: CMD
#
-actionunban = shorewall allow <ip>
+actionunban = shorewall<family> allow <ip>
+
[Init]
+# Option: family
+# Note: Control which version of command is executed
+# Values: Empty or 6 in case of IPv6
+family =
+
# Option: blocktype
# Note: This is what the action does with rules.
# See man page of shorewall for options that include drop, logdrop, reject, or logreject
# Values: STRING
blocktype = reject
+
+[Init?family=inet6]
+
+# Option: family
+# Note: Control which version of command is executed
+# Values: Empty or 6 in case of IPv6
+family = 6
+