I’ve been running my server without a firewall for quite some time now, I have a piped instance and snikket running on it. I’ve been meaning to get UFW on it but I’ve been too lazy to do so. Is it a necessary thing that I need to have or it’s a huge security vulnerability? I can only SSH my server from only my local network and must use a VPN if I wanna SSH in outside so I’d say my server’s pretty secure but not the furthest I could take it. Opinions please?

  • eldain@feddit.nl
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 days ago

    I recommend fail2ban to stop the automated attacks that are the background noise of the internet. It will set your firewall to block certain ip’s for a while, especially ports 21/22 are getting hammered with dictionary login attempts. And port 80 and 8080 for example get constantly version checked to see if you are vulnerable with an old apache, old dokuwiki etc, so don’t expose more than you need to and maybe learn about ssh tunnels and close a few.

    I once installed ossim in a small network with a server and it showed me it is war out there, scripts flying everywhere.

    • lud@lemm.ee
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 days ago

      Also get rid of password authentication if you can.

    • agile_squirrel@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 days ago

      My server is only available on my LAN and via a VPN. Is fail2ban applicable? Or is it mainly for public facing servers?

      • eldain@feddit.nl
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 days ago

        Only public facing ports, maybe your openvpn login. But that means you are already firewalled up and your attack surface is tiny, good 👍