OpenVPN + Radius mOTP question
I'm having trouble with freeradius2. I have OpenVPN working perfectly with authentication being used on the local database. I am aware this is not very secure and so I want to set up mOTP.
Running pfSense 2.0.2
In short, I followed these steps: https://doc.pfsense.org/index.php/Using_OpenVPN_With_FreeRADIUS
I installed freeradius2 and set up NAS/Client with the IP being the local IP gateway. 10.X.X.1
I set up a user with 'Enable one-time-password for this user', inputted the init-secret and PIN.
Under the settings tab, 'Enabled mobile-one-time-password'.
Under the interface tab, I put in '*' and port 1812.
When I typed in the plugin command into the openVPN box under 'OpenVPN' > 'Server' (the page where info is inputted to create/server remote users… i.e. tunnel IP, local IP etc.) on the bottom of the page and clicked 'save', it says in the OpenVPN Logs:
PLUGIN_INIT: could not load plugin shared object plugin /usr/lib64/openvpn/plugins/openvpn-plugin-auth-pam.so: Cannot open "/usr/lib64/openvpn/plugins/openvpn-plugin-auth-pam.so": Invalid arguement (errno=22)
I believe this is the reason why I keep getting the 'Failed to authenticate' in the OpenVPN logs on the client when I try the mOTP.
I made sure I was inputting the commands correctly in the shell where it told me to.
I'm lost as to what to do.
If someone could help me with this, I would be most appreciative.