From 1a5e17f2a3c07a26bb90a229b5175a0a00543e19 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Wed, 9 Oct 2013 11:59:16 +1100 Subject: [PATCH] BF: use blocktype for iptables-ipset-proto6* --- config/action.d/iptables-ipset-proto4.conf | 9 ++++----- config/action.d/iptables-ipset-proto6-allports.conf | 4 ++-- config/action.d/iptables-ipset-proto6.conf | 9 ++------- 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/config/action.d/iptables-ipset-proto4.conf b/config/action.d/iptables-ipset-proto4.conf index 3ed778f9..9a445303 100644 --- a/config/action.d/iptables-ipset-proto4.conf +++ b/config/action.d/iptables-ipset-proto4.conf @@ -11,12 +11,11 @@ # IPset was a feature introduced in the linux kernel 2.6.39 and 3.0.0 kernels. # # If you are running on an older kernel you make need to patch in external -# modules. +# modules. Debian squeeze can do this with: +# apt-get install xtables-addons-source +# module-assistant auto-install xtables-addons # -# On Debian machines this can be done with: -# -# apt-get install ipset xtables-addons-source -# module-assistant auto-install xtables-addons +# Debian wheezy and above uses protocol 6 [INCLUDES] diff --git a/config/action.d/iptables-ipset-proto6-allports.conf b/config/action.d/iptables-ipset-proto6-allports.conf index ac3c8b56..933926e3 100644 --- a/config/action.d/iptables-ipset-proto6-allports.conf +++ b/config/action.d/iptables-ipset-proto6-allports.conf @@ -25,13 +25,13 @@ before = iptables-blocktype.conf # Values: CMD # actionstart = ipset create fail2ban- hash:ip timeout - iptables -I INPUT -m set --match-set fail2ban- src -j DROP + iptables -I INPUT -m set --match-set fail2ban- src -j # Option: actionstop # Notes.: command executed once at the end of Fail2Ban # Values: CMD # -actionstop = iptables -D INPUT -m set --match-set fail2ban- src -j DROP +actionstop = iptables -D INPUT -m set --match-set fail2ban- src -j ipset flush fail2ban- ipset destroy fail2ban- diff --git a/config/action.d/iptables-ipset-proto6.conf b/config/action.d/iptables-ipset-proto6.conf index 3cf9b140..4dfb1a62 100644 --- a/config/action.d/iptables-ipset-proto6.conf +++ b/config/action.d/iptables-ipset-proto6.conf @@ -12,11 +12,6 @@ # # If you are running on an older kernel you make need to patch in external # modules. -# -# On Debian machines this can be done with: -# -# apt-get install ipset xtables-addons-source -# module-assistant auto-install xtables-addons [INCLUDES] @@ -30,13 +25,13 @@ before = iptables-blocktype.conf # Values: CMD # actionstart = ipset create fail2ban- hash:ip timeout - iptables -I INPUT -p -m multiport --dports -m set --match-set fail2ban- src -j DROP + iptables -I INPUT -p -m multiport --dports -m set --match-set fail2ban- src -j # Option: actionstop # Notes.: command executed once at the end of Fail2Ban # Values: CMD # -actionstop = iptables -D INPUT -p -m multiport --dports -m set --match-set fail2ban- src -j DROP +actionstop = iptables -D INPUT -p -m multiport --dports -m set --match-set fail2ban- src -j ipset flush fail2ban- ipset destroy fail2ban-