Fail2Ban configuration file #305

Open
opened 2022-12-26 09:41:28 +00:00 by gameplayer · 1 comment

Heyo,

How to configure Fail2Ban with FoundKey? Syntax should I insert in order to define login failure & IP?

Heyo, How to configure Fail2Ban with FoundKey? Syntax should I insert in order to define login failure & IP?
Owner

Failed login attempts are currently not output to the log file. You can find failed login attemps in your database with the query

SELECT * FROM "signin" WHERE NOT "success";

Adding log output could probably be done in this nested function:

async function fail(): void {
// Append signin history
await Signins.insert({
id: genId(),
createdAt: new Date(),
userId: user.id,
ip: ctx.ip,
headers: ctx.headers,
success: false,
});
error('ACCESS_DENIED');
}

Failed login attempts are currently not output to the log file. You can find failed login attemps in your database with the query ```sql SELECT * FROM "signin" WHERE NOT "success"; ``` Adding log output could probably be done in this nested function: https://akkoma.dev/FoundKeyGang/FoundKey/src/commit/eea2eb491953c8bd43ca4a325351e165f40b3585/packages/backend/src/server/api/private/signin.ts#L72-L84
Sign in to join this conversation.
No labels
feature
fix
upkeep
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: FoundKeyGang/FoundKey#305
No description provided.