Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max amount of connections per subnet for a defined amount of simultaneous clients. #52

Open
jgmdev opened this issue Nov 15, 2018 · 0 comments

Comments

@jgmdev
Copy link
Owner

jgmdev commented Nov 15, 2018

The idea would be to add the functionality to block a subnet with simultaneous connections into the server when exceeding a maximum allowed number of connections per subnet that gets activated when the number of clients on the same subnet reach a defined amount.

For example, lets say the following ip addresses belonging to same block/subnet have opened connections to your server:

Conn.      IP
------------------------
80         1.1.1.1
85         1.1.1.2
99         1.1.1.3
30         1.1.1.4

So the sum of total connections would be 294 for 4 clients that belong to the same subnet. Now lets assume we have this new rules: MAX_SUBNET_CONNS=250 for MAX_SUB_CLIENTS=3

This would mean allow a maximum of 250 connections for a whole subnet when 3 or more clients from the same subnet are connected. The example given above would result in blocking all the subnet ip addresses, this way it may be more possible to stop attacks coming from some one controlling equipment behind the same address space.

Ideas, suggestions and point of views are welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant