* [gentoo-user] Possibly OT - Denyhosts regex question
@ 2008-11-21 4:05 James Homuth
2008-11-21 9:52 ` deface
0 siblings, 1 reply; 2+ messages in thread
From: James Homuth @ 2008-11-21 4:05 UTC (permalink / raw
To: gentoo-user
Hello folks,
I'm using the latest stable x86 versions of Denyhosts, Openssh and PAM as
pulled off the portage tree, and am having a little bit of trouble getting
Denyhosts to play nice with the messages PAM is throwing into auth.log. I've
tried google for it, and threw the question to the Denyhosts mailing list,
but neither has turned up any possible assistance. The logs I'm trying to
parse are demonstrated below:
Nov 20 22:21:03 nova sshd[31328]: pam_unix(sshd:auth): authentication
failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=222.233.br
oadband9.iol.cz user=root
Nov 20 22:21:06 nova sshd[31326]: error: PAM: Authentication failure for
root from 222.233.broadband9.iol.cz
It's happening with more than just the root user, so I've set up my
userdef_regex's to read as follows:
USERDEF_FAILED_ENTRY_REGEX=error: PAM: authentication failure for
(?P<invalid>invalid user |illegal user )?(?P<user>.*?) from
?(?P<host>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
USERDEF_FAILED_ENTRY_REGEX=pam_unix(sshd:auth): authentication failure;
logname= uid=0 euid=0 tty=ssh ruser= rhost=(?P<host>\S+) user=(?P<user>\S+)
If anyone can give me a hand figuring out where it is I broke something,
that would be greatly appreciated. As I said, I'm not sure how on-topic it
is for this particular list, but I'm getting nowhere with the avenues that
would probably be more appropriate.
Thanks in advance,
James
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-user] Possibly OT - Denyhosts regex question
2008-11-21 4:05 [gentoo-user] Possibly OT - Denyhosts regex question James Homuth
@ 2008-11-21 9:52 ` deface
0 siblings, 0 replies; 2+ messages in thread
From: deface @ 2008-11-21 9:52 UTC (permalink / raw
To: gentoo-user
James Homuth wrote:
> Hello folks,
>
> I'm using the latest stable x86 versions of Denyhosts, Openssh and PAM as
> pulled off the portage tree, and am having a little bit of trouble getting
> Denyhosts to play nice with the messages PAM is throwing into auth.log. I've
> tried google for it, and threw the question to the Denyhosts mailing list,
> but neither has turned up any possible assistance. The logs I'm trying to
> parse are demonstrated below:
> Nov 20 22:21:03 nova sshd[31328]: pam_unix(sshd:auth): authentication
> failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=222.233.br
> oadband9.iol.cz user=root
>
> Nov 20 22:21:06 nova sshd[31326]: error: PAM: Authentication failure for
> root from 222.233.broadband9.iol.cz
>
> It's happening with more than just the root user, so I've set up my
> userdef_regex's to read as follows:
> USERDEF_FAILED_ENTRY_REGEX=error: PAM: authentication failure for
> (?P<invalid>invalid user |illegal user )?(?P<user>.*?) from
> ?(?P<host>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
>
> USERDEF_FAILED_ENTRY_REGEX=pam_unix(sshd:auth): authentication failure;
> logname= uid=0 euid=0 tty=ssh ruser= rhost=(?P<host>\S+) user=(?P<user>\S+)
>
>
> If anyone can give me a hand figuring out where it is I broke something,
> that would be greatly appreciated. As I said, I'm not sure how on-topic it
> is for this particular list, but I'm getting nowhere with the avenues that
> would probably be more appropriate.
>
> Thanks in advance,
> James
>
>
>
Have you looked into Fail2Ban ?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-21 9:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-21 4:05 [gentoo-user] Possibly OT - Denyhosts regex question James Homuth
2008-11-21 9:52 ` deface
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox