Grokbase
Topics Posts Groups | in
x
[ help ]

Timothy Alberts (tal...@msiscales.com)

Profile | Posts (32)Page 1 of 2: 1 2 > >>
1) Timothy Alberts Re: [CentOS] Securing SSH
| +1 vote
Oh no..they're out there. They're watching us now. They know we're talking about them. :)
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
John R Pierce wrote:
> Tim Alberts wrote:
>> iptables..add the ip of the attack source to reject? They keep
>> moving IP, this is very time consuming (but I am doing it).
> ...
>
> stop thinking 'they', that implies theres someone intentionally
> targetting you. its just viruses randomly squirting out connection
> requests from 1000s of infected hosts around the world.
>
>

Oh no..they're out there.  They're watching us now.  They know we're 
talking about them.  :)

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
2) Timothy Alberts Re: [CentOS] Securing SSH
| +1 vote
That sounds great for getting around a remote dynamic IP address, but some more...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
David Mackintosh wrote:
> On Tue, Mar 25, 2008 at 09:48:17AM -0700, Tim Alberts wrote:
>   
>> So I setup ssh on a server so I could do some work from home and I think
>> the second I opened it every sorry monkey from around the world has been
>> trying every account name imaginable to get into the system.
>>
>> What's a good way to deal with this?
>>     
>
> This is what I do.
>
> http://wiki.xdroop.com/space/Linux/Limited+SSH+Access
>
>

That sounds great for getting around a remote dynamic IP address, but
some more authentication/security on that web page is necessary,
otherwise, anyone who finds that web page is given access?

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
3) Timothy Alberts Re: [CentOS] Securing SSH
| +1 vote
Just a virus you think? They are some pretty lame account names: judy, frank, bob..However they are...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
John R Pierce wrote:
> Tim Alberts wrote:
>> So I setup ssh on a server so I could do some work from home and I
>> think the second I opened it every sorry monkey from around the world
>> has been trying every account name imaginable to get into the system.
>
> actually, those 'attempts' are coming from virus infected systems
> which randomly probe for SSH servers. they try the same sorry 10 or
> 15 accounts with the same lame 10 or 15 passwords, so its really just
> an annoyance if you're anal about logwatch output.
>

Just a virus you think?  They are some pretty lame account names: judy, 
frank, bob..However they are mixed with general linux accounts:  root, 
ftp, webmaster, mysql, named, etc.  I feel less worried about that (or 
should I)?

Or are you just trying to lull me into a false sense of security?  
Muawhahahaha..

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
4) Timothy Alberts Re: [CentOS] Securing SSH
| +1 vote
I could do that, but if they already know about it, a simple port scan and they'll probably find it...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Rudi Ahlers wrote:
> Tim Alberts wrote:
>> So I setup ssh on a server so I could do some work from home and I
>> think the second I opened it every sorry monkey from around the world
>> has been trying every account name imaginable to get into the system.
>>
>> What's a good way to deal with this?
>>
>> _______________________________________________
>> CentOS mailing list
>> [email protected: C...@centos.org]
>> http://lists.centos.org/mailman/listinfo/centos
>>
> 1. Change the default port

I could do that, but if they already know about it, a simple port scan
and they'll probably find it again.  Plus I gotta go tell all my client 
programs the new port and I don't know how to do that on most of them
(what a hassle).

> 2. use only SSH protocol 2
got it.
> 3. Install some brute force protection which can automatically ban an
> IP on say 5 / 10 failed login attempts
The only software I know that could do this isn't supported anymore
(trisentry) or is too confusing and I don't know it yet (snort).  
Suggestions?

> 4. ONLY allow SSH access from your IP, if it's static. Or signup for a
> DynDNS account, and then only allow SSH access from your DynDNS domain
>
Yeah my home account is on dynamic IP.  I'd love to setup the firewall 
to only allow my home computer.  You're talking about these guys?  
http://www.dyndns.com/ never used them before, but it looks like a good
idea.  Especially since it's free (for 5 hosts) if I read correctly.

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
5) Timothy Alberts Re: [CentOS] Securing SSH
| +1 vote
iptables..add the ip of the attack source to reject? They keep moving IP, this is very time...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Mike Kercher wrote:
> iptables, disallow root login via ssh, no valid shell for users that
> don't need one, strong passwords, keys would be a good start.
>
> Mike
>
>

iptables..add the ip of the attack source to reject?  They keep moving 
IP, this is very time consuming (but I am doing it).  I don't allow root 
login.  I think I got a good password, and I got keys setup so I know 
I'm talking to my server.
_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
6) Timothy Alberts Re: [CentOS] Securing SSH
| +1 vote
FYI, here's a list of the losers (so far). I suggest everyone wish horrible things happen to these...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Tim Alberts wrote:
> So I setup ssh on a server so I could do some work from home and I
> think the second I opened it every sorry monkey from around the world
> has been trying every account name imaginable to get into the system.
>
FYI, here's a list of the losers (so far).  I suggest everyone wish 
horrible things happen to these people.

*201.70.39.3
**201.6.116.177
**200.161.198.16
**164.164.33.73
**66.114.252.200
**24.202.149.253
**218.201.147.80
**200.42.174.109
**128.135.195.122
**67.19.188.210
**24.202.149.253
**203.82.65.252
**124.1.204.61
**210.206.124.211
**61.128.122.13
**202.106.62.197

*
_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
7) Timothy Alberts [CentOS] Securing SSH
| +1 vote
So I setup ssh on a server so I could do some work from home and I think the second I opened it...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
So I setup ssh on a server so I could do some work from home and I think
the second I opened it every sorry monkey from around the world has been
trying every account name imaginable to get into the system.

What's a good way to deal with this?

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
8) Timothy Alberts Re: [CentOS] Rejecting spam
| +1 vote
John that is perfect, exactly what I was looking for. Thank you and thanks to everyone that...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
John that is perfect, exactly what I was looking for.

Thank you and thanks to everyone that contributed.

I guess it's apparent I don't read man pages very well.

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
9) Timothy Alberts Re: [CentOS] Re: Rejecting spam
| +1 vote
OK, that's what I was suspicious of. I've been reading the sendmail docs for header tests thinking...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Scott Silva wrote:
> on 3-4-2008 12:32 PM Tim Alberts spake the following:
>> That's exactly what I don't want to do. I don't want the mail being
>> delivered to my system. That's why I'm using the milter. However
>> the milter is doing the exact same thing as delivering it when it is
>> marked as spam. That's what I am hoping to get some help with.
> Looking at the docs, spamass-milter doesn't do any rejecting. I
> believe you can do it with mimedefang, but you will have to go through
> their docs to figure it out.
>

OK, that's what I was suspicious of.

I've been reading the sendmail docs for header tests thinking I can
write something in sendmail that will look for the X-Spam-flag header
and reject based on that.  Anyone try that yet?

http://www.sendmail.org/m4/anti_spam.html#header_checks

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
10) Timothy Alberts Re: [CentOS] Rejecting spam
| +1 vote
BINGO That's exactly what I'm trying to do with spamass-milter. However it either won't do it, or...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
John Hinton wrote:
>
> There are milters for SpamAssassin. You can set them to reject mail at
> a particular score level. So, if for instance you felt comfortable
> with rejecting mail at a score of 10, which is pretty reliable, you
> can also do that at smtp level.
BINGO  That's exactly what I'm trying to do with spamass-milter.  
However it either won't do it, or my configuration is incorrect.  Mail 
marked as spam is still being delivered as normal?



>
> Just in case it hasn't been said, never bounce mail but only reject.
Indeed, reject at the smtp level..yes..that's the goal.


_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
11) Timothy Alberts Re: [CentOS] Rejecting spam
| +1 vote
I think it's a wonderful idea to not let spam into the server at all. If a legitimate sender is...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Dan Carl wrote:
>   
>> -----Original Message-----
>> From: [email protected: centos-bo...@centos.org]On
>> Behalf Of Glenn
>> Sent: Tuesday, March 04, 2008 2:00 PM
>> To: CentOS mailing list
>> Subject: Re: [CentOS] Rejecting spam
>>
>>
>> At 02:35 PM 3/4/2008, you wrote:
>>
>>     
>>> Sorry, not a direct CentOS question, but I know there's a lot of
>>> experienced users on this list...I'm using CentOS with sendmail and
>>> spamassassin. I've got it configured with spamass-milter and it is
>>> working correctly. However, I was expecting to be able to reject
>>> mail that is marked as spam, not just deliver it as usual. Anyone
>>> know if it can be done and how? I know a milter can reject mail,
>>> because I've used milter-grelist in the past to give temporary
>>>       
>> fail messages
>>     
>
> Not really a good idea to reject all spam. Spam filtering is not that black
> and white.
> Suppose a legitmate email gets tagged as Spam.
> This does happen trust me and more than likely its a email your boss has
> been waiting for.
> You'll want a some way to retrieve it.
>   

I think it's a wonderful idea to not let spam into the server at all.  
If a legitimate sender is sending email that is inadvertently marked as
spam, it will be returned to sender and they will be notified.  That's 
actually why I'm trying to switch to a 'don't let it in to begin with'
policy.  Currently I use the spamassassin to mark spam and clients get 
their email and have a habit of giving the spam folder a glance over
looking for legitimate email.  Well, that completely defeats the purpose 
of marking them spam to begin with?

I'm basing this decision on having run an email server for the last 8
years, listening to the complaints of huge spam folders and mail being
'lost' in the trash because it was falsely marked as spam.

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
12) Timothy Alberts Re: [CentOS] Rejecting spam
| +1 vote
I also use all the dnsbl above plus spamcop.net which, I believe blocks far more spam than anything...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Milton Calnek wrote:
>
>
> Glenn wrote:
>>
>>
>> I use MailScanner with SpamAssassin and swear by it!
>>
>> http://mailscanner.info/
>>
>> Happy (mostly), very vital list group. The author is very actively
>> answering questions and requests. Can't get much better support!
>
> mailscanner +1
>
> Also, I have:
> FEATURE(`dnsbl', `sbl-xbl.spamhaus.org', `"571 ACCESS DENIED to
> <"$&f"> thru "$&{client_name}" by /spamhaus/ ;Please see
> http://www.spamhaus.org/sbl/'")dnl
> FEATURE(`dnsbl', `relays.ordb.org', `"550 Email rejected due to
> sending server misconfiguration - see
> http://www.ordb.org/faq/\#why_rejected"')dnl
> in my sendmail.mc file.
>

I also use all the dnsbl above plus spamcop.net which, I believe blocks
far more spam than anything else.

FEATURE(`dnsbl', `bl.spamcop.net', `"Spam blocked see:
http://spamcop.net/bl.shtml?"$&{client_addr}')dnl

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
13) Timothy Alberts Re: [CentOS] Rejecting spam
| +1 vote
That's exactly what I don't want to do. I don't want the mail being delivered to my system. That's...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Glenn wrote:
> At 02:35 PM 3/4/2008, you wrote:
>
>> Sorry, not a direct CentOS question, but I know there's a lot of
>> experienced users on this list...I'm using CentOS with sendmail and
>> spamassassin. I've got it configured with spamass-milter and it is
>> working correctly. However, I was expecting to be able to reject
>> mail that is marked as spam, not just deliver it as usual. Anyone
>> know if it can be done and how? I know a milter can reject mail,
>> because I've used milter-grelist in the past to give temporary fail
>> messages.
>>
>> Following is my sendmail.m4 directive for spamass-milter:
>>
>> INPUT_MAIL_FILTER(`spamassassin',
>> `S=unix:/var/run/spamass-milter/spamass-milter.sock, F=,
>> T=C:15m;S:4m;R:4m;E:10m')dnl
>> define(`confMILTER_MACROS_CONNECT',`t, b, j, _, {daemon_name},
>> {if_name}, {if_addr}')dnl
>> define(`confMILTER_MACROS_HELO',`s, {tls_version}, {cipher},
>> {cipher_bits}, {cert_subject}, {cert_issuer}')dnl
>
> Not sure, but I think you could use procmail to filter to a junk
> folder based upon parsing the SpamAssassin score. Also, you can block
> based on RBL in sendmail , or score in spamassassin.
>

That's exactly what I don't want to do.  I don't want the mail being 
delivered to my system.  That's why I'm using the milter.  However the 
milter is doing the exact same thing as delivering it when it is marked
as spam.  That's what I am hoping to get some help with.


_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
14) Timothy Alberts [CentOS] Rejecting spam
| +1 vote
Sorry, not a direct CentOS question, but I know there's a lot of experienced users on this...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Sorry, not a direct CentOS question, but I know there's a lot of
experienced users on this list...I'm using CentOS with sendmail and
spamassassin. I've got it configured with spamass-milter and it is
working correctly.  However, I was expecting to be able to reject mail 
that is marked as spam, not just deliver it as usual.  Anyone know if it 
can be done and how?  I know a milter can reject mail, because I've used 
milter-grelist in the past to give temporary fail messages.

Following is my sendmail.m4 directive for spamass-milter:

INPUT_MAIL_FILTER(`spamassassin',
`S=unix:/var/run/spamass-milter/spamass-milter.sock, F=,
T=C:15m;S:4m;R:4m;E:10m')dnl
define(`confMILTER_MACROS_CONNECT',`t, b, j, _, {daemon_name},
{if_name}, {if_addr}')dnl
define(`confMILTER_MACROS_HELO',`s, {tls_version}, {cipher},
{cipher_bits}, {cert_subject}, {cert_issuer}')dnl

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos