Installing a home server - any advice?

PEZZO DI MERDA!

I can’t get it to work this time around! Doh!

And I really can’t be arsed trying to figure it - WHY would you make something that used to work well, “out of the box” now completely broken “out of the box”?

I’ve disabled SSH (to the Pi5 running bookworm) from outside now because of this… I don’t need it…


Found the answer here :

/etc/fail2ban/jail.local :

[sshd]

# To use more aggressive sshd modes set filter parameter "mode" in jail.local:
# normal (default), ddos, extra or aggressive (combines all).
# See "tests/files/logs/sshd" or "filter.d/sshd.conf" for usage example and details.
#mode   = normal
port    = ssh
logpath = %(sshd_log)s
# backend = %(sshd_backend)s
backend=systemd
enabled=true

Commented "backend = %(sshd_backend)s and uncommented “enabled=true” and then :

╭─x@frambo ~  
╰─➤ sudo fail2ban-client -vv start

╭─x@frambo ~  
╰─➤ sudo systemctl restart fail2ban

╭─x@frambo ~  
╰─➤  sudo systemctl status fail2ban
● fail2ban.service - Fail2Ban Service
     Loaded: loaded (/lib/systemd/system/fail2ban.service; enabled; preset: enabled)
     Active: active (running) since Wed 2024-09-11 12:22:33 AWST; 7min ago
       Docs: man:fail2ban(1)
   Main PID: 1401 (fail2ban-server)
      Tasks: 0 (limit: 9259)
        CPU: 81ms
     CGroup: /system.slice/fail2ban.service
             ‣ 1401 /usr/bin/python3 /usr/bin/fail2ban-server --async -b -s /var/run/fail2ban/fail2ban.sock -p /var/run/fail2ban/fail2ban.>

Sep 11 12:22:33 frambo systemd[1]: Started fail2ban.service - Fail2Ban Service.
Sep 11 12:22:33 frambo fail2ban-server[1415]: 2024-09-11 12:22:33,666 fail2ban                [1415]: ERROR   Server already running
Sep 11 12:22:33 frambo fail2ban-server[1415]: 2024-09-11 12:22:33,666 fail2ban                [1415]: ERROR   Async configuration of serve

So enabling my NAT rule (doesn’t listen on port 22!).

2 Likes