As the title says ive started running webmin. And i wanna know if its safe for me to reverse proxy (with 2fa) or should i just use tailscale or ssh to access it.

  • slazer2au@lemmy.world
    link
    fedilink
    English
    arrow-up
    33
    ·
    26 days ago

    It is almost always a bad idea to place a management interface on the internet. No level of strong password and multifactor auth will protect against an unauthenticated RCE which every language will get, including Perl.
    Absolutely stick it behind tailscale.

  • Adrian Lee@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    26 days ago

    I would never do something like that. It’s actually a sad story: I had a server that had to be exposed to the public, and not long ago, it was compromised by the latest PHP vulnerability. Fortunately, the damage wasn’t too severe. Since then, my policy has been to only expose services to the public that must be accessible to strangers, and I never expose administrative access points to the public internet. SSH access is restricted to key-based authentication, and the admin panel is accessible only from the internal network or via VPN. Two-factor authentication protects against password guessing, but it cannot prevent vulnerabilities that can be exploited before the login process even begins.

    • pcouy@lemmy.pierre-couy.fr
      link
      fedilink
      English
      arrow-up
      2
      ·
      26 days ago

      If you actually got pwned by the latest PHP vuln, you need to talk to the security researchers who are running all these honeypots and only managed to capture unsuccessful exploitation attempts.

      An actual working exploit in the wild is real news

    • Creat@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      5
      ·
      26 days ago

      Yes, it inherently is. Authentication/encryption happens as the very first thing at the network level, before anything resembling a service becomes accessible. This is fundamentally different than for example a web interface, which needs to present “the Web page” to allow the user to log in, which might involve multiple individual parts that can already have a 0-day.

      As a more direct comparison: look into historic vulnerabilities between ipsec VPN and SSL VPN. The former is the older technology, the second is more “web like”. The number of serious CVEs for the latter over just some manufacturers (Cisco, fortinet, …) in one year probably beats the number for ipsec in is entire life time.

      Going back to Tailscale (or netbird, …): it is one very secure layer which then secures everything. You can have 1 service or 20, same security. If you expose individual services, c you also expose every possible vulnerability of all of them, so all 20 services if that’s what you run.

      • crandall@lemmy.today
        link
        fedilink
        English
        arrow-up
        1
        ·
        26 days ago

        Makes sense. Its unfortunate though that it presents a hurdle for end users. My users need to hit a webpage and acesss stuff, asking them to connect to a VPN client is too much.

        • Creat@discuss.tchncs.de
          link
          fedilink
          English
          arrow-up
          4
          ·
          26 days ago

          It’s all a matter of what you consider reasonable risk. I also run some specific services exposed where it makes sense (they are designed to do this, think things like home assistant or next cloud or jellyfin), but would never put anything that is used to do server administration public facing (Webmin, Termix, proxmox, that sort of thing). If the purpose of the tool is to perform or allow elevated actions, I run it behind a VPN (yes for me that includes ssh).

          There’s also a difference between being randomly port scanned and/or probed, or being actively and personally targeted for some reason. If the second is ever a reasonable threat, that changes what is acceptable dramatically as well.

    • Drunk & Root@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      26 days ago

      Ive been looking at headscale dont know if its better as im not well versed in vpn or tailscale or any of it but it seems better

    • frongt@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      26 days ago

      Not necessarily. But it’s one service, compared to multiple, which could each have their own vulnerabilities. It’s about reduction of risk.

  • corsicanguppy@lemmy.ca
    link
    fedilink
    English
    arrow-up
    3
    ·
    26 days ago

    Jamie is a cool guy. He’s also super smart. But he’s not infallible, and so I must secure this and only run it from the internal admin network. Because that’s best-practice.

  • fancy_pants@reddthat.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    25 days ago

    I had it exposed for maybe ten years (mostly so that users could manage their accounts), nothing bass happened, but i have shut down that server about a year before the ai security disaster, so ymmv