Skip to content

Commit

Permalink
Added another Windows OpenSSH sshd selector to the default configurat…
Browse files Browse the repository at this point in the history
…ion file for "Invalid user" error, in addition to the existing "Failed password" selector
  • Loading branch information
Aldaviva authored Aug 24, 2023
1 parent c3203bb commit 0bf748f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Fail2Ban4Win/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
"eventId": 4,
"ipAddressEventDataName": "payload",
"ipAddressPattern": "^Failed password for(?: invalid user)? .+ from (?<ipAddress>(?:\\d{1,3}\\.){3}\\d{1,3}) port \\d{1,5} ssh\\d?$"
}, {
"logName": "OpenSSH/Operational",
"eventId": 4,
"ipAddressEventDataName": "payload",
"ipAddressPattern": "^Invalid user .+ from (?<ipAddress>(?:\\d{1,3}\\.){3}\\d{1,3}) port \\d{1,5}$"
}
]
}
}

0 comments on commit 0bf748f

Please sign in to comment.