/[smecontribs]/rpms/smeserver-fail2ban/contribs10/smeserver-fail2ban-0.1.18.bz10370.patch
ViewVC logotype

Contents of /rpms/smeserver-fail2ban/contribs10/smeserver-fail2ban-0.1.18.bz10370.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Jun 10 08:53:07 2020 UTC (4 years, 4 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-fail2ban-0_1_18-27_el7_sme, smeserver-fail2ban-0_1_18-22_el7_sme, smeserver-fail2ban-0_1_18-32_el7_sme, smeserver-fail2ban-0_1_18-15_el7_sme, smeserver-fail2ban-0_1_18-14_el7_sme, smeserver-fail2ban-0_1_18-28_el7_sme, smeserver-fail2ban-0_1_18-29_el7_sme, smeserver-fail2ban-0_1_18-24_el7_sme, smeserver-fail2ban-0_1_18-23_el7_sme, smeserver-fail2ban-0_1_18-19_el7_sme, smeserver-fail2ban-0_1_18-26_el7_sme, smeserver-fail2ban-0_1_18-31_el7_sme, smeserver-fail2ban-0_1_18-25_el7_sme, smeserver-fail2ban-0_1_18-16_el7_sme, smeserver-fail2ban-0_1_18-13_el7_sme, smeserver-fail2ban-0_1_18-21_el7_sme, smeserver-fail2ban-0_1_18-12_el7_sme, smeserver-fail2ban-0_1_18-11_el7_sme, smeserver-fail2ban-0_1_18-30_el7_sme, smeserver-fail2ban-0_1_18-17_el7_sme, smeserver-fail2ban-0_1_18-20_el7_sme, HEAD
Initial import

1 diff -Nur smeserver-fail2ban-0.1.18.old/root/etc/e-smith/templates/etc/fail2ban/jail.conf/90Recidive smeserver-fail2ban-0.1.18/root/etc/e-smith/templates/etc/fail2ban/jail.conf/90Recidive
2 --- smeserver-fail2ban-0.1.18.old/root/etc/e-smith/templates/etc/fail2ban/jail.conf/90Recidive 2017-10-27 08:34:58.000000000 -0400
3 +++ smeserver-fail2ban-0.1.18/root/etc/e-smith/templates/etc/fail2ban/jail.conf/90Recidive 2019-11-27 23:06:09.715000000 -0500
4 @@ -1,15 +1,21 @@
5 -
6 -[recidive]
7 -enabled = true
8 -filter = recidive
9 -logpath = /var/log/fail2ban/daemon.log
10 -bantime = 604800
11 -findtime = 86400
12 -maxretry = 5
13 -backend = polling
14 -action = smeserver-iptables[bantime=604800]
15 -{
16 -$OUT .= " smeserver-sendmail[name=\"Recidive\",dest=$maildest]\n"
17 - if ($mail eq 'enabled');
18 -$OUT .= '';
19 -}
20 +{
21 +my $rbantime = $fail2ban{'RecidiveBanTime'} || '604800';
22 +my $rfindtime = $fail2ban{'RecidiveFindTime'} || '86400';
23 +my $rmaxretry = $fail2ban{'RecidiveMaxRetry'} || '5';
24 +my $raction = 'smeserver-iptables[bantime=' . $rbantime . ']' . "\n";
25 +$raction .= " smeserver-sendmail[name=\"Recidive\",dest=$maildest]\n"
26 + if ($mail eq 'enabled');
27 +
28 +$OUT .=<<"EOF";
29 +
30 +[recidive]
31 +enabled = true
32 +filter = recidive
33 +logpath = /var/log/fail2ban/daemon.log
34 +bantime = $rbantime
35 +findtime = $rfindtime
36 +maxretry = $rmaxretry
37 +backend = polling
38 +action = $raction
39 +EOF
40 +}

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed