vincss / mcsleepingserverstarter

Put your minecraft server to rest, while SleepingServerStarter is watching !
https://www.spigotmc.org/threads/put-your-server-to-rest-with-sleepingserverstarter.108828/
248 stars 44 forks source link

Feature: Block repeated pings from the same IP address #191

Open TonyAshworth opened 11 months ago

TonyAshworth commented 11 months ago

I'm getting repeated peeks from an IP in Germany, and I see in my logs other IPs in the same area. I want to implement a feature that tracks the last say 5 IPs that hit and if any of them peek more than 5 times to block them automatically.

I really don't expect anyone but a few friends to play on this server so repeated pings from elsewhere concern me a bit.

Would you mind if I submitted a PR for this?

TonyAshworth commented 11 months ago

https://github.com/TonyAshworth/mcsleepingserverstarter/pull/1/files

vincss commented 10 months ago

Hi, Thanks for your contribution. Can you make the pull request on this repo ? Maybe extract the logic into a separated file and not the McJava file.

TonyAshworth commented 10 months ago

Will do!

TypicalZedF commented 5 months ago

I'm getting this same issue. Lots of random peeks from servers listed in Germany, Italy, and Great Britain, It sorta makes me uncomfortable why I'm even getting these. I only gave the IP to 1 user that I trust and no one else, so I'm just confused about why others are showing up here and are "peeking"

vincss commented 5 months ago

I'm getting this same issue. Lots of random peeks from servers listed in Germany, Italy, and Great Britain, It sorta makes me uncomfortable why I'm even getting these. I only gave the IP to 1 user that I trust and no one else, so I'm just confused about why others are showing up here and are "peeking"

Did you change the default port ? You will have less connection from scanners

TypicalZedF commented 5 months ago

Scanners..? What's that?

vincss commented 5 months ago

https://en.wikipedia.org/wiki/Port_scanner So if your server is listening on the default port, it will be easier to find.

Jannik44 commented 4 months ago

this issue is completely unrelated, this is a general server adminsitration issue and not specific to this excellent software, firewalls do exist, no changes/features for the program needed