Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Sun May 29, 2011 6:52 am 
Offline
Senior Newbie

Joined: Sat May 28, 2011 4:37 am
Posts: 12
obs wrote:
... of course if you don't have a static IP you're screwed.


Exactly. My IP changes way too often to rely on that.


Top
   
 Post subject:
PostPosted: Sun May 29, 2011 7:19 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Another option then is to enable iptables rate limiting on your ssh port, it will at least prevent log flooding.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sun May 29, 2011 9:49 am 
Offline
Senior Member

Joined: Wed Mar 03, 2010 2:04 pm
Posts: 111
Stan 2.0 wrote:
haus wrote:
Well, to be fair, if you took my advice and changed the port that number would be zero.


I've changed my SSH port number to 1402 and still have 10-20 break-in attempts per hour. No idea how they found out which port it is.

These break-in attempts are pretty useless because I only use public-key authentication. Still annoying, though.


Raise it above 10000 and use CSF to stop portscans. You need to choose a port that isn't already commonly used by some service, or it will already be on the bot lists. They didn't find your port, it was dumb luck.


Top
   
 Post subject:
PostPosted: Sun May 29, 2011 6:31 pm 
Offline
Senior Member

Joined: Tue Aug 12, 2008 8:41 am
Posts: 56
In my setup, I have SSH listening on 22 and another port >10000. the >10000 port is publicly accessible and 22 is restricted to my ISP's subnets since I have a dynamic IP. Listening on 22 gives me the convenience to not always have to specify the port and >10000 allows me to login if I'm not at home.

This is enough to get 0 break-in attempts on SSH in the 1+ year I've had this setup. Of course, I also have all the typical measures, no root logins, public key authentication only, etc.


Top
   
 Post subject:
PostPosted: Mon May 30, 2011 5:47 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Locking it down to your isp's subnet is a good idea I never thought of that :o *has a static ip*

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Mon May 30, 2011 2:22 pm 
Offline
Senior Member

Joined: Wed Mar 03, 2010 2:04 pm
Posts: 111
I've always wanted to do that, but every couple of years Comcast does something crazy and I get a new IP address with a completely different IP, in a block I never knew they had. So if you can do it, great, but be careful to have a backup plan in case you get locked out.


Top
   
 Post subject:
PostPosted: Mon May 30, 2011 2:33 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
haus wrote:
I've always wanted to do that, but every couple of years Comcast does something crazy and I get a new IP address with a completely different IP, in a block I never knew they had. So if you can do it, great, but be careful to have a backup plan in case you get locked out.


Use LISH if you ever get locked out, if it only happens ever couple of years you could get away with it.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Mon May 30, 2011 4:12 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
obs wrote:
Use LISH if you ever get locked out, if it only happens ever couple of years you could get away with it.

Annoyingly, my local cable provider recently changed my home address during a maintenance window, after it having essentially been static for, I think, almost 10 years. I always knew it could theoretically happen, but it had been so long I had certainly taken it for granted.

My Linodes generally have very limited general access, but complete access for my home address which was an easy configuration to block all the various random attempts while not getting in my way. Of course I had the benefit of having such a static-like address.

Anyway, LISH is exactly how I handled it. A quick LISH connection to each node, adjust to the new address, and keep going.

-- David


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group