Thread View: alt.privacy.anon-server
27 messages
27 total messages
Started by Red John
Wed, 10 Dec 2014 22:14
Server Slammed
Author: Red John
Date: Wed, 10 Dec 2014 22:14
Date: Wed, 10 Dec 2014 22:14
17 lines
1453 bytes
1453 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 My server over the past 48 hours has been getting slammed with over a thousand attempts a day to gain access via SSH. I normally have a little over 200 hundred entries in my iptables. Right now Fail2ban is working overtime and has brought this number up over 400. Anyone else seeing this kind of activity on their server? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (MingW32) iEYEARECAAYFAlSIoqkACgkQSrCPi4AVv5lSZACfWAthsJfOl+O+6dVIvClFH1ai evMAn0wdRdAMVzdlPbE8S+wI5sqZvpIC =MY6Z -----END PGP SIGNATURE-----
Re: Server Slammed
Author: Anonymous
Date: Wed, 10 Dec 2014 22:28
Date: Wed, 10 Dec 2014 22:28
6 lines
1344 bytes
1344 bytes
On Wed, 10 Dec 2014 22:14:37 +0000 (GMT), Red John <redjohn@nym.mixmin.net> wrote: >Anyone else seeing this kind of activity on their server? Not since I moved it off port 22.
Re: Server Slammed
Author: anonymous
Date: Wed, 10 Dec 2014 23:15
Date: Wed, 10 Dec 2014 23:15
17 lines
1593 bytes
1593 bytes
> My server over the past 48 hours has been getting slammed with over > a thousand attempts a day to gain access via SSH. I normally have a > little over 200 hundred entries in my iptables. Right now Fail2ban > is working overtime and has brought this number up over 400. Anyone > else seeing this kind of activity on their server? > nano /etc/ssh/sshd_config Change this port: # What ports, IPs and protocols we listen for Port 22 Do this: /etc/init.d/ssh restart
Re: Server Slammed
Author: Anonymous Remailer (austria)
Date: Wed, 10 Dec 2014 23:25
Date: Wed, 10 Dec 2014 23:25
13 lines
1329 bytes
1329 bytes
> My server over the past 48 hours has been getting slammed with over > a thousand attempts a day to gain access via SSH. I normally have a > little over 200 hundred entries in my iptables. Right now Fail2ban > is working overtime and has brought this number up over 400. Anyone > else seeing this kind of activity on their server? I was hit with 70+ the day before yesterday and 88 yesterday, up until I moved my ssh port off 22. Have not had any hits today. inwtx.net
Re: Server Slammed
Author: Red John
Date: Thu, 11 Dec 2014 01:34
Date: Thu, 11 Dec 2014 01:34
26 lines
1618 bytes
1618 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12/10/2014 2:28 PM, Anonymous wrote:> On Wed, 10 Dec 2014 22:14:37 +0000 (GMT), Red John <redjohn@nym.mixmin.net> wrote: > >> Anyone else seeing this kind of activity on their server? > > Not since I moved it off port 22. > Is this as simple as opening up sshd_config and changing the port from 22 to something else and then doing a: /etc/init.d/ssh restart Is there a specific range of port numbers that I should stay away from? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (MingW32) iEYEARECAAYFAlSI1S0ACgkQSrCPi4AVv5meeACfdikePOoFHYedlILUBbLfuuYE CHsAoOznQFEjKS/YniHEZNH0QIJL1bVP =aJM8 -----END PGP SIGNATURE-----
Re: Server Slammed
Author: Anonymous
Date: Thu, 11 Dec 2014 02:40
Date: Thu, 11 Dec 2014 02:40
15 lines
1756 bytes
1756 bytes
On Thu, 11 Dec 2014 01:34:27 +0000 (GMT), Red John <redjohn@nym.mixmin.net> wrote: >Is this as simple as opening up sshd_config and changing the port >from 22 to something else and then doing a: > >/etc/init.d/ssh restart > >Is there a specific range of port numbers that I should stay away >from? It's that simple so long as '/etc/init.d/ssh restart' is valid on your system. I use a port above 1024, but other than that it won't matter. You still may have someone or something stumble into it, but it will be quite rare.
Re: Server Slammed
Author: Anonymous Remailer (austria)
Date: Thu, 11 Dec 2014 02:56
Date: Thu, 11 Dec 2014 02:56
21 lines
1757 bytes
1757 bytes
In article <mq0i8a1qiqeak746aquu5jh8bp0bsocc8c@news.stray.cat.edu> Anonymous wrote: > > On Thu, 11 Dec 2014 01:34:27 +0000 (GMT), Red John <redjohn@nym.mixmin.net> wrote: > > >Is this as simple as opening up sshd_config and changing the port > >from 22 to something else and then doing a: > > > >/etc/init.d/ssh restart > > > >Is there a specific range of port numbers that I should stay away > >from? > > It's that simple so long as '/etc/init.d/ssh restart' is valid on your system. > > I use a port above 1024, but other than that it won't matter. You still may have someone or something stumble into it, but it will be > quite rare. Firewall port?
Re: Server Slammed
Author: Anonymous
Date: Thu, 11 Dec 2014 03:08
Date: Thu, 11 Dec 2014 03:08
24 lines
2185 bytes
2185 bytes
On Thu, 11 Dec 2014 03:56:30 +0100 (CET), "Anonymous Remailer (austria)" <mixmaster@remailer.privacy.at> wrote: > >In article <mq0i8a1qiqeak746aquu5jh8bp0bsocc8c@news.stray.cat.edu> >Anonymous wrote: >> >> On Thu, 11 Dec 2014 01:34:27 +0000 (GMT), Red John <redjohn@nym.mixmin.net> wrote: >> >> >Is this as simple as opening up sshd_config and changing the port >> >from 22 to something else and then doing a: >> > >> >/etc/init.d/ssh restart >> > >> >Is there a specific range of port numbers that I should stay away >> >from? >> >> It's that simple so long as '/etc/init.d/ssh restart' is valid on your system. >> >> I use a port above 1024, but other than that it won't matter. You still may have someone or something stumble into it, but it will be >> quite rare. > >Firewall port? Well sure. You have make that change there too.
Re: Server Slammed
Author: Anonymous Remailer (austria)
Date: Thu, 11 Dec 2014 05:11
Date: Thu, 11 Dec 2014 05:11
20 lines
1377 bytes
1377 bytes
> Anyone else seeing this kind of activity on their server? > Not since I moved it off port 22. > Is this as simple as opening up sshd_config and changing the port > from 22 to something else and then doing a: > /etc/init.d/ssh restart > Is there a specific range of port numbers that I should stay away > from? Just don't make it 222 or 1022, something that might be checked easily. Don't make it a standard port either. Changing the port will stops automatic attacks against your SSH and some script kiddies.
Re: Server Slammed
Author: Nomen Nescio
Date: Thu, 11 Dec 2014 13:15
Date: Thu, 11 Dec 2014 13:15
28 lines
1737 bytes
1737 bytes
> On Thu, 11 Dec 2014 03:56:30 +0100 (CET), "Anonymous Remailer (austria)" <mixmaster@remailer.privacy.at> wrote: > In article <mq0i8a1qiqeak746aquu5jh8bp0bsocc8c@news.stray.cat.edu> > Anonymous wrote: > On Thu, 11 Dec 2014 01:34:27 +0000 (GMT), Red John <redjohn@nym.mixmin.net> wrote: > Is this as simple as opening up sshd_config and changing the port > from 22 to something else and then doing a: > /etc/init.d/ssh restart > Is there a specific range of port numbers that I should stay away > from? > It's that simple so long as '/etc/init.d/ssh restart' is valid on your system. > I use a port above 1024, but other than that it won't matter. You still may have someone or something stumble into it, but it will be > quite rare. > Firewall port? > Well sure. You have make that change there too. How are Firewall ports changed?
Re: Server Slammed
Author: Anonymous
Date: Thu, 11 Dec 2014 14:32
Date: Thu, 11 Dec 2014 14:32
32 lines
2250 bytes
2250 bytes
On Thu, 11 Dec 2014 14:15:58 +0100 (CET), Nomen Nescio <nobody@dizum.com> wrote: >> On Thu, 11 Dec 2014 03:56:30 +0100 (CET), "Anonymous Remailer (austria)" <mixmaster@remailer.privacy.at> wrote: > > > >> In article <mq0i8a1qiqeak746aquu5jh8bp0bsocc8c@news.stray.cat.edu> >> Anonymous wrote: > >> On Thu, 11 Dec 2014 01:34:27 +0000 (GMT), Red John <redjohn@nym.mixmin.net> wrote: > >> Is this as simple as opening up sshd_config and changing the port >> from 22 to something else and then doing a: > >> /etc/init.d/ssh restart > >> Is there a specific range of port numbers that I should stay away >> from? > >> It's that simple so long as '/etc/init.d/ssh restart' is valid on your system. > >> I use a port above 1024, but other than that it won't matter. You still may have someone or something stumble into it, but it will be >> quite rare. > >> Firewall port? > >> Well sure. You have make that change there too. > > How are Firewall ports changed? Depends on the firewall ;) How did you set it up to work with port 22? Just change it there.
Re: Server Slammed
Author: Anonymous Remailer (austria)
Date: Thu, 11 Dec 2014 17:32
Date: Thu, 11 Dec 2014 17:32
33 lines
2060 bytes
2060 bytes
> On Thu, 11 Dec 2014 14:15:58 +0100 (CET), Nomen Nescio <nobody@dizum.com> wrote: > On Thu, 11 Dec 2014 03:56:30 +0100 (CET), "Anonymous Remailer (austria)" <mixmaster@remailer.privacy.at> wrote: > In article <mq0i8a1qiqeak746aquu5jh8bp0bsocc8c@news.stray.cat.edu> > Anonymous wrote: > On Thu, 11 Dec 2014 01:34:27 +0000 (GMT), Red John <redjohn@nym.mixmin.net> wrote: > Is this as simple as opening up sshd_config and changing the port > from 22 to something else and then doing a: > /etc/init.d/ssh restart > Is there a specific range of port numbers that I should stay away > from? > It's that simple so long as '/etc/init.d/ssh restart' is valid on your system. > I use a port above 1024, but other than that it won't matter. You still may have someone or something stumble into it, but it will be > quite rare. > Firewall port? > Well sure. You have make that change there too. > How are Firewall ports changed? > Depends on the firewall How did you set it up to work with port 22? Just change it there. iptables comes setup itself, but I don't know how to change that.
Re: Server Slammed
Author: Zax
Date: Thu, 11 Dec 2014 17:56
Date: Thu, 11 Dec 2014 17:56
48 lines
2908 bytes
2908 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Thu, 11 Dec 2014 01:34:27 +0000 (GMT), Red John wrote in
Message-Id: <20141211013427.825C1EAAFE@snorky.mixmin.net>:
>
> On 12/10/2014 2:28 PM, Anonymous wrote:> On Wed, 10 Dec 2014 22:14:37 +0000 (GMT), Red John <redjohn@nym.mixmin.net> wrote:
>>
>>> Anyone else seeing this kind of activity on their server?
>>
>> Not since I moved it off port 22.
>>
>
> Is this as simple as opening up sshd_config and changing the port
> from 22 to something else and then doing a:
>
> /etc/init.d/ssh restart
>
> Is there a specific range of port numbers that I should stay away
> from?
This is a solution based on security by obscurity. Better would be to
create an iptables rule that only allows access from specific addresses
(or subnets). Even better is to use key authentication for ssh.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJUidquAAoJEIBmv8lxNqHoGX8P/31Ui8yU/6yc/21cSP/pBvMR
58oZPvHtmZQr/+ePVXUEww8OjPzMY1MB30eID6UH7iw7DfMwangrDvYtQcKswDVq
tS00KHh4rTfkMu7Wlf/TZt0RkJjvK1w+YdxXQa55kHt/sDtvCX9Lqck22TkMMAVb
v6Xn4gb8+UrrIMzR5FuT7PQXXMLPyQe6aQdwzeKGDT9QD1oSNhLbTGzcIEf2XsC/
JzGEwek7hqURsztlv8+cRyhASvFpqSVoeBI0sdvn8yAboDHr3AK4NFi5uzcX7PPq
leou+fz1+AmOLX2Nig2YlazvoC4yAilatChf4RynrLXhyed75HWVF0fruP8YrpGR
1oIE4qLc0VcSaR+CUDcD3RNBkS1ehEwUA9zTXztD2Ixrl7n4JpZmtnB9q6RgAQfe
MzcggXlyxG5UJlGmxHYM1eVWJBuqjKtFtOdc5czTqyc6Ry2Sr3AVhATZI12lQewI
oht7mOiIbPuWITDjaVQJXF4zyKZPsfWstaZAleO26d3zlmSbbG0u3hXcx1XQ19J/
Pihqlb6WSKxeY2V/8cZ2VDMou7QBkvAxaMOdWhKfchEIQ8PLoh+gU+VvUlE4jEzI
WeFH9yrCRqJGSOLfVi7dqQnqJDwV/8AcMcbtRu1HRFsCUdKN6o37Yl29ntUaFM7j
0jmqFfeIfpOyTU89JMMG
=HH/T
-----END PGP SIGNATURE-----
--
pub 1024D/228761E7 2003-06-04 Steven Crook <steve@mixmin.net>
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
sub 4096R/4ABF07E3 2012-02-11 [expires: 2013-02-10]
Re: Server Slammed
Author: Anonymous
Date: Thu, 11 Dec 2014 19:01
Date: Thu, 11 Dec 2014 19:01
15 lines
2127 bytes
2127 bytes
On Thu, 11 Dec 2014 17:56:02 +0000 (UTC), Zax <admin@mixmin.net> wrote: >This is a solution based on security by obscurity. Better would be to >create an iptables rule that only allows access from specific addresses >(or subnets). Even better is to use key authentication for ssh. If the objective is to reduce, or eliminate to the degree possible, log flooding with failed login attempts to ssh, then changing the port accomplishes that. This is irrefutable. An iptables rule that restricts access from specific IP addresses moves the log file flooding from one log file to a different log file if you separate iptables logging from auth logging. Using key authentication for ssh does not prevent _attempts_ to log in with username/password. The result is the same - auth log file flooding.
Re: Server Slammed
Author: Anonymous
Date: Thu, 11 Dec 2014 20:07
Date: Thu, 11 Dec 2014 20:07
23 lines
1799 bytes
1799 bytes
> Anyone else seeing this kind of activity on their server? > Not since I moved it off port 22. > Is this as simple as opening up sshd_config and changing the port > from 22 to something else and then doing a: > /etc/init.d/ssh restart > Is there a specific range of port numbers that I should stay away > from? > This is a solution based on security by obscurity. Better would be to > create an iptables rule that only allows access from specific addresses > (or subnets). Even better is to use key authentication for ssh. "only allows access from specific addresses" can be disastrous if your on a dynamic isp address. My isp has switched my ip address 4 times in the past two weeks. I have a root privileged user that can be logged into via a long password to protect myself from getting completely locked out of my server (not remailer) if I should get locked out for any reason.
Re: Server Slammed
Author: Zax
Date: Thu, 11 Dec 2014 21:42
Date: Thu, 11 Dec 2014 21:42
50 lines
3312 bytes
3312 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Thu, 11 Dec 2014 14:01:04 -0500, Anonymous wrote in
Message-Id: <dvpj8at1ojruck7adepbi9f1u6i6nm5c6s@news.stray.cat.edu>:
> On Thu, 11 Dec 2014 17:56:02 +0000 (UTC), Zax <admin@mixmin.net> wrote:
>
>>This is a solution based on security by obscurity. Better would be to
>>create an iptables rule that only allows access from specific addresses
>>(or subnets). Even better is to use key authentication for ssh.
> If the objective is to reduce, or eliminate to the degree possible,
> log flooding with failed login attempts to ssh, then changing the port
> accomplishes that. This is irrefutable.
That's very true, I certainly wouldn't refute it. Perhaps I jumped to
the wrong conclusion that the problem was the attempted hacks rather
than excessive logging.
> An iptables rule that restricts access from specific IP addresses
> moves the log file flooding from one log file to a different log file
> if you separate iptables logging from auth logging.
> Using key authentication for ssh does not prevent _attempts_ to log in
> with username/password. The result is the same - auth log file
> flooding.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJUig/VAAoJEIBmv8lxNqHohSIP/2MIEhKLleIX6IR88jPMQLcu
oOHabqdsqgMdvsRJnPyUTY2Bpz039N19qy1jeyrk7OV7B+Oip+/1SRNUraXQrCj2
FSF2bcr8hSwLm9/fel0ysqes3vgTmKqDaUXXlFo44FgZmAvUTK85bQ6OB5JAXTFW
hEinMC4svNghcIqwwM9Yot4kw4nn2UwRUsrB9v52ho+LY1D7DGqLNtqhoN6d6Zpx
uHKISb5coLd6o9CbdkB5hKU95LHXNaIQSipMap2O0ve6hqYNQSH9WGiuz1j+6Rke
yto/2t79lICWxirVigP/vzQZqmDR0FCimbhv7loUXxN2SwWPf8YmSf2U4UYFoecO
qFzx/47VGxGUlyncdVeGv2yhFMwJ7pfZy2oN0Jtcwb8+D2wE9B8Vbk16GadvyKUH
TR2lOYJwm75lo1GISgi7E6KiIn2VZYT93sMIOFBqTW0OE8B2b2xyfHY2YM4Gh17h
3wPEpRYWWAeXVa09pzk0wHELjAn0meZ0x4ND09YTqA7a6yNl7qL4XHXOIsrGvwRa
EGhpULApDo2K8PwMTQEYJx8Td+2Y6UoKSXup41T9FZulxpSXJUXKdvGtvCVp1zpV
CXq8NqN/bTuMQyi0+rKsLaLM17zMkZIIUryULWswi4MXGowgW5LMuseJs4uDRhNQ
FpIyK+SWHGjeF65FyhTR
=6rJv
-----END PGP SIGNATURE-----
--
pub 1024D/228761E7 2003-06-04 Steven Crook <steve@mixmin.net>
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
sub 4096R/4ABF07E3 2012-02-11 [expires: 2013-02-10]
Re: Server Slammed
Author: Anonymous
Date: Thu, 11 Dec 2014 21:50
Date: Thu, 11 Dec 2014 21:50
7 lines
1564 bytes
1564 bytes
On Thu, 11 Dec 2014 21:42:45 +0000 (UTC), Zax <admin@mixmin.net> wrote: >Perhaps I jumped to >the wrong conclusion that the problem was the attempted hacks rather >than excessive logging. One does lead to another.
Re: Server Slammed
Author: Nomen Nescio
Date: Thu, 11 Dec 2014 22:22
Date: Thu, 11 Dec 2014 22:22
31 lines
1958 bytes
1958 bytes
> Anyone else seeing this kind of activity on their server? > Not since I moved it off port 22. > Is this as simple as opening up sshd_config and changing the port > from 22 to something else and then doing a: > /etc/init.d/ssh restart > Is there a specific range of port numbers that I should stay away > from? > This is a solution based on security by obscurity. Better would be to > create an iptables rule that only allows access from specific addresses > (or subnets). Even better is to use key authentication for ssh. > "only allows access from specific addresses" can be disastrous if > your on a dynamic isp address. My isp has switched my ip address 4 > times in the past two weeks. I have a root privileged user that > can be logged into via a long password to protect myself from > getting completely locked out of my server (not remailer) if I > should get locked out for any reason. If you only allow access from a specific address, the root privileged user won't be able to get in either.
Re: Server Slammed
Author: elvis-85503
Date: Thu, 11 Dec 2014 22:45
Date: Thu, 11 Dec 2014 22:45
4 lines
1395 bytes
1395 bytes
> An iptables rule that restricts access from specific IP addresses moves > the log file flooding from one log file to a different log file iptables doesn't need to log this.
Re: Server Slammed - Resolved
Author: Red John
Date: Thu, 11 Dec 2014 23:06
Date: Thu, 11 Dec 2014 23:06
41 lines
2483 bytes
2483 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12/11/2014 9:56 AM, Zax wrote: > On Thu, 11 Dec 2014 01:34:27 +0000 (GMT), Red John wrote in > Message-Id: <20141211013427.825C1EAAFE@snorky.mixmin.net>: > > >> On 12/10/2014 2:28 PM, Anonymous wrote:> On Wed, 10 Dec 2014 22:14:37 +0000 (GMT), Red John <redjohn@nym.mixmin.net> wrote: >>> >>>> Anyone else seeing this kind of activity on their server? >>> >>> Not since I moved it off port 22. >>> > >> Is this as simple as opening up sshd_config and changing the port >> from 22 to something else and then doing a: > >> /etc/init.d/ssh restart > >> Is there a specific range of port numbers that I should stay away >> from? > > This is a solution based on security by obscurity. Better would be to > create an iptables rule that only allows access from specific addresses > (or subnets). Even better is to use key authentication for ssh. > Zax, I implemented a different ssh port and attempted access to my server has quieted down to almost nothing. I already use public key ssh authentication and root access is disabled. My goal here was to diminish the number of uninvited attempts on my server. This change has accomplished that. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (MingW32) iEYEARECAAYFAlSKFosACgkQSrCPi4AVv5kAggCdFG1sVmxFG6OYkwYH+jS6cxCt X7kAnjT54Af+doy7DyI/BRho3Hz9zS/0 =+eMg -----END PGP SIGNATURE-----
Re: Server Slammed
Author: Zax
Date: Thu, 11 Dec 2014 23:12
Date: Thu, 11 Dec 2014 23:12
24 lines
2213 bytes
2213 bytes
On Thu, 11 Dec 2014 23:22:27 +0100 (CET), Nomen Nescio wrote in
Message-Id: <9c4fd4629eed5cff0ff8c8e0d58324d5@dizum.com>:
>> This is a solution based on security by obscurity. Better would be to
>> create an iptables rule that only allows access from specific addresses
>> (or subnets). Even better is to use key authentication for ssh.
>
>> "only allows access from specific addresses" can be disastrous if
>> your on a dynamic isp address. My isp has switched my ip address 4
>> times in the past two weeks. I have a root privileged user that
>> can be logged into via a long password to protect myself from
>> getting completely locked out of my server (not remailer) if I
>> should get locked out for any reason.
>
> If you only allow access from a specific address, the root
> privileged user won't be able to get in either.
I don't think root should be able to login at all. Better to login as a
non-privillaged user and use su or sudo.
--
pub 1024D/228761E7 2003-06-04 Steven Crook <steve@mixmin.net>
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
sub 4096R/4ABF07E3 2012-02-11 [expires: 2013-02-10]
Re: Server Slammed - Resolved
Author: Anonymous
Date: Thu, 11 Dec 2014 23:22
Date: Thu, 11 Dec 2014 23:22
12 lines
1945 bytes
1945 bytes
On Thu, 11 Dec 2014 23:06:38 +0000 (GMT), Red John <redjohn@nym.mixmin.net> wrote: >Zax, I implemented a different ssh port and attempted access to my >server has quieted down to almost nothing. I already use public key >ssh authentication and root access is disabled. My goal here was to >diminish the number of uninvited attempts on my server. This change >has accomplished that. Almost nothing? You may want to change the port again ;-) You can run denyhosts to cover the rare cases of attempts to connect to ssh on a nonstandard port that still get thru.
Re: Server Slammed - Resolved
Author: Red John
Date: Fri, 12 Dec 2014 01:50
Date: Fri, 12 Dec 2014 01:50
20 lines
2176 bytes
2176 bytes
On Thu, 11 Dec 2014 18:22:34 -0500, you wrote: > > On Thu, 11 Dec 2014 23:06:38 +0000 (GMT), Red John <redjohn@nym.mixmin.net> wrote: > > >Zax, I implemented a different ssh port and attempted access to my > >server has quieted down to almost nothing. I already use public key > >ssh authentication and root access is disabled. My goal here was to > >diminish the number of uninvited attempts on my server. This change > >has accomplished that. > > Almost nothing? You may want to change the port again ;-) > > You can run denyhosts to cover the rare cases of attempts to connect to ssh on a > nonstandard port that still get thru. > I am using Fail2ban for the "rare cases" and this is working just fine for me. If I can help it I would like to stay with this option instead of managing another list via denyhosts. However, I will research the merits of denyhosts and implement it, if needed.
Re: Server Slammed - Resolved
Author: Anonymous
Date: Fri, 12 Dec 2014 01:56
Date: Fri, 12 Dec 2014 01:56
24 lines
2625 bytes
2625 bytes
On Fri, 12 Dec 2014 01:50:58 +0000 (GMT), Red John <redjohn@nym.mixmin.net> wrote: >On Thu, 11 Dec 2014 18:22:34 -0500, you wrote: >> >> On Thu, 11 Dec 2014 23:06:38 +0000 (GMT), Red John <redjohn@nym.mixmin.net> wrote: >> >> >Zax, I implemented a different ssh port and attempted access to my >> >server has quieted down to almost nothing. I already use public key >> >ssh authentication and root access is disabled. My goal here was to >> >diminish the number of uninvited attempts on my server. This change >> >has accomplished that. >> >> Almost nothing? You may want to change the port again ;-) >> >> You can run denyhosts to cover the rare cases of attempts to connect to ssh on a >> nonstandard port that still get thru. >> >I am using Fail2ban for the "rare cases" and this is working just >fine for me. If I can help it I would like to stay with this option >instead of managing another list via denyhosts. However, I will >research the merits of denyhosts and implement it, if needed. Fail2ban is fine and useful for other daemons besides sshd. Denyhosts is specific to and limited to sshd.
Re: Server Slammed
Author: Jeremy Bentham
Date: Fri, 12 Dec 2014 04:06
Date: Fri, 12 Dec 2014 04:06
31 lines
1856 bytes
1856 bytes
> Anyone else seeing this kind of activity on their server? > Not since I moved it off port 22. > Is this as simple as opening up sshd_config and changing the port > from 22 to something else and then doing a: > /etc/init.d/ssh restart > Is there a specific range of port numbers that I should stay away > from? > This is a solution based on security by obscurity. Better would be to > create an iptables rule that only allows access from specific addresses > (or subnets). Even better is to use key authentication for ssh. > "only allows access from specific addresses" can be disastrous if > your on a dynamic isp address. My isp has switched my ip address 4 > times in the past two weeks. I have a root privileged user that > can be logged into via a long password to protect myself from > getting completely locked out of my server (not remailer) if I > should get locked out for any reason. or subnets - does this mean set up iptables to accept an nnn.nnn.nnn.nnn/nn that covers all ip for your particular isp?
Re: Server Slammed
Author: Zax
Date: Fri, 12 Dec 2014 14:15
Date: Fri, 12 Dec 2014 14:15
45 lines
3013 bytes
3013 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Fri, 12 Dec 2014 05:06:54 +0100 (CET), Jeremy Bentham wrote in
Message-Id: <ad5685c00ac3b7a9bbfb9ba27e3fb8a9@anemone.mooo.com>:
>> This is a solution based on security by obscurity. Better would be to
>> create an iptables rule that only allows access from specific addresses
>> (or subnets). Even better is to use key authentication for ssh.
>
>> "only allows access from specific addresses" can be disastrous if
>> your on a dynamic isp address. My isp has switched my ip address 4
>> times in the past two weeks. I have a root privileged user that
>> can be logged into via a long password to protect myself from
>> getting completely locked out of my server (not remailer) if I
>> should get locked out for any reason.
>
> or subnets - does this mean set up iptables to accept an
> nnn.nnn.nnn.nnn/nn that covers all ip for your particular isp?
Yes, that was my meaning. It's very unlikely the ISP would change the
entire subnet they advertise via DHCP.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJUiviXAAoJEIBmv8lxNqHonfwQALkYQSuJVUlb7ygD3jGqt9f7
c7+HE89nxwEGfqmsdIi33uJ+Y//g32izGJGkQYthUgfzZEBD69wTnfsLaOmt/bHA
wEIjsVxmUuIqZ8MnO/wlq3qtBNmi8SgZv9IWLGRQjTsNp5NTcAp60GIUJozuQMDP
G8PGniWgG/IDneQN1YODOXV7Iv7X36ZrfkY/UW0sEbrObcjt2u1q1ITIN43FnNbQ
aPP2Z5l+HftjvyKmgJjUYITjvWjZeXC2BFV4AkcHo7DrBuabEawQanrIzRHgvbss
UcQI21U1mo9hEWPkC8KFHJMk8htfWHmg2JpQV5u+OK+a4vUeF6VovTVS/pXbZr9I
zOvqV/4oMMFsTyuR3slc2SCCccbQaQdbcn695ngERP+VAK7Hhm2TzPjuCEZfpM3G
j/2avhbH2zrmRHvYGcv5IIf7J3IZdsoXLUzsqkpux0Ek+Bg0plIMHsr89gOvgWDX
6p4/R4E8et4OACaZnlERSzc3JHeCvwwl8My6jdkSFIvt/chDdPh8ae5aJLe2B/L8
jVWfWXs0ODW/WF6O6SozWEAygOhVRHLinhekdIqOo6DwUm6HEE37VT89CiSV80XE
wipGpTnvf++dSYtQTh1XgilQDznVqw5jHanX4qYNnjzB+mwDtCrwarWhId1jTWsT
7PtAKbDbmbn99i9rbhnh
=7eYi
-----END PGP SIGNATURE-----
--
pub 1024D/228761E7 2003-06-04 Steven Crook <steve@mixmin.net>
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
sub 4096R/4ABF07E3 2012-02-11 [expires: 2013-02-10]
Re: Server Slammed - update
Author: Anonymous
Date: Sun, 21 Dec 2014 14:41
Date: Sun, 21 Dec 2014 14:41
25 lines
1903 bytes
1903 bytes
> Anyone else seeing this kind of activity on their server? > Not since I moved it off port 22. > Is this as simple as opening up sshd_config and changing the port > from 22 to something else and then doing a: > /etc/init.d/ssh restart > Is there a specific range of port numbers that I should stay away > from? > This is a solution based on security by obscurity. Better would be to > create an iptables rule that only allows access from specific addresses > (or subnets). Even better is to use key authentication for ssh. "security by obscurity" is actually working quite well. Since I changed off port 22 after reading this subject, I have only had one hit. It was a Frenchie who tried to get in with over 65,000 hits during a single sequential try. My personal firewall cut him off upon the first try. This shows that almost all ssh hack attempts are coming from scripts or programs that only look at port 22 and don't do open port scans also.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads