Article View: alt.privacy.anon-server
Article #282988Re: Fail2Ban
From: Alex de Joode
Date: Wed, 01 Jun 2016 07:36
Date: Wed, 01 Jun 2016 07:36
35 lines
3250 bytes
3250 bytes
Ant <ANTant@zimage.com> wrote: : "Anonymous Remailer (austria)" <mixmaster@remailer.privacy.at> wrote: : :> > :> > I have been following the thread "Brute Forcing SSH From China 222.186.34.122" :> > with interest. At "brabus" & "holland" I have been manually updating :> > iptables regularly as a function of what's going on in /var/log/auth.log. :> > Manual intervention can be tedious and at times consuming. :> > :> > I have moved brabus & holland away from port 22, and I will observe the results :> > over :> > the next few days. :> > :> > Is anyone using Fail2Ban? If so I would be interested to hear comments :> > regarding practicality and effectiveness. : :> After researching it, I decided to not install it. The main thing I didn't like about it is that you can not get it to permanently ban someone. It always opens them up eventually so that they can come back. Me experience is that the bad guys always do come back for future break in tries again later. : :> I run tcpdump continuously on my system and keep track of how large the dump file has become. Once it gets to around 300+ KB - usually daily, I download it and look through it with WireShark. It is easy to see who is trying to do what with the record dump and then manually iptables ban the nastys. Unfortunately this method is not attainable to most server operators because it takes a very complex setup. Not that you are anyone else for that matter couldn't have it explained and understand it, but I have had my fill of too many people get really nasty in the past upon explaining some things, so I decided to cut myself off from trying to be a help to others since. I don't care to open myself up to anymore unnecessary BS in my life. : :> As to postfix blocking/rejecting spam forwarding, those are detected in the syslog. That is where I find those badies and block their addresses. : : Try DenyHosts. You most likely will manage the server from 1 country, so exclude all other countries (and ip only) connections: http://xmodulo.com/block-network-traffic-by-country-linux.html Then install denyhosts or fail2ban. Make sure you disbale root logins and only accept ssh.keys, that will make you relatively safe. Cheers, -- bitcoins:1QAthQz4LKHWZURTVax5F75mj6d5uY8shW
Technical Details
Message-ID:
<nim3a5$q9r$1@toxic.dizum.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mailReferences:
<45b9404667ac856ef28c9a3974761d39@anon.holland.remailer.nl> <b61bb39ed89a4ea98ffec23fe4670e4a@remailer.privacy.at> <IuOdnQK7TsbVytPKnZ2dnUU7-fOdnZ2d@earthlink.com>Show Full Headers
Complete Article Headers
Message-ID: <nim3a5$q9r$1@toxic.dizum.net> Subject: Re: Fail2Ban Date: Wed, 01 Jun 2016 07:36:37 +0000 From: Alex de Joode <usura@despair.sabotage.org> References: <45b9404667ac856ef28c9a3974761d39@anon.holland.remailer.nl> <b61bb39ed89a4ea98ffec23fe4670e4a@remailer.privacy.at> <IuOdnQK7TsbVytPKnZ2dnUU7-fOdnZ2d@earthlink.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail Newsgroups: alt.privacy.anon-server Organization: dizum.com - The Internet Problem Provider. Lines: 35 NNTP-Posting-Host: despair.sabotage.org X-Trace: toxic.dizum.net 1464766597 26939 46.23.85.40 (1 Jun 2016 07:36:37 GMT) X-Complaints-To: abuse@dizum.net NNTP-Posting-Date: Wed, 1 Jun 2016 07:36:37 +0000 (UTC) Cancel-Lock: sha1:0BAAPzpLxNqyGij8ldoHm7pWPbU=