NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Trace

data/web/inc/functions.fail2ban.inc.php

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

functions.fail2ban.inc.php on main
Author Date Commit Line Code
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
FreddleSpl0it about 3 years ago e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
2
function fail2ban($_action, $_data = null, $_extra = null) {
Open commit View diff
2 function fail2ban($_action, $_data = null, $_extra = null) {
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3
  global $redis;
Open commit View diff
3 global $redis;
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
4
  $_data_log = $_data;
Open commit View diff
4 $_data_log = $_data;
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
5
  switch ($_action) {
Open commit View diff
5 switch ($_action) {
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
6
    case 'get':
Open commit View diff
6 case 'get':
andre.peters over 8 years ago b2032c0

[Web] Hide up time of containers that are missing

Full commit hash
b2032c0e8afa8d4d68c57ea8eec805fed181f6f8
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
7
      $f2b_options = array();
Open commit View diff
7 $f2b_options = array();
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
8
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
8 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
9
        return false;
Open commit View diff
9 return false;
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
10
      }
Open commit View diff
10 }
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
11
      try {
Open commit View diff
11 try {
andre.peters over 8 years ago b2032c0

[Web] Hide up time of containers that are missing

Full commit hash
b2032c0e8afa8d4d68c57ea8eec805fed181f6f8
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
12
        $f2b_options = json_decode($redis->Get('F2B_OPTIONS'), true);
Open commit View diff
12 $f2b_options = json_decode($redis->Get('F2B_OPTIONS'), true);
andryyy almost 6 years ago 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
13
        $f2b_options['regex'] = json_decode($redis->Get('F2B_REGEX'), true);
Open commit View diff
13 $f2b_options['regex'] = json_decode($redis->Get('F2B_REGEX'), true);
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
14
        $wl = $redis->hGetAll('F2B_WHITELIST');
Open commit View diff
14 $wl = $redis->hGetAll('F2B_WHITELIST');
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
15
        if (is_array($wl)) {
Open commit View diff
15 if (is_array($wl)) {
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
16
          foreach ($wl as $key => $value) {
Open commit View diff
16 foreach ($wl as $key => $value) {
André about 8 years ago 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
17
            $tmp_wl_data[] = $key;
Open commit View diff
17 $tmp_wl_data[] = $key;
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
18
          }
Open commit View diff
18 }
André about 8 years ago 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
19
          if (isset($tmp_wl_data)) {
Open commit View diff
19 if (isset($tmp_wl_data)) {
andryyy over 6 years ago b52ee0a

[Rspamd] Fix map permissions for www

Full commit hash
b52ee0a706f1b4d0fb7989c8805623d2c842ea47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
20
            natsort($tmp_wl_data);
Open commit View diff
20 natsort($tmp_wl_data);
andryyy almost 5 years ago 2cd0b56

[Web] Various PHP 8 fixes, partly fixes #4219

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
21
            $f2b_options['whitelist'] = implode(PHP_EOL, (array)$tmp_wl_data);
Open commit View diff
21 $f2b_options['whitelist'] = implode(PHP_EOL, (array)$tmp_wl_data);
andryyy almost 9 years ago 66e06a0

[Web] Sync jobs can be created/viewed/edited by admins/domain admins; Various fixes or improvements

Full commit hash
66e06a0c0c31aacbca146718fbbd3a1165910f7f
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
22
          }
Open commit View diff
22 }
same change 66e06a0

[Web] Sync jobs can be created/viewed/edited by admins/domain admins; Various fixes or improvements

Full commit hash
66e06a0c0c31aacbca146718fbbd3a1165910f7f
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
23
          else {
Open commit View diff
23 else {
andre.peters over 8 years ago b2032c0

[Web] Hide up time of containers that are missing

Full commit hash
b2032c0e8afa8d4d68c57ea8eec805fed181f6f8
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
24
            $f2b_options['whitelist'] = "";
Open commit View diff
24 $f2b_options['whitelist'] = "";
andryyy almost 9 years ago 66e06a0

[Web] Sync jobs can be created/viewed/edited by admins/domain admins; Various fixes or improvements

Full commit hash
66e06a0c0c31aacbca146718fbbd3a1165910f7f
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
25
          }
Open commit View diff
25 }
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
26
        }
Open commit View diff
26 }
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
27
        else {
Open commit View diff
27 else {
andre.peters over 8 years ago b2032c0

[Web] Hide up time of containers that are missing

Full commit hash
b2032c0e8afa8d4d68c57ea8eec805fed181f6f8
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
28
          $f2b_options['whitelist'] = "";
Open commit View diff
28 $f2b_options['whitelist'] = "";
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
29
        }
Open commit View diff
29 }
André about 8 years ago 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
30
        $bl = $redis->hGetAll('F2B_BLACKLIST');
Open commit View diff
30 $bl = $redis->hGetAll('F2B_BLACKLIST');
same change 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
31
        if (is_array($bl)) {
Open commit View diff
31 if (is_array($bl)) {
same change 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
32
          foreach ($bl as $key => $value) {
Open commit View diff
32 foreach ($bl as $key => $value) {
same change 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
33
            $tmp_bl_data[] = $key;
Open commit View diff
33 $tmp_bl_data[] = $key;
same change 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
34
          }
Open commit View diff
34 }
same change 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
35
          if (isset($tmp_bl_data)) {
Open commit View diff
35 if (isset($tmp_bl_data)) {
andryyy over 6 years ago b52ee0a

[Rspamd] Fix map permissions for www

Full commit hash
b52ee0a706f1b4d0fb7989c8805623d2c842ea47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
36
            natsort($tmp_bl_data);
Open commit View diff
36 natsort($tmp_bl_data);
andryyy almost 5 years ago 2cd0b56

[Web] Various PHP 8 fixes, partly fixes #4219

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
37
            $f2b_options['blacklist'] = implode(PHP_EOL, (array)$tmp_bl_data);
Open commit View diff
37 $f2b_options['blacklist'] = implode(PHP_EOL, (array)$tmp_bl_data);
André about 8 years ago 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
38
          }
Open commit View diff
38 }
same change 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
39
          else {
Open commit View diff
39 else {
same change 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
40
            $f2b_options['blacklist'] = "";
Open commit View diff
40 $f2b_options['blacklist'] = "";
same change 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
41
          }
Open commit View diff
41 }
same change 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
42
        }
Open commit View diff
42 }
same change 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
43
        else {
Open commit View diff
43 else {
same change 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
44
          $f2b_options['blacklist'] = "";
Open commit View diff
44 $f2b_options['blacklist'] = "";
same change 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
45
        }
Open commit View diff
45 }
André about 8 years ago f828353

[Netfilter] Fix chain order watching and other fixes

Full commit hash
f8283536ec4cebfaaff0b1fe0d5b4e31d5ba2d4d
Author
André <[email protected]>
Date
about 8 years ago
Selected line
46
        $pb = $redis->hGetAll('F2B_PERM_BANS');
Open commit View diff
46 $pb = $redis->hGetAll('F2B_PERM_BANS');
same change f828353

[Netfilter] Fix chain order watching and other fixes

Full commit hash
f8283536ec4cebfaaff0b1fe0d5b4e31d5ba2d4d
Author
André <[email protected]>
Date
about 8 years ago
Selected line
47
        if (is_array($pb)) {
Open commit View diff
47 if (is_array($pb)) {
same change f828353

[Netfilter] Fix chain order watching and other fixes

Full commit hash
f8283536ec4cebfaaff0b1fe0d5b4e31d5ba2d4d
Author
André <[email protected]>
Date
about 8 years ago
Selected line
48
          foreach ($pb as $key => $value) {
Open commit View diff
48 foreach ($pb as $key => $value) {
prey87 about 5 years ago f767a27

added ip address to $f2b_options['perm_bans'] and $f2b_options['active_bans'] to fail2ban.inc (#4152)

Full commit hash
f767a27859f57ea40b6f20fd5c4417a23736dddb
Author
prey87 <[email protected]>
Date
about 5 years ago
Selected line
49
            $f2b_options['perm_bans'][] = array(
Open commit View diff
49 $f2b_options['perm_bans'][] = array(
same change f767a27

added ip address to $f2b_options['perm_bans'] and $f2b_options['active_bans'] to fail2ban.inc (#4152)

Full commit hash
f767a27859f57ea40b6f20fd5c4417a23736dddb
Author
prey87 <[email protected]>
Date
about 5 years ago
Selected line
50
                'network'=>$key,
Open commit View diff
50 'network'=>$key,
same change f767a27

added ip address to $f2b_options['perm_bans'] and $f2b_options['active_bans'] to fail2ban.inc (#4152)

Full commit hash
f767a27859f57ea40b6f20fd5c4417a23736dddb
Author
prey87 <[email protected]>
Date
about 5 years ago
Selected line
51
                'ip' => strtok($key,'/')
Open commit View diff
51 'ip' => strtok($key,'/')
same change f767a27

added ip address to $f2b_options['perm_bans'] and $f2b_options['active_bans'] to fail2ban.inc (#4152)

Full commit hash
f767a27859f57ea40b6f20fd5c4417a23736dddb
Author
prey87 <[email protected]>
Date
about 5 years ago
Selected line
52
            );
Open commit View diff
52 );
same change f767a27

added ip address to $f2b_options['perm_bans'] and $f2b_options['active_bans'] to fail2ban.inc (#4152)

Full commit hash
f767a27859f57ea40b6f20fd5c4417a23736dddb
Author
prey87 <[email protected]>
Date
about 5 years ago
Selected line
53
Open commit View diff
53
André about 8 years ago f828353

[Netfilter] Fix chain order watching and other fixes

Full commit hash
f8283536ec4cebfaaff0b1fe0d5b4e31d5ba2d4d
Author
André <[email protected]>
Date
about 8 years ago
Selected line
54
          }
Open commit View diff
54 }
same change f828353

[Netfilter] Fix chain order watching and other fixes

Full commit hash
f8283536ec4cebfaaff0b1fe0d5b4e31d5ba2d4d
Author
André <[email protected]>
Date
about 8 years ago
Selected line
55
        }
Open commit View diff
55 }
same change f828353

[Netfilter] Fix chain order watching and other fixes

Full commit hash
f8283536ec4cebfaaff0b1fe0d5b4e31d5ba2d4d
Author
André <[email protected]>
Date
about 8 years ago
Selected line
56
        else {
Open commit View diff
56 else {
same change f828353

[Netfilter] Fix chain order watching and other fixes

Full commit hash
f8283536ec4cebfaaff0b1fe0d5b4e31d5ba2d4d
Author
André <[email protected]>
Date
about 8 years ago
Selected line
57
          $f2b_options['perm_bans'] = "";
Open commit View diff
57 $f2b_options['perm_bans'] = "";
same change f828353

[Netfilter] Fix chain order watching and other fixes

Full commit hash
f8283536ec4cebfaaff0b1fe0d5b4e31d5ba2d4d
Author
André <[email protected]>
Date
about 8 years ago
Selected line
58
        }
Open commit View diff
58 }
André about 8 years ago 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
59
        $active_bans = $redis->hGetAll('F2B_ACTIVE_BANS');
Open commit View diff
59 $active_bans = $redis->hGetAll('F2B_ACTIVE_BANS');
same change 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
60
        $queue_unban = $redis->hGetAll('F2B_QUEUE_UNBAN');
Open commit View diff
60 $queue_unban = $redis->hGetAll('F2B_QUEUE_UNBAN');
same change 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
61
        if (is_array($active_bans)) {
Open commit View diff
61 if (is_array($active_bans)) {
same change 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
62
          foreach ($active_bans as $network => $banned_until) {
Open commit View diff
62 foreach ($active_bans as $network => $banned_until) {
same change 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
63
            $queued_for_unban = (isset($queue_unban[$network]) && $queue_unban[$network] == 1) ? 1 : 0;
Open commit View diff
63 $queued_for_unban = (isset($queue_unban[$network]) && $queue_unban[$network] == 1) ? 1 : 0;
same change 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
64
            $difference = $banned_until - time();
Open commit View diff
64 $difference = $banned_until - time();
same change 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
65
            $f2b_options['active_bans'][] = array(
Open commit View diff
65 $f2b_options['active_bans'][] = array(
same change 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
66
              'queued_for_unban' => $queued_for_unban,
Open commit View diff
66 'queued_for_unban' => $queued_for_unban,
same change 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
67
              'network' => $network,
Open commit View diff
67 'network' => $network,
prey87 about 5 years ago f767a27

added ip address to $f2b_options['perm_bans'] and $f2b_options['active_bans'] to fail2ban.inc (#4152)

Full commit hash
f767a27859f57ea40b6f20fd5c4417a23736dddb
Author
prey87 <[email protected]>
Date
about 5 years ago
Selected line
68
              'ip' => strtok($network,'/'),
Open commit View diff
68 'ip' => strtok($network,'/'),
André about 8 years ago 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
69
              'banned_until' => sprintf('%02dh %02dm %02ds', ($difference/3600), ($difference/60%60), $difference%60)
Open commit View diff
69 'banned_until' => sprintf('%02dh %02dm %02ds', ($difference/3600), ($difference/60%60), $difference%60)
same change 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
70
            );
Open commit View diff
70 );
same change 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
71
          }
Open commit View diff
71 }
same change 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
72
        }
Open commit View diff
72 }
same change 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
73
        else {
Open commit View diff
73 else {
same change 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
74
          $f2b_options['active_bans'] = "";
Open commit View diff
74 $f2b_options['active_bans'] = "";
same change 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
75
        }
Open commit View diff
75 }
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
76
      }
Open commit View diff
76 }
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
77
      catch (RedisException $e) {
Open commit View diff
77 catch (RedisException $e) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
78
        $_SESSION['return'][] = array(
Open commit View diff
78 $_SESSION['return'][] = array(
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
79
          'type' => 'danger',
Open commit View diff
79 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
80
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
80 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
81
          'msg' => array('redis_error', $e)
Open commit View diff
81 'msg' => array('redis_error', $e)
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
82
        );
Open commit View diff
82 );
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
83
        return false;
Open commit View diff
83 return false;
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
84
      }
Open commit View diff
84 }
andre.peters over 8 years ago b2032c0

[Web] Hide up time of containers that are missing

Full commit hash
b2032c0e8afa8d4d68c57ea8eec805fed181f6f8
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
85
      return $f2b_options;
Open commit View diff
85 return $f2b_options;
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
86
    break;
Open commit View diff
86 break;
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
87
    case 'edit':
Open commit View diff
87 case 'edit':
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
88
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
88 if ($_SESSION['mailcow_cc_role'] != "admin") {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
89
        $_SESSION['return'][] = array(
Open commit View diff
89 $_SESSION['return'][] = array(
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
90
          'type' => 'danger',
Open commit View diff
90 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
91
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
91 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
92
          'msg' => 'access_denied'
Open commit View diff
92 'msg' => 'access_denied'
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
93
        );
Open commit View diff
93 );
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
94
        return false;
Open commit View diff
94 return false;
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
95
      }
Open commit View diff
95 }
andryyy almost 6 years ago 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
96
      // Start to read actions, if any
Open commit View diff
96 // Start to read actions, if any
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
97
      if (isset($_data['action'])) {
Open commit View diff
97 if (isset($_data['action'])) {
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
98
        // Reset regex filters
Open commit View diff
98 // Reset regex filters
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
99
        if ($_data['action'] == "reset-regex") {
Open commit View diff
99 if ($_data['action'] == "reset-regex") {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
100
          try {
Open commit View diff
100 try {
andryyy almost 6 years ago 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
101
            $redis->Del('F2B_REGEX');
Open commit View diff
101 $redis->Del('F2B_REGEX');
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
102
          }
Open commit View diff
102 }
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
103
          catch (RedisException $e) {
Open commit View diff
103 catch (RedisException $e) {
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
104
            $_SESSION['return'][] = array(
Open commit View diff
104 $_SESSION['return'][] = array(
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
105
              'type' => 'danger',
Open commit View diff
105 'type' => 'danger',
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
106
              'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
106 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
107
              'msg' => array('redis_error', $e)
Open commit View diff
107 'msg' => array('redis_error', $e)
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
108
            );
Open commit View diff
108 );
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
109
            return false;
Open commit View diff
109 return false;
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
110
          }
Open commit View diff
110 }
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
111
          // Rules will also be recreated on log events, but rules may seem empty for a second in the UI
Open commit View diff
111 // Rules will also be recreated on log events, but rules may seem empty for a second in the UI
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
112
          docker('post', 'netfilter-mailcow', 'restart');
Open commit View diff
112 docker('post', 'netfilter-mailcow', 'restart');
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
113
          $fail_count = 0;
Open commit View diff
113 $fail_count = 0;
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
114
          $regex_result = json_decode($redis->Get('F2B_REGEX'), true);
Open commit View diff
114 $regex_result = json_decode($redis->Get('F2B_REGEX'), true);
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
115
          while (empty($regex_result) && $fail_count < 10) {
Open commit View diff
115 while (empty($regex_result) && $fail_count < 10) {
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
116
            $regex_result = json_decode($redis->Get('F2B_REGEX'), true);
Open commit View diff
116 $regex_result = json_decode($redis->Get('F2B_REGEX'), true);
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
117
            $fail_count++;
Open commit View diff
117 $fail_count++;
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
118
            sleep(1);
Open commit View diff
118 sleep(1);
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
119
          }
Open commit View diff
119 }
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
120
          if ($fail_count >= 10) {
Open commit View diff
120 if ($fail_count >= 10) {
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
121
            $_SESSION['return'][] = array(
Open commit View diff
121 $_SESSION['return'][] = array(
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
122
              'type' => 'danger',
Open commit View diff
122 'type' => 'danger',
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
123
              'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
123 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
124
              'msg' => array('reset_f2b_regex')
Open commit View diff
124 'msg' => array('reset_f2b_regex')
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
125
            );
Open commit View diff
125 );
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
126
            return false;
Open commit View diff
126 return false;
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
127
          }
Open commit View diff
127 }
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
128
        }
Open commit View diff
128 }
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
129
        elseif ($_data['action'] == "edit-regex") {
Open commit View diff
129 elseif ($_data['action'] == "edit-regex") {
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
130
          if (!empty($_data['regex'])) {
Open commit View diff
130 if (!empty($_data['regex'])) {
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
131
            $rule_id = 1;
Open commit View diff
131 $rule_id = 1;
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
132
            $regex_array = array();
Open commit View diff
132 $regex_array = array();
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
133
            foreach($_data['regex'] as $regex) {
Open commit View diff
133 foreach($_data['regex'] as $regex) {
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
134
              $regex_array[$rule_id] = $regex;
Open commit View diff
134 $regex_array[$rule_id] = $regex;
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
135
              $rule_id++;
Open commit View diff
135 $rule_id++;
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
136
            }
Open commit View diff
136 }
andryyy almost 6 years ago bf62f31

[Web] Fail2ban: Only write regex filters if not empty

Full commit hash
bf62f31b9e3b5fb4205b3389170be01fbcda284c
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
137
            if (!empty($regex_array)) {
Open commit View diff
137 if (!empty($regex_array)) {
same change bf62f31

[Web] Fail2ban: Only write regex filters if not empty

Full commit hash
bf62f31b9e3b5fb4205b3389170be01fbcda284c
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
138
              $redis->Set('F2B_REGEX', json_encode($regex_array, JSON_UNESCAPED_SLASHES));
Open commit View diff
138 $redis->Set('F2B_REGEX', json_encode($regex_array, JSON_UNESCAPED_SLASHES));
same change bf62f31

[Web] Fail2ban: Only write regex filters if not empty

Full commit hash
bf62f31b9e3b5fb4205b3389170be01fbcda284c
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
139
            }
Open commit View diff
139 }
andryyy almost 6 years ago 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
140
          }
Open commit View diff
140 }
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
141
          $_SESSION['return'][] = array(
Open commit View diff
141 $_SESSION['return'][] = array(
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
142
            'type' => 'success',
Open commit View diff
142 'type' => 'success',
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
143
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
143 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
144
            'msg' => array('object_modified', htmlspecialchars($network))
Open commit View diff
144 'msg' => array('object_modified', htmlspecialchars($network))
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
145
          );
Open commit View diff
145 );
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
146
          return true;
Open commit View diff
146 return true;
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
147
        }
Open commit View diff
147 }
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
148
Open commit View diff
148
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
149
        // Start actions in dependency of network
Open commit View diff
149 // Start actions in dependency of network
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
150
        if (!empty($_data['network'])) {
Open commit View diff
150 if (!empty($_data['network'])) {
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
151
          $networks = (array)$_data['network'];
Open commit View diff
151 $networks = (array)$_data['network'];
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
152
          foreach ($networks as $network) {
Open commit View diff
152 foreach ($networks as $network) {
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
153
            // Unban network
Open commit View diff
153 // Unban network
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
154
            if ($_data['action'] == "unban") {
Open commit View diff
154 if ($_data['action'] == "unban") {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
155
              if (valid_network($network)) {
Open commit View diff
155 if (valid_network($network)) {
andryyy almost 6 years ago 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
156
                try {
Open commit View diff
156 try {
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
157
                  $redis->hSet('F2B_QUEUE_UNBAN', $network, 1);
Open commit View diff
157 $redis->hSet('F2B_QUEUE_UNBAN', $network, 1);
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
158
                }
Open commit View diff
158 }
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
159
                catch (RedisException $e) {
Open commit View diff
159 catch (RedisException $e) {
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
160
                  $_SESSION['return'][] = array(
Open commit View diff
160 $_SESSION['return'][] = array(
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
161
                    'type' => 'danger',
Open commit View diff
161 'type' => 'danger',
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
162
                    'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
162 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
163
                    'msg' => array('redis_error', $e)
Open commit View diff
163 'msg' => array('redis_error', $e)
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
164
                  );
Open commit View diff
164 );
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
165
                  continue;
Open commit View diff
165 continue;
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
166
                }
Open commit View diff
166 }
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
167
              }
Open commit View diff
167 }
André about 8 years ago 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
168
            }
Open commit View diff
168 }
andryyy almost 6 years ago 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
169
            // Whitelist network
Open commit View diff
169 // Whitelist network
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
170
            elseif ($_data['action'] == "whitelist") {
Open commit View diff
170 elseif ($_data['action'] == "whitelist") {
andryyy almost 6 years ago d5c22de

[Web] Compatibility: Re-add _int vars

Full commit hash
d5c22de9b3b47c015cfec18e25198796ae487aec
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
171
              if (empty($network)) { continue; }
Open commit View diff
171 if (empty($network)) { continue; }
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
172
              if (valid_network($network)) {
Open commit View diff
172 if (valid_network($network)) {
andryyy almost 6 years ago 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
173
                try {
Open commit View diff
173 try {
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
174
                  $redis->hSet('F2B_WHITELIST', $network, 1);
Open commit View diff
174 $redis->hSet('F2B_WHITELIST', $network, 1);
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
175
                  $redis->hDel('F2B_BLACKLIST', $network, 1);
Open commit View diff
175 $redis->hDel('F2B_BLACKLIST', $network, 1);
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
176
                  $redis->hSet('F2B_QUEUE_UNBAN', $network, 1);
Open commit View diff
176 $redis->hSet('F2B_QUEUE_UNBAN', $network, 1);
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
177
                }
Open commit View diff
177 }
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
178
                catch (RedisException $e) {
Open commit View diff
178 catch (RedisException $e) {
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
179
                  $_SESSION['return'][] = array(
Open commit View diff
179 $_SESSION['return'][] = array(
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
180
                    'type' => 'danger',
Open commit View diff
180 'type' => 'danger',
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
181
                    'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
181 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
182
                    'msg' => array('redis_error', $e)
Open commit View diff
182 'msg' => array('redis_error', $e)
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
183
                  );
Open commit View diff
183 );
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
184
                  continue;
Open commit View diff
184 continue;
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
185
                }
Open commit View diff
185 }
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
186
              }
Open commit View diff
186 }
andryyy over 7 years ago b74226a

[Web] Fix return for unban/ban actions via API

Full commit hash
b74226a9dc2ec206cbdf97b7008a61f762f52db9
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
187
              else  {
Open commit View diff
187 else {
same change b74226a

[Web] Fix return for unban/ban actions via API

Full commit hash
b74226a9dc2ec206cbdf97b7008a61f762f52db9
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
188
                $_SESSION['return'][] = array(
Open commit View diff
188 $_SESSION['return'][] = array(
same change b74226a

[Web] Fix return for unban/ban actions via API

Full commit hash
b74226a9dc2ec206cbdf97b7008a61f762f52db9
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
189
                  'type' => 'danger',
Open commit View diff
189 'type' => 'danger',
same change b74226a

[Web] Fix return for unban/ban actions via API

Full commit hash
b74226a9dc2ec206cbdf97b7008a61f762f52db9
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
190
                  'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
190 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b74226a

[Web] Fix return for unban/ban actions via API

Full commit hash
b74226a9dc2ec206cbdf97b7008a61f762f52db9
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
191
                  'msg' => array('network_host_invalid', $network)
Open commit View diff
191 'msg' => array('network_host_invalid', $network)
same change b74226a

[Web] Fix return for unban/ban actions via API

Full commit hash
b74226a9dc2ec206cbdf97b7008a61f762f52db9
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
192
                );
Open commit View diff
192 );
same change b74226a

[Web] Fix return for unban/ban actions via API

Full commit hash
b74226a9dc2ec206cbdf97b7008a61f762f52db9
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
193
                continue;
Open commit View diff
193 continue;
same change b74226a

[Web] Fix return for unban/ban actions via API

Full commit hash
b74226a9dc2ec206cbdf97b7008a61f762f52db9
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
194
              }
Open commit View diff
194 }
André about 8 years ago 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
195
            }
Open commit View diff
195 }
andryyy almost 6 years ago 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
196
            // Blacklist network
Open commit View diff
196 // Blacklist network
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
197
            elseif ($_data['action'] == "blacklist") {
Open commit View diff
197 elseif ($_data['action'] == "blacklist") {
andryyy almost 6 years ago d5c22de

[Web] Compatibility: Re-add _int vars

Full commit hash
d5c22de9b3b47c015cfec18e25198796ae487aec
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
198
              if (empty($network)) { continue; }
Open commit View diff
198 if (empty($network)) { continue; }
andryyy about 6 years ago b1db4bf

[Web] Disallow blacklisting of some special networks

Full commit hash
b1db4bf4bcb2f3819dcd2594aa7f486a3eee42c1
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
199
              if (valid_network($network) && !in_array($network, array(
Open commit View diff
199 if (valid_network($network) && !in_array($network, array(
same change b1db4bf

[Web] Disallow blacklisting of some special networks

Full commit hash
b1db4bf4bcb2f3819dcd2594aa7f486a3eee42c1
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
200
                '0.0.0.0',
Open commit View diff
200 '0.0.0.0',
same change b1db4bf

[Web] Disallow blacklisting of some special networks

Full commit hash
b1db4bf4bcb2f3819dcd2594aa7f486a3eee42c1
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
201
                '0.0.0.0/0',
Open commit View diff
201 '0.0.0.0/0',
same change b1db4bf

[Web] Disallow blacklisting of some special networks

Full commit hash
b1db4bf4bcb2f3819dcd2594aa7f486a3eee42c1
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
202
                getenv('IPV4_NETWORK') . '0/24',
Open commit View diff
202 getenv('IPV4_NETWORK') . '0/24',
same change b1db4bf

[Web] Disallow blacklisting of some special networks

Full commit hash
b1db4bf4bcb2f3819dcd2594aa7f486a3eee42c1
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
203
                getenv('IPV4_NETWORK') . '0',
Open commit View diff
203 getenv('IPV4_NETWORK') . '0',
same change b1db4bf

[Web] Disallow blacklisting of some special networks

Full commit hash
b1db4bf4bcb2f3819dcd2594aa7f486a3eee42c1
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
204
                getenv('IPV6_NETWORK')
Open commit View diff
204 getenv('IPV6_NETWORK')
same change b1db4bf

[Web] Disallow blacklisting of some special networks

Full commit hash
b1db4bf4bcb2f3819dcd2594aa7f486a3eee42c1
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
205
              ))) {
Open commit View diff
205 ))) {
andryyy almost 6 years ago 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
206
                try {
Open commit View diff
206 try {
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
207
                  $redis->hSet('F2B_BLACKLIST', $network, 1);
Open commit View diff
207 $redis->hSet('F2B_BLACKLIST', $network, 1);
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
208
                  $redis->hDel('F2B_WHITELIST', $network, 1);
Open commit View diff
208 $redis->hDel('F2B_WHITELIST', $network, 1);
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
209
                  //$response = docker('post', 'netfilter-mailcow', 'restart');
Open commit View diff
209 //$response = docker('post', 'netfilter-mailcow', 'restart');
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
210
                }
Open commit View diff
210 }
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
211
                catch (RedisException $e) {
Open commit View diff
211 catch (RedisException $e) {
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
212
                  $_SESSION['return'][] = array(
Open commit View diff
212 $_SESSION['return'][] = array(
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
213
                    'type' => 'danger',
Open commit View diff
213 'type' => 'danger',
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
214
                    'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
214 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
215
                    'msg' => array('redis_error', $e)
Open commit View diff
215 'msg' => array('redis_error', $e)
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
216
                  );
Open commit View diff
216 );
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
217
                  continue;
Open commit View diff
217 continue;
same change 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
218
                }
Open commit View diff
218 }
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
219
              }
Open commit View diff
219 }
andryyy over 7 years ago b74226a

[Web] Fix return for unban/ban actions via API

Full commit hash
b74226a9dc2ec206cbdf97b7008a61f762f52db9
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
220
              else  {
Open commit View diff
220 else {
same change b74226a

[Web] Fix return for unban/ban actions via API

Full commit hash
b74226a9dc2ec206cbdf97b7008a61f762f52db9
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
221
                $_SESSION['return'][] = array(
Open commit View diff
221 $_SESSION['return'][] = array(
same change b74226a

[Web] Fix return for unban/ban actions via API

Full commit hash
b74226a9dc2ec206cbdf97b7008a61f762f52db9
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
222
                  'type' => 'danger',
Open commit View diff
222 'type' => 'danger',
same change b74226a

[Web] Fix return for unban/ban actions via API

Full commit hash
b74226a9dc2ec206cbdf97b7008a61f762f52db9
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
223
                  'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
223 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b74226a

[Web] Fix return for unban/ban actions via API

Full commit hash
b74226a9dc2ec206cbdf97b7008a61f762f52db9
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
224
                  'msg' => array('network_host_invalid', $network)
Open commit View diff
224 'msg' => array('network_host_invalid', $network)
same change b74226a

[Web] Fix return for unban/ban actions via API

Full commit hash
b74226a9dc2ec206cbdf97b7008a61f762f52db9
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
225
                );
Open commit View diff
225 );
same change b74226a

[Web] Fix return for unban/ban actions via API

Full commit hash
b74226a9dc2ec206cbdf97b7008a61f762f52db9
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
226
                continue;
Open commit View diff
226 continue;
same change b74226a

[Web] Fix return for unban/ban actions via API

Full commit hash
b74226a9dc2ec206cbdf97b7008a61f762f52db9
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
227
              }
Open commit View diff
227 }
André about 8 years ago 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
228
            }
Open commit View diff
228 }
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
229
            $_SESSION['return'][] = array(
Open commit View diff
229 $_SESSION['return'][] = array(
andryyy almost 6 years ago 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
230
              'type' => 'success',
Open commit View diff
230 'type' => 'success',
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
231
              'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
231 'log' => array(__FUNCTION__, $_action, $_data_log),
andryyy almost 6 years ago 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
232
              'msg' => array('object_modified', htmlspecialchars($network))
Open commit View diff
232 'msg' => array('object_modified', htmlspecialchars($network))
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
233
            );
Open commit View diff
233 );
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
234
          }
Open commit View diff
234 }
andryyy almost 6 years ago 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
235
          return true;
Open commit View diff
235 return true;
André about 8 years ago 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
236
        }
Open commit View diff
236 }
same change 5e590ea

[Web] Allow to blacklist, whitelist and unban networks currently blocked plus minor other fixes to fail2ban logic

Full commit hash
5e590ea1196c8bc0e4869753e2eba72be36ae320
Author
André <[email protected]>
Date
about 8 years ago
Selected line
237
      }
Open commit View diff
237 }
andryyy almost 6 years ago 877b9b7

[Web] Sync jobs: Use STARTTLS instead of TLS; Feature: Allow to edit fail2ban-like regex filters in UI

Full commit hash
877b9b70549bc9f7424e8b3ddca8d70277be89d8
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
238
      // Start default edit without specific action
Open commit View diff
238 // Start default edit without specific action
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
239
      $is_now = fail2ban('get');
Open commit View diff
239 $is_now = fail2ban('get');
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
240
      if (!empty($is_now)) {
Open commit View diff
240 if (!empty($is_now)) {
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
241
        $ban_time = intval((isset($_data['ban_time'])) ? $_data['ban_time'] : $is_now['ban_time']);
Open commit View diff
241 $ban_time = intval((isset($_data['ban_time'])) ? $_data['ban_time'] : $is_now['ban_time']);
Thorbjörn Jörger over 3 years ago c28a6b8

Added ban_time_increment and max_ban_time to UI

Full commit hash
c28a6b89f030caca6e208790f80751588d1868ce
Author
Thorbjörn Jörger <[email protected]>
Date
over 3 years ago
Selected line
242
        $ban_time_increment = (isset($_data['ban_time_increment']) && $_data['ban_time_increment'] == "1") ? 1 : 0;
Open commit View diff
242 $ban_time_increment = (isset($_data['ban_time_increment']) && $_data['ban_time_increment'] == "1") ? 1 : 0;
andryyy almost 6 years ago d9b91fc

[Web] Important: Removed unnecessary *_int attributes from GET elements, _only_ returning int values now (same for all attributes which were provided as html char and int)

Full commit hash
d9b91fc04f286eaba4266ca60254a02dc5e91867
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
243
        $max_attempts = intval((isset($_data['max_attempts'])) ? $_data['max_attempts'] : $is_now['max_attempts']);
Open commit View diff
243 $max_attempts = intval((isset($_data['max_attempts'])) ? $_data['max_attempts'] : $is_now['max_attempts']);
Thorbjörn Jörger over 3 years ago c28a6b8

Added ban_time_increment and max_ban_time to UI

Full commit hash
c28a6b89f030caca6e208790f80751588d1868ce
Author
Thorbjörn Jörger <[email protected]>
Date
over 3 years ago
Selected line
244
        $max_ban_time = intval((isset($_data['max_ban_time'])) ? $_data['max_ban_time'] : $is_now['max_ban_time']);
Open commit View diff
244 $max_ban_time = intval((isset($_data['max_ban_time'])) ? $_data['max_ban_time'] : $is_now['max_ban_time']);
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
245
        $retry_window = intval((isset($_data['retry_window'])) ? $_data['retry_window'] : $is_now['retry_window']);
Open commit View diff
245 $retry_window = intval((isset($_data['retry_window'])) ? $_data['retry_window'] : $is_now['retry_window']);
andre.peters over 8 years ago 1c6d3c1

[Web] Set Fail2ban subnet sizes

Full commit hash
1c6d3c16b6f348a06c5da609021505d77c70985b
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
246
        $netban_ipv4 = intval((isset($_data['netban_ipv4'])) ? $_data['netban_ipv4'] : $is_now['netban_ipv4']);
Open commit View diff
246 $netban_ipv4 = intval((isset($_data['netban_ipv4'])) ? $_data['netban_ipv4'] : $is_now['netban_ipv4']);
same change 1c6d3c1

[Web] Set Fail2ban subnet sizes

Full commit hash
1c6d3c16b6f348a06c5da609021505d77c70985b
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
247
        $netban_ipv6 = intval((isset($_data['netban_ipv6'])) ? $_data['netban_ipv6'] : $is_now['netban_ipv6']);
Open commit View diff
247 $netban_ipv6 = intval((isset($_data['netban_ipv6'])) ? $_data['netban_ipv6'] : $is_now['netban_ipv6']);
André about 8 years ago 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
248
        $wl = (isset($_data['whitelist'])) ? $_data['whitelist'] : $is_now['whitelist'];
Open commit View diff
248 $wl = (isset($_data['whitelist'])) ? $_data['whitelist'] : $is_now['whitelist'];
same change 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
249
        $bl = (isset($_data['blacklist'])) ? $_data['blacklist'] : $is_now['blacklist'];
Open commit View diff
249 $bl = (isset($_data['blacklist'])) ? $_data['blacklist'] : $is_now['blacklist'];
FreddleSpl0it about 3 years ago 65cbc47

[Web] add manage f2b external option

Full commit hash
65cbc478b8ac644c826bbb5153bd557f29cda10f
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
250
        $manage_external = (isset($_data['manage_external'])) ? intval($_data['manage_external']) : 0;
Open commit View diff
250 $manage_external = (isset($_data['manage_external'])) ? intval($_data['manage_external']) : 0;
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
251
      }
Open commit View diff
251 }
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
252
      else {
Open commit View diff
252 else {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
253
        $_SESSION['return'][] = array(
Open commit View diff
253 $_SESSION['return'][] = array(
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
254
          'type' => 'danger',
Open commit View diff
254 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
255
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
255 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
256
          'msg' => 'access_denied'
Open commit View diff
256 'msg' => 'access_denied'
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
257
        );
Open commit View diff
257 );
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
258
        return false;
Open commit View diff
258 return false;
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
259
      }
Open commit View diff
259 }
andre.peters over 8 years ago b2032c0

[Web] Hide up time of containers that are missing

Full commit hash
b2032c0e8afa8d4d68c57ea8eec805fed181f6f8
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
260
      $f2b_options = array();
Open commit View diff
260 $f2b_options = array();
same change b2032c0

[Web] Hide up time of containers that are missing

Full commit hash
b2032c0e8afa8d4d68c57ea8eec805fed181f6f8
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
261
      $f2b_options['ban_time'] = ($ban_time < 60) ? 60 : $ban_time;
Open commit View diff
261 $f2b_options['ban_time'] = ($ban_time < 60) ? 60 : $ban_time;
Thorbjörn Jörger over 3 years ago c28a6b8

Added ban_time_increment and max_ban_time to UI

Full commit hash
c28a6b89f030caca6e208790f80751588d1868ce
Author
Thorbjörn Jörger <[email protected]>
Date
over 3 years ago
Selected line
262
      $f2b_options['ban_time_increment'] = ($ban_time_increment == 1) ? true : false;
Open commit View diff
262 $f2b_options['ban_time_increment'] = ($ban_time_increment == 1) ? true : false;
same change c28a6b8

Added ban_time_increment and max_ban_time to UI

Full commit hash
c28a6b89f030caca6e208790f80751588d1868ce
Author
Thorbjörn Jörger <[email protected]>
Date
over 3 years ago
Selected line
263
      $f2b_options['max_ban_time'] = ($max_ban_time < 60) ? 60 : $max_ban_time;
Open commit View diff
263 $f2b_options['max_ban_time'] = ($max_ban_time < 60) ? 60 : $max_ban_time;
andre.peters over 8 years ago b2032c0

[Web] Hide up time of containers that are missing

Full commit hash
b2032c0e8afa8d4d68c57ea8eec805fed181f6f8
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
264
      $f2b_options['netban_ipv4'] = ($netban_ipv4 < 8) ? 8 : $netban_ipv4;
Open commit View diff
264 $f2b_options['netban_ipv4'] = ($netban_ipv4 < 8) ? 8 : $netban_ipv4;
same change b2032c0

[Web] Hide up time of containers that are missing

Full commit hash
b2032c0e8afa8d4d68c57ea8eec805fed181f6f8
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
265
      $f2b_options['netban_ipv6'] = ($netban_ipv6 < 8) ? 8 : $netban_ipv6;
Open commit View diff
265 $f2b_options['netban_ipv6'] = ($netban_ipv6 < 8) ? 8 : $netban_ipv6;
same change b2032c0

[Web] Hide up time of containers that are missing

Full commit hash
b2032c0e8afa8d4d68c57ea8eec805fed181f6f8
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
266
      $f2b_options['netban_ipv4'] = ($netban_ipv4 > 32) ? 32 : $netban_ipv4;
Open commit View diff
266 $f2b_options['netban_ipv4'] = ($netban_ipv4 > 32) ? 32 : $netban_ipv4;
same change b2032c0

[Web] Hide up time of containers that are missing

Full commit hash
b2032c0e8afa8d4d68c57ea8eec805fed181f6f8
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
267
      $f2b_options['netban_ipv6'] = ($netban_ipv6 > 128) ? 128 : $netban_ipv6;
Open commit View diff
267 $f2b_options['netban_ipv6'] = ($netban_ipv6 > 128) ? 128 : $netban_ipv6;
same change b2032c0

[Web] Hide up time of containers that are missing

Full commit hash
b2032c0e8afa8d4d68c57ea8eec805fed181f6f8
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
268
      $f2b_options['max_attempts'] = ($max_attempts < 1) ? 1 : $max_attempts;
Open commit View diff
268 $f2b_options['max_attempts'] = ($max_attempts < 1) ? 1 : $max_attempts;
same change b2032c0

[Web] Hide up time of containers that are missing

Full commit hash
b2032c0e8afa8d4d68c57ea8eec805fed181f6f8
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
269
      $f2b_options['retry_window'] = ($retry_window < 1) ? 1 : $retry_window;
Open commit View diff
269 $f2b_options['retry_window'] = ($retry_window < 1) ? 1 : $retry_window;
FreddleSpl0it about 3 years ago 65cbc47

[Web] add manage f2b external option

Full commit hash
65cbc478b8ac644c826bbb5153bd557f29cda10f
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
270
      $f2b_options['banlist_id'] = $is_now['banlist_id'];
Open commit View diff
270 $f2b_options['banlist_id'] = $is_now['banlist_id'];
same change 65cbc47

[Web] add manage f2b external option

Full commit hash
65cbc478b8ac644c826bbb5153bd557f29cda10f
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
271
      $f2b_options['manage_external'] = ($manage_external > 0) ? 1 : 0;
Open commit View diff
271 $f2b_options['manage_external'] = ($manage_external > 0) ? 1 : 0;
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
272
      try {
Open commit View diff
272 try {
andre.peters over 8 years ago b2032c0

[Web] Hide up time of containers that are missing

Full commit hash
b2032c0e8afa8d4d68c57ea8eec805fed181f6f8
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
273
        $redis->Set('F2B_OPTIONS', json_encode($f2b_options));
Open commit View diff
273 $redis->Set('F2B_OPTIONS', json_encode($f2b_options));
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
274
        $redis->Del('F2B_WHITELIST');
Open commit View diff
274 $redis->Del('F2B_WHITELIST');
André about 8 years ago 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
275
        $redis->Del('F2B_BLACKLIST');
Open commit View diff
275 $redis->Del('F2B_BLACKLIST');
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
276
        if(!empty($wl)) {
Open commit View diff
276 if(!empty($wl)) {
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
277
          $wl_array = array_map('trim', preg_split( "/( |,|;|\n)/", $wl));
Open commit View diff
277 $wl_array = array_map('trim', preg_split( "/( |,|;|\n)/", $wl));
andryyy about 6 years ago b1db4bf

[Web] Disallow blacklisting of some special networks

Full commit hash
b1db4bf4bcb2f3819dcd2594aa7f486a3eee42c1
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
278
          $wl_array = array_filter($wl_array);
Open commit View diff
278 $wl_array = array_filter($wl_array);
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
279
          if (is_array($wl_array)) {
Open commit View diff
279 if (is_array($wl_array)) {
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
280
            foreach ($wl_array as $wl_item) {
Open commit View diff
280 foreach ($wl_array as $wl_item) {
Kraeutergarten about 7 years ago 4cc63ce

Allow hostnames for fail2ban whitelist.

Full commit hash
4cc63ceeb7af654c4b1cbd7ef796919c9429c4fc
Author
Kraeutergarten <[email protected]>
Date
about 7 years ago
Selected line
281
              if (valid_network($wl_item) || valid_hostname($wl_item)) {
Open commit View diff
281 if (valid_network($wl_item) || valid_hostname($wl_item)) {
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
282
                $redis->hSet('F2B_WHITELIST', $wl_item, 1);
Open commit View diff
282 $redis->hSet('F2B_WHITELIST', $wl_item, 1);
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
283
              }
Open commit View diff
283 }
andryyy about 6 years ago aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
284
              else {
Open commit View diff
284 else {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
285
                $_SESSION['return'][] = array(
Open commit View diff
285 $_SESSION['return'][] = array(
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
286
                  'type' => 'danger',
Open commit View diff
286 'type' => 'danger',
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
287
                  'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
287 'log' => array(__FUNCTION__, $_action, $_data_log),
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
288
                  'msg' => array('network_host_invalid', $wl_item)
Open commit View diff
288 'msg' => array('network_host_invalid', $wl_item)
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
289
                );
Open commit View diff
289 );
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
290
                continue;
Open commit View diff
290 continue;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
291
              }
Open commit View diff
291 }
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
292
            }
Open commit View diff
292 }
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
293
          }
Open commit View diff
293 }
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
294
        }
Open commit View diff
294 }
André about 8 years ago 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
295
        if(!empty($bl)) {
Open commit View diff
295 if(!empty($bl)) {
same change 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
296
          $bl_array = array_map('trim', preg_split( "/( |,|;|\n)/", $bl));
Open commit View diff
296 $bl_array = array_map('trim', preg_split( "/( |,|;|\n)/", $bl));
andryyy about 6 years ago b1db4bf

[Web] Disallow blacklisting of some special networks

Full commit hash
b1db4bf4bcb2f3819dcd2594aa7f486a3eee42c1
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
297
          $bl_array = array_filter($bl_array);
Open commit View diff
297 $bl_array = array_filter($bl_array);
André about 8 years ago 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
298
          if (is_array($bl_array)) {
Open commit View diff
298 if (is_array($bl_array)) {
same change 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
299
            foreach ($bl_array as $bl_item) {
Open commit View diff
299 foreach ($bl_array as $bl_item) {
andryyy about 6 years ago b1db4bf

[Web] Disallow blacklisting of some special networks

Full commit hash
b1db4bf4bcb2f3819dcd2594aa7f486a3eee42c1
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
300
              if (valid_network($bl_item) && !in_array($bl_item, array(
Open commit View diff
300 if (valid_network($bl_item) && !in_array($bl_item, array(
same change b1db4bf

[Web] Disallow blacklisting of some special networks

Full commit hash
b1db4bf4bcb2f3819dcd2594aa7f486a3eee42c1
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
301
                '0.0.0.0',
Open commit View diff
301 '0.0.0.0',
same change b1db4bf

[Web] Disallow blacklisting of some special networks

Full commit hash
b1db4bf4bcb2f3819dcd2594aa7f486a3eee42c1
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
302
                '0.0.0.0/0',
Open commit View diff
302 '0.0.0.0/0',
same change b1db4bf

[Web] Disallow blacklisting of some special networks

Full commit hash
b1db4bf4bcb2f3819dcd2594aa7f486a3eee42c1
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
303
                getenv('IPV4_NETWORK') . '0/24',
Open commit View diff
303 getenv('IPV4_NETWORK') . '0/24',
same change b1db4bf

[Web] Disallow blacklisting of some special networks

Full commit hash
b1db4bf4bcb2f3819dcd2594aa7f486a3eee42c1
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
304
                getenv('IPV4_NETWORK') . '0',
Open commit View diff
304 getenv('IPV4_NETWORK') . '0',
same change b1db4bf

[Web] Disallow blacklisting of some special networks

Full commit hash
b1db4bf4bcb2f3819dcd2594aa7f486a3eee42c1
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
305
                getenv('IPV6_NETWORK')
Open commit View diff
305 getenv('IPV6_NETWORK')
same change b1db4bf

[Web] Disallow blacklisting of some special networks

Full commit hash
b1db4bf4bcb2f3819dcd2594aa7f486a3eee42c1
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
306
              ))) {
Open commit View diff
306 ))) {
André about 8 years ago 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
307
                $redis->hSet('F2B_BLACKLIST', $bl_item, 1);
Open commit View diff
307 $redis->hSet('F2B_BLACKLIST', $bl_item, 1);
same change 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
308
              }
Open commit View diff
308 }
andryyy about 6 years ago aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
309
              else {
Open commit View diff
309 else {
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
310
                $_SESSION['return'][] = array(
Open commit View diff
310 $_SESSION['return'][] = array(
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
311
                  'type' => 'danger',
Open commit View diff
311 'type' => 'danger',
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
312
                  'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
312 'log' => array(__FUNCTION__, $_action, $_data_log),
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
313
                  'msg' => array('network_host_invalid', $bl_item)
Open commit View diff
313 'msg' => array('network_host_invalid', $bl_item)
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
314
                );
Open commit View diff
314 );
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
315
                continue;
Open commit View diff
315 continue;
same change aef15f0

[Web] Allow CIDR as allowed API networks; other minor fixes

Full commit hash
aef15f004a9c639a85e8ba3dc49e75a03e8dc385
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
316
              }
Open commit View diff
316 }
André about 8 years ago 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
317
            }
Open commit View diff
317 }
same change 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
318
          }
Open commit View diff
318 }
same change 05e026d

[Netfilter] New ban method, allow to set blacklists

Full commit hash
05e026db3a9d2ab098b26436b3b04cde0783ec4a
Author
André <[email protected]>
Date
about 8 years ago
Selected line
319
        }
Open commit View diff
319 }
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
320
      }
Open commit View diff
320 }
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
321
      catch (RedisException $e) {
Open commit View diff
321 catch (RedisException $e) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
322
        $_SESSION['return'][] = array(
Open commit View diff
322 $_SESSION['return'][] = array(
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
323
          'type' => 'danger',
Open commit View diff
323 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
324
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
324 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
325
          'msg' => array('redis_error', $e)
Open commit View diff
325 'msg' => array('redis_error', $e)
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
326
        );
Open commit View diff
326 );
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
327
        return false;
Open commit View diff
327 return false;
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
328
      }
Open commit View diff
328 }
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
329
      $_SESSION['return'][] = array(
Open commit View diff
329 $_SESSION['return'][] = array(
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
330
        'type' => 'success',
Open commit View diff
330 'type' => 'success',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
331
        'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
331 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
332
        'msg' => 'f2b_modified'
Open commit View diff
332 'msg' => 'f2b_modified'
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
333
      );
Open commit View diff
333 );
same change 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
334
    break;
Open commit View diff
334 break;
FreddleSpl0it about 3 years ago e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
335
    case 'banlist':
Open commit View diff
335 case 'banlist':
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
336
      try {
Open commit View diff
336 try {
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
337
        $f2b_options = json_decode($redis->Get('F2B_OPTIONS'), true);
Open commit View diff
337 $f2b_options = json_decode($redis->Get('F2B_OPTIONS'), true);
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
338
      } 
Open commit View diff
338 }
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
339
      catch (RedisException $e) {
Open commit View diff
339 catch (RedisException $e) {
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
340
        $_SESSION['return'][] = array(
Open commit View diff
340 $_SESSION['return'][] = array(
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
341
          'type' => 'danger',
Open commit View diff
341 'type' => 'danger',
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
342
          'log' => array(__FUNCTION__, $_action, $_data_log, $_extra),
Open commit View diff
342 'log' => array(__FUNCTION__, $_action, $_data_log, $_extra),
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
343
          'msg' => array('redis_error', $e)
Open commit View diff
343 'msg' => array('redis_error', $e)
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
344
        );
Open commit View diff
344 );
FreddleSpl0it about 3 years ago 987cfd5

[Web] f2b banlist - add http status codes

Full commit hash
987cfd5dae4014b35c183ce4be0e1f8856950116
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
345
        http_response_code(500);
Open commit View diff
345 http_response_code(500);
FreddleSpl0it about 3 years ago e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
346
        return false;
Open commit View diff
346 return false;
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
347
      }
Open commit View diff
347 }
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
348
      if (is_array($_extra)) {
Open commit View diff
348 if (is_array($_extra)) {
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
349
        $_extra = $_extra[0];
Open commit View diff
349 $_extra = $_extra[0];
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
350
      }
Open commit View diff
350 }
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
351
      if ($_extra != $f2b_options['banlist_id']){
Open commit View diff
351 if ($_extra != $f2b_options['banlist_id']){
FreddleSpl0it about 3 years ago 987cfd5

[Web] f2b banlist - add http status codes

Full commit hash
987cfd5dae4014b35c183ce4be0e1f8856950116
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
352
        http_response_code(404);
Open commit View diff
352 http_response_code(404);
FreddleSpl0it about 3 years ago e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
353
        return false;
Open commit View diff
353 return false;
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
354
      }
Open commit View diff
354 }
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
355
Open commit View diff
355
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
356
      switch ($_data) {
Open commit View diff
356 switch ($_data) {
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
357
        case 'get':
Open commit View diff
357 case 'get':
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
358
          try {
Open commit View diff
358 try {
FreddleSpl0it about 3 years ago 65cbc47

[Web] add manage f2b external option

Full commit hash
65cbc478b8ac644c826bbb5153bd557f29cda10f
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
359
            $bl = $redis->hKeys('F2B_BLACKLIST');
Open commit View diff
359 $bl = $redis->hKeys('F2B_BLACKLIST');
same change 65cbc47

[Web] add manage f2b external option

Full commit hash
65cbc478b8ac644c826bbb5153bd557f29cda10f
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
360
            $active_bans = $redis->hKeys('F2B_ACTIVE_BANS');
Open commit View diff
360 $active_bans = $redis->hKeys('F2B_ACTIVE_BANS');
FreddleSpl0it about 3 years ago e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
361
          } 
Open commit View diff
361 }
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
362
          catch (RedisException $e) {
Open commit View diff
362 catch (RedisException $e) {
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
363
            $_SESSION['return'][] = array(
Open commit View diff
363 $_SESSION['return'][] = array(
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
364
              'type' => 'danger',
Open commit View diff
364 'type' => 'danger',
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
365
              'log' => array(__FUNCTION__, $_action, $_data_log, $_extra),
Open commit View diff
365 'log' => array(__FUNCTION__, $_action, $_data_log, $_extra),
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
366
              'msg' => array('redis_error', $e)
Open commit View diff
366 'msg' => array('redis_error', $e)
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
367
            );
Open commit View diff
367 );
FreddleSpl0it about 3 years ago 987cfd5

[Web] f2b banlist - add http status codes

Full commit hash
987cfd5dae4014b35c183ce4be0e1f8856950116
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
368
            http_response_code(500);
Open commit View diff
368 http_response_code(500);
FreddleSpl0it about 3 years ago e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
369
            return false;
Open commit View diff
369 return false;
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
370
          }
Open commit View diff
370 }
FreddleSpl0it about 3 years ago 65cbc47

[Web] add manage f2b external option

Full commit hash
65cbc478b8ac644c826bbb5153bd557f29cda10f
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
371
          $banlist = implode("\n", array_merge($bl, $active_bans));
Open commit View diff
371 $banlist = implode("\n", array_merge($bl, $active_bans));
FreddleSpl0it about 3 years ago e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
372
          return $banlist;
Open commit View diff
372 return $banlist;
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
373
        break;
Open commit View diff
373 break;
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
374
        case 'refresh':
Open commit View diff
374 case 'refresh':
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
375
          if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
375 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
376
            return false;
Open commit View diff
376 return false;
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
377
          }
Open commit View diff
377 }
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
378
Open commit View diff
378
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
379
          $f2b_options['banlist_id'] = uuid4();
Open commit View diff
379 $f2b_options['banlist_id'] = uuid4();
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
380
          try {
Open commit View diff
380 try {
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
381
            $redis->Set('F2B_OPTIONS', json_encode($f2b_options));
Open commit View diff
381 $redis->Set('F2B_OPTIONS', json_encode($f2b_options));
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
382
          } 
Open commit View diff
382 }
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
383
          catch (RedisException $e) {
Open commit View diff
383 catch (RedisException $e) {
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
384
            $_SESSION['return'][] = array(
Open commit View diff
384 $_SESSION['return'][] = array(
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
385
              'type' => 'danger',
Open commit View diff
385 'type' => 'danger',
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
386
              'log' => array(__FUNCTION__, $_action, $_data_log, $_extra),
Open commit View diff
386 'log' => array(__FUNCTION__, $_action, $_data_log, $_extra),
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
387
              'msg' => array('redis_error', $e)
Open commit View diff
387 'msg' => array('redis_error', $e)
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
388
            );
Open commit View diff
388 );
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
389
            return false;
Open commit View diff
389 return false;
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
390
          }
Open commit View diff
390 }
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
391
Open commit View diff
391
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
392
          $_SESSION['return'][] = array(
Open commit View diff
392 $_SESSION['return'][] = array(
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
393
            'type' => 'success',
Open commit View diff
393 'type' => 'success',
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
394
            'log' => array(__FUNCTION__, $_action, $_data_log, $_extra),
Open commit View diff
394 'log' => array(__FUNCTION__, $_action, $_data_log, $_extra),
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
395
            'msg' => 'f2b_banlist_refreshed'
Open commit View diff
395 'msg' => 'f2b_banlist_refreshed'
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
396
          );
Open commit View diff
396 );
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
397
          return true;
Open commit View diff
397 return true;
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
398
        break;
Open commit View diff
398 break;
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
399
      }
Open commit View diff
399 }
same change e2e8fbe

[Web] add f2b_banlist endpoint

Full commit hash
e2e8fbe3131327eb65f22e31fb200d55c59512dd
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
400
    break;
Open commit View diff
400 break;
andryyy about 9 years ago 6c64ffb

[acme-mailcow] Auto-detect container ids for restart; Restart containers after restore

Full commit hash
6c64ffbd49cd99f0b4649703aa68b6e4e4b390b2
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
401
  }
Open commit View diff
401 }
André over 8 years ago ade4b9e

[Postfix, Web] Feature: BCC maps

Full commit hash
ade4b9e7ae7e28535ed261535526bc4e98ff48b4
Author
André <[email protected]>
Date
over 8 years ago
Selected line
402
}
Open commit View diff
402 }