OpenVPN 2.6.4 + Freeradius

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Comandante
OpenVpn Newbie
Posts: 3
Joined: Thu Jun 08, 2023 6:30 pm

OpenVPN 2.6.4 + Freeradius

Post by Comandante » Thu Jun 08, 2023 7:39 pm

Hi!

Installed OVPN 2.6.4 (fron ovpn repo) on Ubuntu 20.04 and want to configure
radius authentication. Install openvpn-auth-radius plugin 2.1-7build1 (fron ubuntu repo).
But as I can see this plugin is not working anymore with recent versions of OVPN.
I've got an error in log:

`Thu Jun 8 19:07:18 2023 Error: RADIUS-PLUGIN: FOREGROUND: common_name is not defined

2023-06-08 19:07:18 91.122.95.13:56618 PLUGIN_CALL: POST /usr/lib/openvpn/radiusplugin.so/PLUGIN_AUTH_USER_PASS_VERIFY status=1
2023-06-08 19:07:18 91.122.95.13:56618 PLUGIN_CALL: plugin function PLUGIN_AUTH_USER_PASS_VERIFY failed with status 1: /usr/lib/openvpn/radiusplugin.so
2023-06-08 19:07:18 91.122.95.13:56618 TLS Auth Error: Auth Username/Password verification failed for peer
`
If I'm right and this plugin is not usable anymore, then what current ways to connect to Radius server?

Comandante
OpenVpn Newbie
Posts: 3
Joined: Thu Jun 08, 2023 6:30 pm

Re: OpenVPN 2.6.4 + Freeradius

Post by Comandante » Thu Jun 08, 2023 9:53 pm

Ok, I solved the problem with pam_radius module.
Auth is ok, but I havent accounting on radius.
Any ways to send accounting messages to radius from OVPN?

Post Reply