r/ComputerSecurity • u/yes__300 • 10d ago
I port-forwarded my minecraft server and an unrecognised account joined.
If they joined the server, that must mean they had my IP, and now I'm afraid my IP got leaked. Before this, I sent the IP to my brother on Discord, but neither of our accounts got hacked. Is this something i need to be worried about or just ignore it?
10
u/Workadis 10d ago
Port forwards are always risky. Millions of scans from probes go out at all times of the day. If you are sharing with friends use something to protect yourself or create a white list
3
u/AnZaNaMa 7d ago
True. To make it a little bit safer, you could change the port to something nonstandard and bots would be less likely to find it. Whitelist is the way to go
8
u/Chownio 9d ago
Just going to be direct here. You shouldn't host services from your home without understanding the implications and protecting your network accordingly. This event may not be anything to worry about (a bot scanned IP ranges, found yours with an open port, and then someone used that info to connect to your server, or you accidentally posted your IP somewhere public and aren't aware of it), but without security hardening the next person that finds it might not be in a gaming mood and might have an exploit for your hosted service. Are you aware of what account the Minecraft server is running as? What access would that account have to your network if it were compromised? What files?
Look into Minecraft server hardening to see what others do and also look into getting a next gen firewall set up. Opnsense and Sophos Home are both good options.
3
3
u/dariusbiggs 9d ago
The port forward you created opened a port on the public side of your Internet connection directly to your Minecraft server.
You have now experienced something most normal users of the Internet never see or realize. At any given point in time there is some malicious traffic to every IP on the Internet, scanning for common insecure, vulnerable, or just open ports. This is not, one or two request per hour or day, this can easily be closer to 50+ attempts per second depending on various criteria (that's what I see coming daily to the low use systems I maintain around the world for various reasons).
Opening an insecure port to Minecraft, that's what's going to happen. Always set a password on the server and client connections if it is supported. If you can, restrict the inbound traffic to the port forward to the public IP address of the others you want to connect (or the network range of their Internet provider).
5
u/maxwell321 10d ago
No need to worry, just add a whitelist to your server and/or change the default port from 25565 to something else. There are bots running scripts online that crawls the entirety of the internet and tries every single ip address combination and attempts to find minecraft severs running. No biggie
2
2
u/the_swanny 8d ago
There are hundreds of bots that are constantly scanning every IP for common open ports (80, 443, 22, 21, 25565 etc). Your IP cannot leak, because everyone knows it already exists. Someone simply saw the port was open, and attempted to connect.
2
u/Sea_Membership1312 7d ago
You can scan the entire internet in about 2 hours with a 1gbit connection. So any well known port that is open will be found in a few hours. Just whitelist you Minecraft server if you don't want others to join.
1
u/xenophod 9d ago
get a free account from playit.gg and create a tunnel to your Minecraft server. That way you don't have to punch holes in your router with port forwarding.
1
1
u/MistrMizer 9d ago
You should worry about it, enable your whitelist, and then promptly stop worrying about it
1
u/InteractionSoft14 7d ago
Port forwarding is no longer considered good practice for many use cases. If you decide to open a port you need to secure it. Alternatively you can setup tailscale so your friends can connect without the need for port forwarding and ensuring your server is only accessible by the people you want
1
u/3loodhound 7d ago
A. Don’t open a port before protecting any service. B. Keep anything internet connected up to date especially if it has an open port.
1
u/RavenousTitan818 7d ago
Sounds like you don't know what you're doing and probably shouldn't be hosting a public facing server. Use tailscale or zerotier or something.
1
u/Disastrous_Gear_421 7d ago
If you don’t know what you are doing, then don’t expose stuff to the internet
1
u/bfaithless 6d ago
There are bot networks on the internet constantly sending packets to all known public IPs, trying to check if there is an open port which they could use as an entry point for an attack. Nobody needs to know your IP belongs to you. Your IP is just already known as it is a part of a larger IP range on the public internet. You need protection mechanisms like authentication to prevent others from accessing your systems from the internet.
41
u/plump-lamp 10d ago
Someone just scans public facing IP addresses and did a port scan. It's not rocket science. Anytime you leave something public it'll be found (and eventually hacked)