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

  • @[email protected]
    link
    fedilink
    English
    32 months ago

    Your ssh rule says it’s from anywhere. You want to change port 22 to 25565, and run /op username on your Minecraft server to whitelist your friends. Make sure your whitelist flag is turned on with your server config.

    Instead of allowing traffic over your port from anywhere, you can specify your friend’s external IP.

    • @[email protected]
      link
      fedilink
      English
      32 months ago

      You can test it out by running ‘telnet <ip> <port>’ to check if the port is open. This is best done from another network.