i have a small bot problem with my Minecraft Server, every hour bots try to join so the server starts (it starts on player join)
so i read into ufw to block that ip from where the requests come and they are still going through the firewall 🤔 why?
ampueromalo
How do ufw logs look like? How does your server start from join attempts? How do your ufw rules look like?
ampueromalo
and the logs? you could match the timestamp of when minecraft logs show the join attempt and ufw logs
jannik44
btw i think its important to say that that mcserver runs inside of a docker container
jannik44
and i checked with iptables
jannik44
and it looks like docker is playing around with iptables
jannik44
there is a rule in iptables that allows traffic to port 25565
jannik44
and that rule is above the deny rule to that ip adress
ampueromalo
Your server still forwards that request to the docker interface
ampueromalo
It's not that the docker interface is open to the internet
ampueromalo
Ufw should log that either in /var/log/ufw.log or /var/log/syslog
ampueromalo
And even in dmesg
ampueromalo
What you did looked fine but itd be better to see the ufw logs
jannik44
and my chat looks like that because someone is sending data to my server
jannik44
looks like "vmi1134589.contaboserver.net" is responsible for that
ampueromalo
Ah nice I use contabo too
ampueromalo
How does that bot work? How does it know someone tried to enter to start up the server
ampueromalo
And delete your svs hostname unless you don't care people know your servers ip address
ampueromalo
Mm that could explain it, ip tables do not close the port but rather drop packets that come to a port with a rule
Maybe the small program detects that and starts the server