The easiest way to limit the VPN access of the admin account is to set the network Access Control.
Go to the User Management -> User Permissions -> admin user -> More Settings -> Access Control.
Then set "Allow Access To these Networks" to a meaningless location such as: 127.254.254.254/32
While the admin user will still be able to establish a VPN tunnel, it won't be permitted to go anyplace.
To more strictly prohibit the admin account, install a post_auth_script such as:
from pyovpn.plugin import *
def post_auth_cr(authcred, attributes, authret, info, crstate):
if authcred.get('username').lower() in ('admin'):
authret['status'] = FAIL
authret['reason'] = "Username rejected by policy"
else:
authret['status'] = SUCCEED
authret['reason'] = "Username accepted by policy"
return authret
You will also have to use sacli to use the post_auth_script as explained in this document:
https://openvpn.net/vpn-server-resources/post-auth-programming-notes-and-examples/
It is also possible to enable Google Authenticator on the admin account so that there is no 2FA bypass.