I have these in my server.config:
duplicate-cn
max-clients 100
script-security 3
auth-user-pass-verify /etc/openvpn/script/login.sh via-file
The server will authenticate user with their username/password.
How can I restrict the concurrent number of connected username/password?
I have tried log user activity in database every time they connect, and remove that log when they disconnect, but sometimes the disconnect doesn't happen, so it won't work.