home.social

#fail2ban — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #fail2ban, aggregated by home.social.

  1. #fail2ban #HomeLab #HomeServer
    Finally got my act together and set up fail2ban for my reverse proxy.
    The need for this became evident after I had gotten my act together and started ingesting the reverse proxy logs into #graylog and seen all the attempts to find something of value.

    I had suspected something was up due to the increasing intermittent "incidents" as reported by betterstack.
    Likely the bursts of 1200 requests in a second exhausted the resources available long enough to impact the status checks.

    It's pretty cool to see the graph show the effect of when fail2ban was implemented and the ratio of valid requests invert from < 5% to > 95%

    Edit to add a dashboard graph showing the effects:
    First rise is fixing up the log parsing, then decreases as I progressively enable fail2ban jails. Later there is a large bump as I again capture more logs (error) and enable, then tweak, rate limiting, then the fail2ban rate-limit jail... this resulted in the precipitous drop in "bad faith" requests.

  2. ist ja krass 😳

    der counter vom sshd jail staubt vor sich hin während der counter vom vulnerability-scanner jail munter hochzählt
    #server #admin #fail2ban #security

  3. SSH по паролю – нельзя! Но если очень хочется то можно

    Это инструкция по настройке доступа по SSH с аутентификацией по паролю и обеспечению приемлемого уровня безопасности при таком способе аутентификации. Несмотря на то, что такая аутентификация в SSH считается плохой практикой, в ряде случаев она является наиболее предпочтительной, чем более распространённый тип аутентификации по паре ключей. Это актуально, когда необходимо обеспечить пользователю возможность разового подключения по SSH с произвольных хостов. На своих VPS я использую Ubuntu 24.04 LTS, а на домашнем сервере - Gentoo, поэтому все примеры будут указаны именно для этих систем.

    habr.com/ru/articles/1114388/

    #server #iptables #netfilter #secure #ssh #fail2ban #port_knocking #totp #nftables

Share on Mastodon

Enter the server where you have an account.