OPEN VPN CUSTOM AUTH_FAIL

How to customize and extend your OpenVPN installation.

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

Post Reply
pd1998
OpenVpn Newbie
Posts: 9
Joined: Tue Jan 31, 2023 7:10 am

OPEN VPN CUSTOM AUTH_FAIL

Post by pd1998 » Wed Dec 20, 2023 9:04 am

I use auth-user-pass-verify script on openvpn 2.5.5.
When the client authenticates, it only receives an 'auth_failed' message, regardless of whether the username, password or macaddress is wrong. I want users to be notified of authentication failures clearly instead of just receiving a vague generic 'auth_failed' message. Is there any way? please help me.

david2658
OpenVpn Newbie
Posts: 1
Joined: Fri May 17, 2024 10:44 am

Re: OPEN VPN CUSTOM AUTH_FAIL

Post by david2658 » Fri May 17, 2024 11:17 am

Hello,
In OpenVPN 2.5.5 the auth-user-pass-verify script only sends a generic auth_failed message to clients. To provide more detailed failure reasons, you can enhance server-side logging in your script and implement additional notification methods, such as sending emails or webhooks with specific failure details.

Post Reply