Drawpile icon indicating copy to clipboard operation
Drawpile copied to clipboard

Bans - Web Admin - IP Range or Subnet Mask Calculator

Open Bluestrings-Drawpile opened this issue 2 years ago • 0 comments

From #914 ... Bans, 8 Priority: High

Trying to explain to people how bans work in terms of IPv4 and IPv6 is already fairly difficult for the non-tech savvy. It would be significantly easier to just use an IP Range in the ban (and/or insert multiple IP addresses).

Notes from #914 Inputting a ban with a IP range (e.g. start ::ffff:201.190.121.0 and end ::ffff:201.190.121.256 and the program calculates the mask).

Problem: This is simpler for non savvy moderator users and would negate the need for a Subnet calculator. It would be handy when a legit user is affected by a wide range ban. For example, one user was banned, using ::ffff:126.27.119.0 with a subnet mask of 120 to ban all users from ::ffff:120.29.113.0 to ::ffff:120.29.113.255. But there's a legit user with an IP address ::ffff:120.29.113.85 in this range. How does one easily/quickly figure out how to ban all those other addresses while keeping that one IP allowed? If this is not doable, I guess a subnet Calculator built into web admin or remote admin interface, which also shows the number of IP addresses it would ban by using that subnet mask. Should have a warning when banning a large number of addresses, like subnet mask number smaller than /64.

Bluestrings-Drawpile avatar Apr 12 '24 23:04 Bluestrings-Drawpile