News for hackers. Stuff that matters.
Re:WireGuard and SSH by ttyprintk on Tuesday May 16, 2023 @05:29AM (#35959459)
Nothing against fail2ban, but with its RCE a few years ago, I wonder about simpler firewall rules:

- If the IP has an established port 22 connection, pass any new connections

- Otherwise, meter connections from each /24 to one per 21 seconds

I think ControlMaster would keep this from gumming up Ansible too much?

Re:WireGuard and SSH by hello_computer on Tuesday May 16, 2023 @04:03PM (#35967014)
> RCE a few years ago

If it's this one (https://nvd.nist.gov/vuln/detail/CVE-2021-32749), I think that's kind of a reach--especially for the typical use case, which uses neither mail nor whois, and only adds an ephemeral block rule to the firewall.

My beef with fail2ban is that it only checks logs on a (non-configurable) 1 second interval, which allows an attacker to make several attempts (> N) from the same IP in parallel inside of that second, even when the f2b configuration is set to block at the Nth failure.