Hi Ciemon,
On Wed, Jan 26, 2011 at 12:59:38PM +0000, Ciemon Dunville wrote:
I setup a new VPS a month or so ago, but in the last
week things have
got a little wild in the apache access and error logs.
Unfortunately a continual background noise of exploit attempts is
the norm.
I'm using firehol, denyhosts and fail2ban to try
and stop the constant
traffic, and I guess it's my lack of regex knowledge that isn't
helping there. Those packages should help prevent stuff like:
203.186.54.50 - - [26/Jan/2011:12:42:12 +0000] "CONNECT
80.176.162.50:25 HTTP/1.0" 200 10417 "-" "-"
178.162.131.33 - - [26/Jan/2011:12:42:53 +0000] "GET
http://vastdata.net/ HTTP/1.1" 200 10312 "-" "-"
123.165.11.194 - - [26/Jan/2011:12:38:18 +0000] "GET
http://proxyjudge2.proxyfire.net/fastenv HTTP/1.1" 404 537 "-"
"Mozill
a/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
I suppose fail2ban etc. could help if you configure them to look for
this kind of stuff. But it's only going to stop the same IPs fro
returning. Before you go that way, what are your goals?
Is this causing you an actual problem?
Is it just the worry that these exploit scanners will actually find
something?
If it's not causing a problem I would be tempted to just split your
vhost accesses into separate logs and forget about it. The crap that
is scanning for exploits/open proxies will just end up in the
default vhost's logs.
I recommend something like Fail2Ban for protecting SSH because your
typical SSH scanner connects and tries thousands of
username/password combinations. You block them and then they move
on. So there's value in blocking them.
Something looking for a web app with an exploit, or seeing if you
are misconfigured into a proxy, will just connect once and try it
and them move on however. You might not see that IP again for ages.
It seems to me that there's a lot less value in firewalling them.
So unless there's some other issue then all I can think is to
protect your apps, keep them up to date and find ways to filter the
noise.
Cheers,
Andy
--
http://bitfolk.com/ -- No-nonsense VPS hosting