09-08-07 12:36 AM
On Thu, 6 Sep 2007, in the Usenet newsgroup comp.unix.admin, in article
<fbqg6g$sba$1@news.Stanford.EDU>, nobody wrote:
>we havea few linux servers at an isp running ssh and other open ports.
>hrowever we are being charged with extra bandwidth which i believe is
>due to network scans on ssh unsucessful logon attempts.
Welcome to the Internet - where there are 700 million r00ted windoze
boxes being used to scan systems for vulnerabilities. SSH is a very
popular port for skript kiddiez to be scanning, looking for open
proxies and systems configured by congenital idiots like themselves.
>is there a way to prevent this
Do all ports of your systems need to be accessible from every IP address
on the planet (about 2.53 billion IPv4 addresses, and perhaps several
orders of magnitude more IPv6 addresses), or do you think you might be
able to narrow the allowed ranges down a bit?
Who are your users? Do they have the intelligence to be able to use
an alternative port number instead of 22, or are they just clicking on
some icon that is preconfigured? Most of the skript kiddiez and bots
have a similar skill level, and if you move your SSH server to a non-
standard port number...
>Date: Thu, 6 Sep 2007 20:22:56 -0700
yeah - port 2256 looks like s good alternative, or is remembering
unusual numbers beyond the skills of your users? It's not "security
through obscurity" if you have the same _authentication_ requirements
that you had when the SSH daemon was listening on port 22.
>is there some software that will give me info on who is scanning and
>for how long etc...
[compton ~]$ whatis grep less more
grep (1) - print lines matching a pattern
less (1) - opposite of more
more (1) - file perusal filter for crt viewing
[compton ~]$
although the information in your logs won't tell you who they are. Most
of the SSH scans are from r00ted windoze boxes and zombies, and the
IP addresses will merely suggest ranges of IP addresses to permanently
block. There was a piece of crap called "PortSentry" that was available
for several years that could be set to automagically block addresses
that were causing failed logins, or were perceived to be port-scanning.
Most people decided to stop using it after shooting themselves in the
naughty bits by auto-blocking. See the Security-Quickstart-HOWTO for
details if you are interested, and even shows you how to configure both
IPCHAINS (2.4.x kernel) and iptables (21.6.x kernel).
Old guy
[ Post a follow-up to this message ]
|