🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #268795

Iptables Suggestions

#268795
From: Red John
Date: Thu, 03 Jul 2014 18:44
158 lines
8300 bytes
With the help of admin@inwtx.net I have setup a cron job to
monitor when may webpage is being probed and results in 404
errors. There are some sites from China and Russia where I have
blocked the entire range of IP's for the offending site. The
problem is that I am getting 2-3 404 probes per day and my
iptables file is currently blocking 50 plus IP's. At some point
this file will become very large and I'm concerned about its
maintenance.

Here is a sample of one IP address doing an extensive probe of
my server:

118.139.176.137 - - [02/Jul/2014:18:26:48 -0700] "HEAD
/checknfurl123 HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:48 -0700] "HEAD
/.ssh/id_rsa HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:48 -0700] "HEAD
/.ssh/id_dsa HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:48 -0700] "HEAD /.ssh/rsa
HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:48 -0700] "HEAD /.ssh/dsa
HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:48 -0700] "HEAD /.ssh/key
HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:49 -0700] "HEAD
/.ssh/priv HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:49 -0700] "HEAD
/.ssh/id_rsa.old HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:49 -0700] "HEAD
/.ssh/id_dsa.old HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:49 -0700] "HEAD
/.ssh/identity HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:49 -0700] "HEAD
/.ssh/authorized_keys HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:50 -0700] "HEAD
/.ssh/authorized_keys2 HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:50 -0700] "HEAD
/.ssh/known_hosts HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:50 -0700] "HEAD
/.ssh/config HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:50 -0700] "HEAD
/.ssh/config.old HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:50 -0700] "HEAD
/.ssh/config~ HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:50 -0700] "HEAD
/.ssh/id_rsa.pub HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:51 -0700] "HEAD
/.ssh/id_dsa.pub HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:51 -0700] "HEAD
/.ssh/id_rsa_2 HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:51 -0700] "HEAD
/.ssh/id_rsa.2 HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:51 -0700] "HEAD
/.ssh/id_dsa_2 HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:51 -0700] "HEAD
/.ssh/id_dsa.2 HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:52 -0700] "HEAD
/.ssh/id_ecdsa HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:52 -0700] "HEAD
/.ssh/id_ecdsa.2 HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:52 -0700] "HEAD
/.ssh/id_ecdsa_2 HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:52 -0700] "HEAD
/.ssh/id_rsa2 HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:52 -0700] "HEAD
/.ssh/id_dsa2 HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:53 -0700] "HEAD
/.ssh/id_ecdsa2 HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:53 -0700] "HEAD
/.ssh/id_ecdsa_old HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:53 -0700] "HEAD
/.ssh/id_ecdsa.old HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:53 -0700] "HEAD
/.ssh/id_rsa.bak HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:53 -0700] "HEAD
/.ssh/id_dsa.bak HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:53 -0700] "HEAD
/.bash_history HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:54 -0700] "HEAD /.history
HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:54 -0700] "HEAD
/.sh_history HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:54 -0700] "HEAD
/.bitcoin/wallet.dat HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:54 -0700] "HEAD
/.litecoin/wallet.dat HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:54 -0700] "HEAD
/.psi/profiles/default/config.xml HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:55 -0700] "HEAD
/.purple/accounts.xml HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:55 -0700] "HEAD
/.mozilla/firefox/profiles.ini HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:55 -0700] "HEAD /id_ecdsa
HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:55 -0700] "HEAD
/id_ecdsa.2 HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:55 -0700] "HEAD
/id_ecdsa_2 HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:56 -0700] "HEAD
/id_ecdsa_old HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:56 -0700] "HEAD
/id_ecdsa.old HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:56 -0700] "HEAD /config
HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:56 -0700] "HEAD /id_rsa
HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:56 -0700] "HEAD /id_dsa
HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:56 -0700] "HEAD /rsa
HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:57 -0700] "HEAD /dsa
HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:57 -0700] "HEAD /key
HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:57 -0700] "HEAD /key.priv
HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:57 -0700] "HEAD
/id_rsa.old HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:57 -0700] "HEAD
/id_dsa.old HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:58 -0700] "HEAD /identity
HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:58 -0700] "HEAD
/authorized_keys HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:58 -0700] "HEAD
/authorized_keys2 HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:58 -0700] "HEAD
/known_hosts HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:58 -0700] "HEAD
/id_rsa.pub HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:59 -0700] "HEAD
/id_dsa.pub HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:59 -0700] "HEAD
/.htpasswd HTTP/1.1" 403 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:59 -0700] "HEAD /htpasswd
HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:59 -0700] "HEAD
/.htpasswd~ HTTP/1.1" 403 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:59 -0700] "HEAD /passwd
HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:26:59 -0700] "HEAD /.passwd
HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:27:00 -0700] "HEAD
/passwords HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:27:00 -0700] "HEAD /password
HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:27:00 -0700] "HEAD
/passwords.txt HTTP/1.1" 404 163 "-" "-"
118.139.176.137 - - [02/Jul/2014:18:27:00 -0700] "HEAD /pass
HTTP/1.1" 404 163 "-" "-"

My iptables entry for this IP is:

-A INPUT -s 118.139.176.137 -j DROP

Are there any other tools that can be used to automatically
block these types of probes?
Technical Details
Message-ID: <20140703184416.A496DEAB1D@snorky.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.roellig-ltd.de!open-news-network.org!cyclone02.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!hq-usenetpeers!hq-usenetpeers.eweka.nl!mail2news.mixmin.net!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <20140703184416.A496DEAB1D@snorky.mixmin.net>
Subject: Iptables Suggestions
Date: Thu, 03 Jul 2014 18:44:16 +0000
From: Red John <redjohn@nym.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.roellig-ltd.de!open-news-network.org!cyclone02.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!hq-usenetpeers!hq-usenetpeers.eweka.nl!mail2news.mixmin.net!not-for-mail
Newsgroups: alt.privacy.anon-server
Lines: 159
Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net
X-Received-Body-CRC: 2777921403
X-Received-Bytes: 7844