mirror of https://github.com/fail2ban/fail2ban
* Synchronized action.d/iptables-* rules from upstream SVN (closes:
#407561) * Minor: options renames in the comments to be in sync with upstreampull/3/head
parent
e3102eb28a
commit
878fa0dedd
|
@ -66,7 +66,7 @@ actionstop = iptables -D <fwchain> -j <whitelist>
|
||||||
iptables -D <fwchain> -m state --state NEW -p <protocol> --dport <port> -j fail2ban-<name>
|
iptables -D <fwchain> -m state --state NEW -p <protocol> --dport <port> -j fail2ban-<name>
|
||||||
iptables -F fail2ban-<name>
|
iptables -F fail2ban-<name>
|
||||||
iptables -X fail2ban-<name>
|
iptables -X fail2ban-<name>
|
||||||
actioncheck = iptables -L <fwchain> | grep -q fail2ban-<name>
|
actioncheck = iptables -n -L <fwchain> | grep -q fail2ban-<name>
|
||||||
actionban = iptables -I fail2ban-<name> 1 -s <ip> -j DROP
|
actionban = iptables -I fail2ban-<name> 1 -s <ip> -j DROP
|
||||||
actionunban = iptables -D fail2ban-<name> -s <ip> -j DROP
|
actionunban = iptables -D fail2ban-<name> -s <ip> -j DROP
|
||||||
[Init]
|
[Init]
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
fail2ban (0.7.6-3) unstable; urgency=low
|
||||||
|
|
||||||
|
* Synchronized action.d/iptables-* rules from upstream SVN (closes:
|
||||||
|
#407561)
|
||||||
|
* Minor: options renames in the comments to be in sync with upstream
|
||||||
|
|
||||||
|
-- Yaroslav Halchenko <debian@onerussian.com> Fri, 19 Jan 2007 10:43:59 -0500
|
||||||
|
|
||||||
fail2ban (0.7.6-2) unstable; urgency=low
|
fail2ban (0.7.6-2) unstable; urgency=low
|
||||||
|
|
||||||
* iptables-multiport is default action to take since Debian kernel arrives
|
* iptables-multiport is default action to take since Debian kernel arrives
|
||||||
|
|
|
@ -1,24 +1,24 @@
|
||||||
#! /bin/sh /usr/share/dpatch/dpatch-run
|
#! /bin/sh /usr/share/dpatch/dpatch-run
|
||||||
## 00_iptables-mports.dpatch by Yaroslav Halchenko <debian@onerussian.com>
|
## 00_iptables_mports.dpatch by Yaroslav Halchenko <debian@onerussian.com>
|
||||||
##
|
##
|
||||||
## All lines beginning with `## DP:' are a description of the patch.
|
## All lines beginning with `## DP:' are a description of the patch.
|
||||||
## DP: No description.
|
## DP: No description.
|
||||||
|
|
||||||
@DPATCH@
|
@DPATCH@
|
||||||
diff -urNad fail2ban-0.7.5~/config/action.d/iptables-multiport.conf fail2ban-0.7.5/config/action.d/iptables-multiport.conf
|
diff -urNad fail2ban-0.7.6~/config/action.d/iptables-multiport.conf fail2ban-0.7.6/config/action.d/iptables-multiport.conf
|
||||||
--- fail2ban-0.7.5~/config/action.d/iptables-multiport.conf 1969-12-31 19:00:00.000000000 -0500
|
--- fail2ban-0.7.6~/config/action.d/iptables-multiport.conf 1969-12-31 19:00:00.000000000 -0500
|
||||||
+++ fail2ban-0.7.5/config/action.d/iptables-multiport.conf 2007-01-04 12:28:46.000000000 -0500
|
+++ fail2ban-0.7.6/config/action.d/iptables-multiport.conf 2007-01-19 10:40:54.000000000 -0500
|
||||||
@@ -0,0 +1,69 @@
|
@@ -0,0 +1,69 @@
|
||||||
+# Fail2Ban configuration file
|
+# Fail2Ban configuration file
|
||||||
+#
|
+#
|
||||||
+# Author: Cyril Jaquier
|
+# Author: Cyril Jaquier
|
||||||
+# Modified by Yaroslav Halchenko for multiport banning
|
+# Modified by Yaroslav Halchenko for multiport banning
|
||||||
+# $Revision: 455 $
|
+# $Revision: 520 $
|
||||||
+#
|
+#
|
||||||
+
|
+
|
||||||
+[Definition]
|
+[Definition]
|
||||||
+
|
+
|
||||||
+# Option: fwstart
|
+# Option: actionstart
|
||||||
+# Notes.: command executed once at the start of Fail2Ban.
|
+# Notes.: command executed once at the start of Fail2Ban.
|
||||||
+# Values: CMD
|
+# Values: CMD
|
||||||
+#
|
+#
|
||||||
|
@ -26,7 +26,7 @@ diff -urNad fail2ban-0.7.5~/config/action.d/iptables-multiport.conf fail2ban-0.7
|
||||||
+ iptables -A fail2ban-<name> -j RETURN
|
+ iptables -A fail2ban-<name> -j RETURN
|
||||||
+ iptables -I INPUT -p <protocol> -m multiport --dports <port> -j fail2ban-<name>
|
+ iptables -I INPUT -p <protocol> -m multiport --dports <port> -j fail2ban-<name>
|
||||||
+
|
+
|
||||||
+# Option: fwend
|
+# Option: actionend
|
||||||
+# Notes.: command executed once at the end of Fail2Ban
|
+# Notes.: command executed once at the end of Fail2Ban
|
||||||
+# Values: CMD
|
+# Values: CMD
|
||||||
+#
|
+#
|
||||||
|
@ -34,13 +34,13 @@ diff -urNad fail2ban-0.7.5~/config/action.d/iptables-multiport.conf fail2ban-0.7
|
||||||
+ iptables -F fail2ban-<name>
|
+ iptables -F fail2ban-<name>
|
||||||
+ iptables -X fail2ban-<name>
|
+ iptables -X fail2ban-<name>
|
||||||
+
|
+
|
||||||
+# Option: fwcheck
|
+# Option: actioncheck
|
||||||
+# Notes.: command executed once before each fwban command
|
+# Notes.: command executed once before each actionban command
|
||||||
+# Values: CMD
|
+# Values: CMD
|
||||||
+#
|
+#
|
||||||
+actioncheck = iptables -L INPUT | grep -q fail2ban-<name>
|
+actioncheck = iptables -n -L INPUT | grep -q fail2ban-<name>
|
||||||
+
|
+
|
||||||
+# Option: fwban
|
+# Option: actionban
|
||||||
+# Notes.: command executed when banning an IP. Take care that the
|
+# Notes.: command executed when banning an IP. Take care that the
|
||||||
+# command is executed with Fail2Ban user rights.
|
+# command is executed with Fail2Ban user rights.
|
||||||
+# Tags: <ip> IP address
|
+# Tags: <ip> IP address
|
||||||
|
@ -50,7 +50,7 @@ diff -urNad fail2ban-0.7.5~/config/action.d/iptables-multiport.conf fail2ban-0.7
|
||||||
+#
|
+#
|
||||||
+actionban = iptables -I fail2ban-<name> 1 -s <ip> -j DROP
|
+actionban = iptables -I fail2ban-<name> 1 -s <ip> -j DROP
|
||||||
+
|
+
|
||||||
+# Option: fwunban
|
+# Option: actionunban
|
||||||
+# Notes.: command executed when unbanning an IP. Take care that the
|
+# Notes.: command executed when unbanning an IP. Take care that the
|
||||||
+# command is executed with Fail2Ban user rights.
|
+# command is executed with Fail2Ban user rights.
|
||||||
+# Tags: <ip> IP address
|
+# Tags: <ip> IP address
|
||||||
|
|
|
@ -5,22 +5,22 @@
|
||||||
## DP: No description.
|
## DP: No description.
|
||||||
|
|
||||||
@DPATCH@
|
@DPATCH@
|
||||||
diff -urNad fail2ban-0.7.4~/config/action.d/iptables-new.conf fail2ban-0.7.4/config/action.d/iptables-new.conf
|
diff -urNad fail2ban-0.7.6~/config/action.d/iptables-new.conf fail2ban-0.7.6/config/action.d/iptables-new.conf
|
||||||
--- fail2ban-0.7.4~/config/action.d/iptables-new.conf 1969-12-31 19:00:00.000000000 -0500
|
--- fail2ban-0.7.6~/config/action.d/iptables-new.conf 1969-12-31 19:00:00.000000000 -0500
|
||||||
+++ fail2ban-0.7.4/config/action.d/iptables-new.conf 2006-11-10 18:01:27.000000000 -0500
|
+++ fail2ban-0.7.6/config/action.d/iptables-new.conf 2007-01-19 10:40:28.000000000 -0500
|
||||||
@@ -0,0 +1,72 @@
|
@@ -0,0 +1,71 @@
|
||||||
+# Fail2Ban configuration file
|
+# Fail2Ban configuration file
|
||||||
+#
|
+#
|
||||||
+# Author: Cyril Jaquier
|
+# Author: Cyril Jaquier
|
||||||
+# Copied from iptables.conf and modified by Yaroslav Halchenko
|
+# Copied from iptables.conf and modified by Yaroslav Halchenko
|
||||||
+# to fullfill the needs of bugreporter dbts#350746.
|
+# to fullfill the needs of bugreporter dbts#350746.
|
||||||
+#
|
+#
|
||||||
+# $Revision: 394 $
|
+# $Revision: 520 $
|
||||||
+#
|
+#
|
||||||
+
|
+
|
||||||
+[Definition]
|
+[Definition]
|
||||||
+
|
+
|
||||||
+# Option: fwstart
|
+# Option: actionstart
|
||||||
+# Notes.: command executed once at the start of Fail2Ban.
|
+# Notes.: command executed once at the start of Fail2Ban.
|
||||||
+# Values: CMD
|
+# Values: CMD
|
||||||
+#
|
+#
|
||||||
|
@ -28,7 +28,7 @@ diff -urNad fail2ban-0.7.4~/config/action.d/iptables-new.conf fail2ban-0.7.4/con
|
||||||
+ iptables -A fail2ban-<name> -j RETURN
|
+ iptables -A fail2ban-<name> -j RETURN
|
||||||
+ iptables -I INPUT -m state --state NEW -p <protocol> --dport <port> -j fail2ban-<name>
|
+ iptables -I INPUT -m state --state NEW -p <protocol> --dport <port> -j fail2ban-<name>
|
||||||
+
|
+
|
||||||
+# Option: fwend
|
+# Option: actionend
|
||||||
+# Notes.: command executed once at the end of Fail2Ban
|
+# Notes.: command executed once at the end of Fail2Ban
|
||||||
+# Values: CMD
|
+# Values: CMD
|
||||||
+#
|
+#
|
||||||
|
@ -36,29 +36,28 @@ diff -urNad fail2ban-0.7.4~/config/action.d/iptables-new.conf fail2ban-0.7.4/con
|
||||||
+ iptables -F fail2ban-<name>
|
+ iptables -F fail2ban-<name>
|
||||||
+ iptables -X fail2ban-<name>
|
+ iptables -X fail2ban-<name>
|
||||||
+
|
+
|
||||||
+# Option: fwcheck
|
+# Option: actioncheck
|
||||||
+# Notes.: command executed once before each fwban command
|
+# Notes.: command executed once before each actionban command
|
||||||
+# Values: CMD
|
+# Values: CMD
|
||||||
+#
|
+#
|
||||||
+actioncheck = iptables -L INPUT | grep -q fail2ban-<name>
|
+actioncheck = iptables -n -L INPUT | grep -q fail2ban-<name>
|
||||||
+
|
+
|
||||||
+# Option: fwban
|
+# Option: actionban
|
||||||
+# Notes.: command executed when banning an IP. Take care that the
|
+# Notes.: command executed when banning an IP. Take care that the
|
||||||
+# command is executed with Fail2Ban user rights.
|
+# command is executed with Fail2Ban user rights.
|
||||||
+# Tags: <ip> IP address
|
+# Tags: <ip> IP address
|
||||||
+# <failures> number of failures
|
+# <failures> number of failures
|
||||||
+# <failtime> unix timestamp of the last failure
|
+# <time> unix timestamp of the ban time
|
||||||
+# <bantime> unix timestamp of the ban time
|
|
||||||
+# Values: CMD
|
+# Values: CMD
|
||||||
+#
|
+#
|
||||||
+actionban = iptables -I fail2ban-<name> 1 -s <ip> -j DROP
|
+actionban = iptables -I fail2ban-<name> 1 -s <ip> -j DROP
|
||||||
+
|
+
|
||||||
+# Option: fwunban
|
+# Option: actionunban
|
||||||
+# Notes.: command executed when unbanning an IP. Take care that the
|
+# Notes.: command executed when unbanning an IP. Take care that the
|
||||||
+# command is executed with Fail2Ban user rights.
|
+# command is executed with Fail2Ban user rights.
|
||||||
+# Tags: <ip> IP address
|
+# Tags: <ip> IP address
|
||||||
+# <bantime> unix timestamp of the ban time
|
+# <failures> number of failures
|
||||||
+# <unbantime> unix timestamp of the unban time
|
+# <time> unix timestamp of the ban time
|
||||||
+# Values: CMD
|
+# Values: CMD
|
||||||
+#
|
+#
|
||||||
+actionunban = iptables -D fail2ban-<name> -s <ip> -j DROP
|
+actionunban = iptables -D fail2ban-<name> -s <ip> -j DROP
|
||||||
|
|
|
@ -37,13 +37,13 @@ diff -urNad fail2ban-0.7.5~/config/action.d/mail-whois-lines.conf fail2ban-0.7.5
|
||||||
+ Regards,\n
|
+ Regards,\n
|
||||||
+ Fail2Ban"|mail -s "[Fail2Ban] <name>: stopped" <dest>
|
+ Fail2Ban"|mail -s "[Fail2Ban] <name>: stopped" <dest>
|
||||||
+
|
+
|
||||||
+# Option: fwcheck
|
+# Option: actioncheck
|
||||||
+# Notes.: command executed once before each fwban command
|
+# Notes.: command executed once before each actionban command
|
||||||
+# Values: CMD
|
+# Values: CMD
|
||||||
+#
|
+#
|
||||||
+actioncheck =
|
+actioncheck =
|
||||||
+
|
+
|
||||||
+# Option: fwban
|
+# Option: actionban
|
||||||
+# Notes.: command executed when banning an IP. Take care that the
|
+# Notes.: command executed when banning an IP. Take care that the
|
||||||
+# command is executed with Fail2Ban user rights.
|
+# command is executed with Fail2Ban user rights.
|
||||||
+# Tags: <ip> IP address
|
+# Tags: <ip> IP address
|
||||||
|
@ -62,7 +62,7 @@ diff -urNad fail2ban-0.7.5~/config/action.d/mail-whois-lines.conf fail2ban-0.7.5
|
||||||
+ Regards,\n
|
+ Regards,\n
|
||||||
+ Fail2Ban"|mail -s "[Fail2Ban] <name>: banned <ip>" <dest>
|
+ Fail2Ban"|mail -s "[Fail2Ban] <name>: banned <ip>" <dest>
|
||||||
+
|
+
|
||||||
+# Option: fwunban
|
+# Option: actionunban
|
||||||
+# Notes.: command executed when unbanning an IP. Take care that the
|
+# Notes.: command executed when unbanning an IP. Take care that the
|
||||||
+# command is executed with Fail2Ban user rights.
|
+# command is executed with Fail2Ban user rights.
|
||||||
+# Tags: <ip> IP address
|
+# Tags: <ip> IP address
|
||||||
|
|
Loading…
Reference in New Issue