Hello,
This server runs on a Synology NAS, it`s the standard VPN Server package.
Username/Password are already being checked by a Radius plugin which comes with
the package.
This script does not come with a userlist file.....
Having only 5-8 users (friends of my son playing game) is not to much of a
hassle for me.
Only add/remove two lines from the script.
But your suggestion is a nice one, thank you.
André
**************
Yes that should do if you dont care about checking passwords. To scale it up
you could change your userlist.txt to contain
username1:commonname1username2:commonname2etc..
and change the script to
#!/bin/sh
userlist_file="/volume1/@appstore/VPNCenter/scripts/userlist.txt"
echo "Verifying user:CN ${username}:${X509_0_CN}"
grep -q "^${username}:${X509_0_CN}$" "${userlist_file}" && exit 0exit 1
That makes it less cumbersome to add users. Just keep adding them to
userlist.txt, one line per user with no surrounding blank spaces.
------------------------------------------------------------------------------
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users
------------------------------------------------------------------------------
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users