My use case is enabling a platform to test with metasploit, but catching reverse shells present a problem. Would it be possible to set a master range of ports (say 10000-2000) and then configure a "ports per container" setting (say 5). Each time a new user signs up, they are assigned a static range of 5 ports selected from "available" ports.
There'd have to be some process to keep track of which ports are assigned/released (when the container expires?)
Just thinking out loud a bit.