Download the radiusplugin here http://www.nongnu.org/radiusplugin/. You'll have to compile it from source as there's currently no deb package for it. Compile steps below:
# apt-get install libgcrypt11 libgcrypt11-dev build-essentialThe output will be a single radiusplugin.so file. Now move the .so file and the .cnf file to the proper openvpn directory like so:
# cp radiusplugin.so /etc/openvpn/First off, edit the radiusplugin.cnf file. Focus on the "server" section and ensure that the details are correct:
# cp radiusplugin.cnf /etc/openvpn/
serverNext up, edit the openvpn server config file and add the following line:
# The UDP port for radius accounting.
# The UDP port for radius authentication.
# The name or ip address of the radius server.
# How many times should the plugin send the if there is no response?
# How long should the plugin wait for a response?
# The shared secret.
plugin /etc/openvpn/radiusplugin.so /etc/openvpn/radiusplugin.cnfRestart openvpn service and start freeradius service and login using a username/password pair which is defined in FreeRADIUS.
You should now have working setup. More info below: