Skip to content

Rate Limiting

Dragonium edited this page Aug 11, 2021 · 1 revision

This feature is in place to prevent (d)dos attack throught Ultraviolet, its also possible to disable it. There is currently only one variant of this, its possible that there will come more later.

Explanation

The current rate limiter will allow a certain number of connections to take place before it will ask players to verify themselves. This will only happen by login request and not by status requests. It will only ask the connections to verify themselves if its connections number in the given timeframe of rateCooldown exceeds the rateLimit value threshold. When a player verified itself by joining a second time with on the same ip with the same username it will allowed the players connection to be proxied.

Config

"rateLimit": 5

This is the amount of connections it will allow to be created before it will start limiting new connections. If you set the value to 0 it will disable this feature.

"rateCooldown": "1s"

This is the time in which rateLimit will allow these connections to take place.

"banListCooldown": "5m"

This is the time the ip of a player wont be able to proxy to a single backend when it got banned.

"reconnectMsg": "Please reconnect to verify yourself"

This is the message the player will see when his connections gets blocked.

Clone this wiki locally