Skip to content

[JAMES-3897] Crowdsec SMTP connect hook#1994

Merged
jeantil merged 2 commits intoapache:masterfrom
jeantil:crowdsec-connect-hook
Feb 12, 2024
Merged

[JAMES-3897] Crowdsec SMTP connect hook#1994
jeantil merged 2 commits intoapache:masterfrom
jeantil:crowdsec-connect-hook

Conversation

@jeantil
Copy link
Copy Markdown
Contributor

@jeantil jeantil commented Feb 11, 2024

EHLO is not required before sending AUTH, therefore blocking on EHLO does't work very well against bruteforce attempts.
This PR introduces a hard connection close when a banned ip attempts to connect again to james even before the IP can send any SMTP command.

Copy link
Copy Markdown
Contributor

@chibenwa chibenwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huge +1. Thanks for this!

EHLO is not required before sending AUTH, therefore blocking on EHLO does't work very well against bruteforce attempts

This commit introduces a hard connection close when a banned ip attempts to connect again to james.
@jeantil jeantil force-pushed the crowdsec-connect-hook branch from 5e89d68 to f774eb9 Compare February 12, 2024 18:04
@jeantil
Copy link
Copy Markdown
Contributor Author

jeantil commented Feb 12, 2024

There was a green build before I rebased to include the readme fix. master has not changed since then so I will consider this as flakyness in the test suite

@jeantil jeantil merged commit a661703 into apache:master Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants