question about a possible bot

im assuming my server is being logged by some scanning tool, but this person/bot has tried joined at least 10+ times. however, they don't actually appear as "name joined the game" "name left the game" in chat, they just seem to be instantly disconnected upon attempt. is this a bot? note: my server is whitelisted so i am good when it comes to any potential people trying to join and grief/mess around :)
No description
77 Replies
teknos
teknosOP2y ago
im more curious as to why it repeatedly happens. assuming that it should only try to join one time if it was a bot or something
MrMcyeet
MrMcyeet2y ago
Its a server scanner
teknos
teknosOP2y ago
is it normal for it to happen several times
MrMcyeet
MrMcyeet2y ago
yeah
teknos
teknosOP2y ago
damn
MrMcyeet
MrMcyeet2y ago
you can safely ignore them
teknos
teknosOP2y ago
ok cool good thing i have a whitelist :PepeThumbsUp:
MrMcyeet
MrMcyeet2y ago
Theyre not actually trying to join
TaeSlyOne
TaeSlyOne2y ago
im getting the samething, even same username
MrMcyeet
MrMcyeet2y ago
even if your server was open and public they just ping every ip in the ipv4 namespace and see what responds
teknos
teknosOP2y ago
im aware. i unwhitelisted for a bit to see if it would actually join (it didnt)
TaeSlyOne
TaeSlyOne2y ago
what is that
MrMcyeet
MrMcyeet2y ago
they just scan every ipv4 ip
TaeSlyOne
TaeSlyOne2y ago
is it normal for them to try to join many times
teknos
teknosOP2y ago
yes
TaeSlyOne
TaeSlyOne2y ago
is it ok to ban them
teknos
teknosOP2y ago
its up to u as a server owner
TaeSlyOne
TaeSlyOne2y ago
really?
MrMcyeet
MrMcyeet2y ago
yeah
itaquito
itaquito2y ago
Sadly, a ban won't prevent them for pinging your server You can block them in your firewall tho
TaeSlyOne
TaeSlyOne2y ago
what does that mean
itaquito
itaquito2y ago
if you have one like iptables or similar
ChassyB
ChassyB2y ago
im having the same issue on mine but we started crashing on day 2 and timing out
TaeSlyOne
TaeSlyOne2y ago
the servers running in ubuntu idk how
itaquito
itaquito2y ago
but don't worry its not harmfull
ChassyB
ChassyB2y ago
its disconnecting us because our ping is so low though
itaquito
itaquito2y ago
thats em.. strange
ChassyB
ChassyB2y ago
we changed the port and they stopped and were back to normal but i want a permanent fix
itaquito
itaquito2y ago
Well, scanners often scan known ports not just for minecraft, but for other services You can block them with a firewall, but they will use other ips
TaeSlyOne
TaeSlyOne2y ago
is something like "exampleface.com" a port
ChassyB
ChassyB2y ago
its the numbers on the end of the ip
TaeSlyOne
TaeSlyOne2y ago
ohhhhhh ok 12345 then?
ChassyB
ChassyB2y ago
try something more randomized
TaeSlyOne
TaeSlyOne2y ago
oh i was just doing an example thing thats long enough
ChassyB
ChassyB2y ago
ye 5 numbers
itaquito
itaquito2y ago
IT Tools - Handy online tools for developers
Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT.
TaeSlyOne
TaeSlyOne2y ago
so changing the port will stop it?
itaquito
itaquito2y ago
no
TaeSlyOne
TaeSlyOne2y ago
oh do you know how to ban their ip from doin stuff to it
itaquito
itaquito2y ago
Are you hosting your server on a cloud server? like a vps or something similar?
TaeSlyOne
TaeSlyOne2y ago
no its hosted from home
itaquito
itaquito2y ago
ooo okey but you are using ubuntu, right?
TaeSlyOne
TaeSlyOne2y ago
yeah oh wait we figured it out its not showing up in the server logs now
itaquito
itaquito2y ago
:D! Ubuntu uses ufw as the firewall, if you want to block an IP from connecting to your server, you would need to add it there. just in case you need to do that in the future
Nazarka
Nazarka2y ago
guys, everyday every 4 or 5 minutes some random dude "cuute" is trying to join my server but gets disconnected. what can it be because it is really hard to read console.
TaeSlyOne
TaeSlyOne2y ago
try doing ctrl + a then d then sudo block [put ip here] dont actually put those brackets maybe you can do screen -R to go back into the screen
Nazarka
Nazarka2y ago
thanks, but i use minecraft hosting
TaeSlyOne
TaeSlyOne2y ago
oh idk then
Nazarka
Nazarka2y ago
thanks anyway
TaeSlyOne
TaeSlyOne2y ago
those steps work for ubuntu i think
Nazarka
Nazarka2y ago
here is console screenshot
No description
TaeSlyOne
TaeSlyOne2y ago
just try to block the ip from joining its 20.4.48.76 (says it there in the error message)
Nazarka
Nazarka2y ago
banned, but he joined again
TaeSlyOne
TaeSlyOne2y ago
can you ip ban
Nazarka
Nazarka2y ago
i ip banned
TaeSlyOne
TaeSlyOne2y ago
did it work if you are not hosting from home i dont know what you can do
Shrecknt
Shrecknt2y ago
me when offline mode server
Nazarka
Nazarka2y ago
oh okay
7H3
7H32y ago
No, almost no scanner does this Scanners usually ping This one is probably checking if servers are whitelisted in addition to that
TaeSlyOne
TaeSlyOne2y ago
well this one is doing it
Nazarka
Nazarka2y ago
i changed the port and now everything is good
ProGamingDk
ProGamingDk2y ago
ip bans does abesloutely nothing (minecraft ones)
ChassyB
ChassyB2y ago
this is the same one i was having issues with
teknos
teknosOP2y ago
theres no point bots will just switch to a different ip
itaquito
itaquito2y ago
Yeah, but it is the only way to block them.
TaeSlyOne
TaeSlyOne2y ago
they only used like 3 ips so far i blocked them all
Penguin Terminal
https://discord.com/channels/348681414260293634/1123360822895329380 This post on how to setup fail to ban for a minecraft server could be of use, as it would ban any ip that unsucessfully connects multiple times in a row
ProGamingDk
ProGamingDk2y ago
pufferfish is probably the easiest way to make this less annoying
Penguin Terminal
Yes, but this would actually block the pings, as opposed to just ignoring them. This would effectivly stop the server scanner for a bit until they switched ips.
ProGamingDk
ProGamingDk2y ago
"Until they switched ips" its not like they actually harm anything, only the disconnect messages are annoying which pufferfish has a option to fix now, without reducing useful info in console
Penguin Terminal
Yes, but the pings slightly increase bandwidth and also fixes the problem instead of just ignoring it. If you don't want them to get information about the server being online or player count in real time, this would help to fix that. Sorry, I should say until a different ip is used to scan.
mat
mat2y ago
i can promise you the bandwidth usage is not significant at all (a few bytes every few seconds/minutes)
Penguin Terminal
Yes, but is the data being processed and also the attempt to establish a connection slowing the server down? Also its not just a ping request, since it tries to join. What I'm saying is are there not cpu downsides as well?
mat
mat2y ago
it'll waste a few clock cycles i get the logs being annoying but if it wasn't logging then you'd never notice it from bandwidth/cpu usage
Penguin Terminal
So why not implement fail 2 ban? I don't want anyone who is using a scanner to be able to connect to my server with an actual account and I don't want them to be able to get the details of the server and keep it updated.
mat
mat2y ago
easiest way is to just set enable-status=false in server.properties tbh
Shrecknt
Shrecknt2y ago
whitelist solves the problem of them connecting with an actual account

Did you find this page helpful?