Quickest way is to just run multiple freeradius servers in their own docker containers and just proxy to the one required :) You might want to profile your authentication, add time checks to your bash etc, maybe just using native ldap will help a lot (connection already up, connection pools etc ) alan