Article View: alt.privacy.anon-server
Article #282770Re: Brute Forcing SSH From China 222.186.34.122
From: Anonymous
Date: Sun, 22 May 2016 19:39
Date: Sun, 22 May 2016 19:39
29 lines
1949 bytes
1949 bytes
> Jack Ryan <mixmaster@remailer.cpunk.us> wrote: > >>> If you insist on running sshd listening on port 22 on a machine that faces the public internet, you need get used to this. Everyone who >>> does that sees that. >>> >>> It's pointless reporting it here. >> >> Correct. Change your sshd to another port and that will clean up a huge percent of the breakin attempts. >> > > As you run on linux and have iptables enabled (I hope) just add the below: > (change seconds and hits to your liking) > > /sbin/iptables -N LOGDROP > /sbin/iptables -A LOGDROP -j LOG > /sbin/iptables -A LOGDROP -j DROP > iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --set > iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --update \ > --seconds 90 --hitcount 3 -j LOGDROP Actually been thinking about doing the very thing lately, but too busy being lazy to dig it out on the web. Don't care about logging it so: /sbin/iptables -N JUNK-YARD-BULLDOG /sbin/iptables -A JUNK-YARD-BULLDOG -j DROP iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --set iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --update \ --seconds 90 --hitcount 3 -j JUNK-YARD-BULLDOG
Technical Details
Message-ID:
<396c4e749cfb8d967eed5fbb4a6c6b71@hoi-polloi.org>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:
<nhsrs1$aqi$1@toxic.dizum.net>Show Full Headers
Complete Article Headers
Message-ID: <396c4e749cfb8d967eed5fbb4a6c6b71@hoi-polloi.org> Subject: Re: Brute Forcing SSH From China 222.186.34.122 Date: Sun, 22 May 2016 21:39:15 +0200 From: Anonymous <anonymous@hoi-polloi.org> References: <nhsrs1$aqi$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-mail Newsgroups: alt.privacy.anon-server Organization: dizum.com - The Internet Problem Provider X-Abuse: abuse@dizum.com Injection-Info: sewer.dizum.com - 194.109.206.211 Lines: 29