From d80643f5def0289cadd5ecd0aa0299ef2c329fe0 Mon Sep 17 00:00:00 2001 From: Th4nat0s Date: Sat, 16 Jun 2012 23:51:34 +0200 Subject: [PATCH] conversion of iptable wrapper to python --- config/action.d/iptables-multiport-46.conf | 69 ---------------------- fail2ban-iptables | 43 ++++++++++++++ fail2ban-iptwrp | 49 --------------- setup.py | 2 +- 4 files changed, 44 insertions(+), 119 deletions(-) delete mode 100644 config/action.d/iptables-multiport-46.conf create mode 100755 fail2ban-iptables delete mode 100755 fail2ban-iptwrp diff --git a/config/action.d/iptables-multiport-46.conf b/config/action.d/iptables-multiport-46.conf deleted file mode 100644 index 7bb944e4..00000000 --- a/config/action.d/iptables-multiport-46.conf +++ /dev/null @@ -1,69 +0,0 @@ -# Fail2Ban configuration file -# -# Author: Cyril Jaquier -# Modified by Yaroslav Halchenko for multiport banning -# Modified by Paul Jung for calling wrapper in dual stack ipv6 and v4 banning -# - -[Definition] - -# Option: actionstart -# Notes.: command executed once at the start of Fail2Ban. -# Values: CMD -# -actionstart = fail2ban-iptwrp -N fail2ban- - fail2ban-iptwrp -A fail2ban- -j RETURN - fail2ban-iptwrp -I INPUT -p -m multiport --dports -j fail2ban- - -# Option: actionstop -# Notes.: command executed once at the end of Fail2Ban -# Values: CMD -# -actionstop = fail2ban-iptwrp -D INPUT -p -m multiport --dports -j fail2ban- - fail2ban-iptwrp -F fail2ban- - fail2ban-iptwrp -X fail2ban- - -# Option: actioncheck -# Notes.: command executed once before each actionban command -# Values: CMD -# -actioncheck = fail2ban-iptwrp -n -L INPUT | grep -q fail2ban- - -# Option: actionban -# Notes.: command executed when banning an IP. Take care that the -# command is executed with Fail2Ban user rights. -# Tags: IP address -# number of failures -#