I just setup a minecraft server on an old laptop, but to make it acessible i needed to open up a port. Currently, these are the ufw rules i have. when my friends want to connect, i will have them find their public ip and ill whilelist only them. is this secure enough? thanks

`Status: active

To Action From


22/tcp ALLOW Anywhere Anywhere ALLOW my.pcs.local.ip`

also, minecraft is installed under a separate user, without root privlege

  • slazer2au
    link
    English
    34 months ago

    Might throw some off but that is NetBios and things will totally go for that because Windows is terrible for security.

    All my stuff avoids anything below 1000 or that ends in 22 because most people will just go 2222 or 1022. pick a random number between 1001 and 65000

    • strawberryOP
      link
      fedilink
      34 months ago

      the server is hosted on Ubuntu server, but I’ll keep that in mind

      • @just_another_person
        link
        English
        24 months ago

        Use unprivileged port numbers for your services.