summaryrefslogtreecommitdiff
path: root/config/action.d
diff options
context:
space:
mode:
authorroedie <github@roedie.nl>2016-12-12 20:53:58 +0100
committerroedie <github@roedie.nl>2016-12-12 20:53:58 +0100
commit3adc16d266627eb3ed27db172845786f5440a635 (patch)
tree1ecf921f3258eee470b73df9f1a59ec394c89e3d /config/action.d
parent6e18508a07f69fe47f30a1ec7789ba59e23a8101 (diff)
downloadfail2ban-3adc16d266627eb3ed27db172845786f5440a635.tar.gz
Shorewall IPv6 suggested changes.
Change files as suggested by sebres.
Diffstat (limited to 'config/action.d')
-rw-r--r--config/action.d/shorewall.conf39
1 files changed, 14 insertions, 25 deletions
diff --git a/config/action.d/shorewall.conf b/config/action.d/shorewall.conf
index b5532c8a..282b95af 100644
--- a/config/action.d/shorewall.conf
+++ b/config/action.d/shorewall.conf
@@ -34,15 +34,13 @@ actionstop =
#
actioncheck =
-[Init]
-
# Option: actionban
# Notes.: command executed when banning an IP. Take care that the
# command is executed with Fail2Ban user rights.
# 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
@@ -50,7 +48,15 @@ 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.
@@ -60,25 +66,8 @@ blocktype = reject
[Init?family=inet6]
-# Option: actionban
-# Notes.: command executed when banning an IP. Take care that the
-# command is executed with Fail2Ban user rights.
-# Tags: See jail.conf(5) man page
-# Values: CMD
-#
-actionban = shorewall6 <blocktype> <ip>
-
-# Option: actionunban
-# Notes.: command executed when unbanning an IP. Take care that the
-# command is executed with Fail2Ban user rights.
-# Tags: See jail.conf(5) man page
-# Values: CMD
-#
-actionunban = shorewall6 allow <ip>
-
-# Option: blocktype
-# Note: This is what the action does with rules.
-# See man page of shorewall6 for options that include drop, logdrop, reject, or logreject
-# Values: STRING
-blocktype = reject
+# Option: family
+# Note: Control which version of command is executed
+# Values: Empty or 6 in case of IPv6
+family = 6