mcsleepingserverstarter icon indicating copy to clipboard operation
mcsleepingserverstarter copied to clipboard

Feature: Block repeated pings from the same IP address

Open TonyAshworth opened this issue 2 years ago • 8 comments

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 avatar Aug 12 '23 20:08 TonyAshworth

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

TonyAshworth avatar Aug 13 '23 21:08 TonyAshworth

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.

vincss avatar Sep 03 '23 08:09 vincss

Will do!

TonyAshworth avatar Sep 05 '23 17:09 TonyAshworth

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"

TypicalZedF avatar Jan 31 '24 05:01 TypicalZedF

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

vincss avatar Jan 31 '24 08:01 vincss

Scanners..? What's that?

TypicalZedF avatar Jan 31 '24 13:01 TypicalZedF

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

vincss avatar Feb 01 '24 22:02 vincss

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

Jannik44 avatar Mar 09 '24 14:03 Jannik44