Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #229260
| From | Håkon Alstadheim <hakon@alstadheim.priv.no> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: swamp rat bots Q |
| Date | 2020-12-03 22:00 +0100 |
| Message-ID | <Bi3RM-4Gr-5@gated-at.bofh.it> (permalink) |
| References | <BhWnf-85-7@gated-at.bofh.it> <BhXt0-105-17@gated-at.bofh.it> <BhXCF-13o-5@gated-at.bofh.it> <Bi1ZD-3y2-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Den 03.12.2020 19:58, skrev Gene Heskett: > On Thursday 03 December 2020 09:14:29 Greg Wooledge wrote: > >> On Thu, Dec 03, 2020 at 09:02:47AM -0500, Gene Heskett wrote: >>> Yes John. But explain to me what fail2ban is sopposed to do? >> It's supposed to "monitor" (tail -F equivalent) your log files, and >> look for anomalies. If it finds one, it's supposed to take action, >> which is typically adding an entry to iptables. >> >>> Its running, but has failed to ban anything no matter what sort of >>> 403's I return. >> You need to configure it. Tell it what log files to read, what is to >> be considered an anomaly, and what action to take. > And where do I do that? > > Cheers, Gene Heskett If you don't know where to start with a package there are two options: Look at the files installed, or search the net. e.g.: <code> $ dpkg -L fail2ban | grep man1 /usr/share/man/man1 /usr/share/man/man1/fail2ban-client.1.gz /usr/share/man/man1/fail2ban-regex.1.gz /usr/share/man/man1/fail2ban-server.1.gz /usr/share/man/man1/fail2ban-testcases.1.gz /usr/share/man/man1/fail2ban.1.gz </code> Obvious choice here is the eponymous man-page fail2ban. So start there. Once you have scanned that short page, you will be pointed to jail(5), i.e. the manual page on configuration. (Config-files are in section 5 of the man-pages. ) For a look at the filters installed but not activated, do <code> dpkg -L fail2ban | grep filter.d </code> There are interesting filters there for your case. You will probably want to adjust the filters for your particular nemesis. This is quite quick with the aid of fail2ban-regex(1) . You will probably NOT need to adjust which log-files are scanned, as debian installs default patterns for various logs-file-names. See /etc/fail2ban/paths* . Lastly, once you have a jail with filters you like configured, make sure the server is running, and watch
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
swamp rat bots Q Gene Heskett <gheskett@shentel.net> - 2020-12-03 14:00 +0100
Re: swamp rat bots Q john doe <johndoe65534@mail.com> - 2020-12-03 14:10 +0100
Re: swamp rat bots Q Gene Heskett <gheskett@shentel.net> - 2020-12-03 15:10 +0100
Re: swamp rat bots Q Greg Wooledge <wooledg@eeg.ccf.org> - 2020-12-03 15:20 +0100
Re: swamp rat bots Q Gene Heskett <gheskett@shentel.net> - 2020-12-03 20:00 +0100
Re: swamp rat bots Q Håkon Alstadheim <hakon@alstadheim.priv.no> - 2020-12-03 22:00 +0100
Re: swamp rat bots Q Keith Christian <keith1christian@gmail.com> - 2020-12-03 22:30 +0100
Re: swamp rat bots Q john doe <johndoe65534@mail.com> - 2020-12-03 16:40 +0100
Re: swamp rat bots Q Andy Smith <andy@strugglers.net> - 2020-12-04 03:20 +0100
Re: swamp rat bots Q Gene Heskett <gheskett@shentel.net> - 2020-12-04 06:10 +0100
Re: swamp rat bots Q Andy Smith <andy@strugglers.net> - 2020-12-04 07:10 +0100
Re: swamp rat bots Q john doe <johndoe65534@mail.com> - 2020-12-04 07:40 +0100
Re: swamp rat bots Q Gene Heskett <gheskett@shentel.net> - 2020-12-04 08:00 +0100
Re: swamp rat bots Q Gene Heskett <gheskett@shentel.net> - 2020-12-04 07:50 +0100
Re: swamp rat bots Q john doe <johndoe65534@mail.com> - 2020-12-04 08:20 +0100
Re: swamp rat bots Q Andy Smith <andy@strugglers.net> - 2020-12-04 08:50 +0100
Re: swamp rat bots Q "Jeremy Nicoll" <jn.ml.dbn.25@letterboxes.org> - 2020-12-04 11:50 +0100
Re: swamp rat bots Q Gene Heskett <gheskett@shentel.net> - 2020-12-04 14:50 +0100
Re: swamp rat bots Q Andrei POPESCU <andreimpopescu@gmail.com> - 2020-12-04 12:00 +0100
Re: swamp rat bots Q "hdv@gmail" <hdv.jadev@gmail.com> - 2020-12-04 10:00 +0100
Re: swamp rat bots Q Gene Heskett <gheskett@shentel.net> - 2020-12-04 14:50 +0100
Re: swamp rat bots Q Reco <recoverym4n@enotuniq.net> - 2020-12-04 18:40 +0100
Re: swamp rat bots Q grumpy@mailfence.com - 2020-12-04 19:10 +0100
Re: swamp rat bots Q Reco <recoverym4n@enotuniq.net> - 2020-12-04 19:20 +0100
Re: swamp rat bots Q Carl Fink <carlf@panix.com> - 2020-12-04 19:30 +0100
Re: swamp rat bots Q Gene Heskett <gheskett@shentel.net> - 2020-12-04 21:00 +0100
Re: swamp rat bots Q Gene Heskett <gheskett@shentel.net> - 2020-12-04 21:00 +0100
Re: swamp rat bots Q Tixy <tixy@yxit.co.uk> - 2020-12-04 22:20 +0100
Re: swamp rat bots Q Gene Heskett <gheskett@shentel.net> - 2020-12-04 23:10 +0100
Re: swamp rat bots Q Tixy <tixy@yxit.co.uk> - 2020-12-04 23:40 +0100
Re: swamp rat bots Q Gene Heskett <gheskett@shentel.net> - 2020-12-05 01:00 +0100
Re: swamp rat bots Q Andrei POPESCU <andreimpopescu@gmail.com> - 2020-12-05 11:00 +0100
Re: swamp rat bots Q elvis <elvis@dogonfire.com> - 2020-12-05 01:50 +0100
Re: swamp rat bots Q grumpy@mailfence.com - 2020-12-05 02:00 +0100
Web-bot tarpit aka spider trap (was: swamp rat bots Q) Nicolas George <george@nsup.org> - 2020-12-04 15:10 +0100
Re: Web-bot tarpit aka spider trap (was: swamp rat bots Q) Gene Heskett <gheskett@shentel.net> - 2020-12-04 17:10 +0100
Re: Web-bot tarpit aka spider trap (was: swamp rat bots Q) <tomas@tuxteam.de> - 2020-12-04 22:10 +0100
Re: Web-bot tarpit aka spider trap (was: swamp rat bots Q) "Martin McCormick" <martin.m@suddenlink.net> - 2020-12-06 20:20 +0100
Re: Web-bot tarpit aka spider trap (was: swamp rat bots Q) David Christensen <dpchrist@holgerdanske.com> - 2020-12-06 21:30 +0100
Re: Web-bot tarpit aka spider trap (was: swamp rat bots Q) Charles Curley <charlescurley@charlescurley.com> - 2020-12-06 23:10 +0100
Re: Web-bot tarpit aka spider trap (was: swamp rat bots Q) Gene Heskett <gheskett@shentel.net> - 2020-12-07 02:30 +0100
Re: Web-bot tarpit aka spider trap (was: swamp rat bots Q) Doug McGarrett <dmcgarrett@optonline.net> - 2020-12-07 04:00 +0100
csiph-web