From 612e9ae3a8893c89d7c5d9c6220f33e27fd859c3 Mon Sep 17 00:00:00 2001 From: "Serg G. Brester" Date: Mon, 14 Nov 2016 20:25:46 +0100 Subject: [PATCH] small review --- ...g-other-as-host-(IP-address),-like-user-or-e-mail,-etc..md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/How-to-ban-something-other-as-host-(IP-address),-like-user-or-e-mail,-etc..md b/How-to-ban-something-other-as-host-(IP-address),-like-user-or-e-mail,-etc..md index e84bdb2..d6851b7 100644 --- a/How-to-ban-something-other-as-host-(IP-address),-like-user-or-e-mail,-etc..md +++ b/How-to-ban-something-other-as-host-(IP-address),-like-user-or-e-mail,-etc..md @@ -57,6 +57,10 @@ logger -t 'test:auth' -i -p auth.info "pam_unix(test:auth): authentication failu logger -t 'test:auth' -i -p auth.info "pam_unix(test:auth): authentication failure; login=xxx" logger -t 'test:auth' -i -p auth.info "pam_unix(test:auth): authentication failure; login=xxx" ``` +This should produce in `/var/log/auth.log` 3 entries like: +``` bash +Nov 14 20:07:35 srv test:auth[3141]: pam_unix(test:auth): authentication failure; login=xxx +``` To test regular expression, use new option `--raw` or `-r`, to prevent dns resolving errors: