Hello guys, I hope you're doing well.
I have a server for my friends, 1.21.1 neoforge.
The problem is that it is hosted with public IP, meaning everyone can connect to this server.
Unfortunately I have to set online-mode=false in server.properties, so I won't be able to use whitelist properly.
What can you advise me to do to protect my server from unauthorized users?
I have several ideas, but most of them seems like overkill for my problem:
- Setup VPN connection (via Wireguard or else)
The problem is that my friends will be required to connect manually to VPN every time they want to use server. Not so user-friendly, but robust.
- Create a simple mod with some payload (token, or private key), then ask friends to add this mod to mods folder. Server will check for this mod
Pretty user-friendly, but requires some time to build the mod, and I also don't have any experience in that
It would be great to have a single-step solution (for example, my friend types server token or password once on first connection, and then connects as usual)
Thanks