diff options
| author | somebodywashere <68244480+somebodywashere@users.noreply.github.com> | 2023-06-15 22:15:34 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-15 22:15:34 +0300 |
| commit | 4e89c71095614ff2207f71925e18e5a8cd2cd830 (patch) | |
| tree | 8ef4139dd0fed938e0b783df1bcf9580da79ce50 /web/web.go | |
| parent | d40e61fc454a9c42d2ac69950074bf3504d484bf (diff) | |
Removed ipLimit from the panel, changed the code to work with fail2ban (#580)
* Logging for fail2ban service
Removed limitDevice and other unnecessary functions
* Logging for fail2ban service
Removed limitDevice and other unnecessary functions
* fixed shouldCleanLog
* last fix
* reduced ip limit detection frequency to 30 sec (less logging, more precise)
changed maxretry in fail2ban jail config to 2 to fit above
* fixed check delay
* added 5 seconds delay before cleaning logs
Diffstat (limited to 'web/web.go')
| -rw-r--r-- | web/web.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -250,8 +250,8 @@ func (s *Server) startTask() { // Check the inbound traffic every 30 seconds that the traffic exceeds and expires s.cron.AddJob("@every 30s", job.NewCheckInboundJob()) - // check client ips from log file every 10 sec - s.cron.AddJob("@every 10s", job.NewCheckClientIpJob()) + // check client ips from log file every 30 sec + s.cron.AddJob("@every 30s", job.NewCheckClientIpJob()) // Make a traffic condition every day, 8:30 var entry cron.EntryID |
