more ssh regexes
This commit is contained in:
parent
50ce32d256
commit
52dc67ed34
@ -47,7 +47,9 @@ streams:
|
|||||||
regex:
|
regex:
|
||||||
# <ip> is predefined in the patterns section
|
# <ip> is predefined in the patterns section
|
||||||
# ip's regex is inserted in the following regex
|
# ip's regex is inserted in the following regex
|
||||||
- authentication failure;.*rhost=<ip>
|
- 'authentication failure;.*rhost=<ip>'
|
||||||
|
- 'Failed password for .* from <ip>'
|
||||||
|
- 'Connection reset by authenticating user .* <ip>'
|
||||||
# if retry and retryperiod are defined,
|
# if retry and retryperiod are defined,
|
||||||
# the actions will only take place if a same pattern is
|
# the actions will only take place if a same pattern is
|
||||||
# found `retry` times in a `retryperiod` interval
|
# found `retry` times in a `retryperiod` interval
|
||||||
|
@ -56,7 +56,9 @@ local iptables(args) = ['ip46tables', '-w'] + args;
|
|||||||
regex: [
|
regex: [
|
||||||
// <ip> is predefined in the patterns section
|
// <ip> is predefined in the patterns section
|
||||||
// ip's regex is inserted in the following regex
|
// ip's regex is inserted in the following regex
|
||||||
'authentication failure;.*rhost=<ip>',
|
@'authentication failure;.*rhost=<ip>',
|
||||||
|
@'Failed password for .* from <ip>',
|
||||||
|
@'Connection reset by authenticating user .* <ip>',
|
||||||
],
|
],
|
||||||
// if retry and retryperiod are defined,
|
// if retry and retryperiod are defined,
|
||||||
// the actions will only take place if a same pattern is
|
// the actions will only take place if a same pattern is
|
||||||
|
@ -38,6 +38,7 @@ local banFor(time) = {
|
|||||||
regex: [
|
regex: [
|
||||||
@'authentication failure;.*rhost=<ip>',
|
@'authentication failure;.*rhost=<ip>',
|
||||||
@'Connection reset by authenticating user .* <ip>',
|
@'Connection reset by authenticating user .* <ip>',
|
||||||
|
@'Failed password for .* from <ip>',
|
||||||
],
|
],
|
||||||
retry: 3,
|
retry: 3,
|
||||||
retryperiod: '6h',
|
retryperiod: '6h',
|
||||||
|
Loading…
Reference in New Issue
Block a user