Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #235812 > unrolled thread

Openvpn 2fa google

Started byGokan Atmaca <linux.gokan@gmail.com>
First post2021-06-02 22:00 +0200
Last post2021-06-03 14:50 +0200
Articles 2 — 1 participant

Back to article view | Back to linux.debian.user


Contents

  Openvpn 2fa google Gokan Atmaca <linux.gokan@gmail.com> - 2021-06-02 22:00 +0200
    Re: Openvpn 2fa google Gokan Atmaca <linux.gokan@gmail.com> - 2021-06-03 14:50 +0200

#235812 — Openvpn 2fa google

FromGokan Atmaca <linux.gokan@gmail.com>
Date2021-06-02 22:00 +0200
SubjectOpenvpn 2fa google
Message-ID<ClFbX-9h-3@gated-at.bofh.it>
Hello

I use Google for 2FA. My configuration is as follows. However, I could
not log in. Stn. When I configure it with TLS I am able to login. But
unfortunately it doesn't work when I add 2fa. What could be the
problem ?

-% error:
TLS Auth Error: Auth Username/Password verification failed for peer

-% Pam_config:
auth required /usr/lib/x86_64-linux-gnu/security/pam_google_authenticator.so
secret=/etc/openvpn/google-authenticator/${USER} forward_pass
account    required     pam_permit.so

-% usr_create:
sudo su -c "google-authenticator -t -d -r3 -R30 -f -l \"My VPN\" -s
/etc/openvpn/google-authenticator/client2981" - gauth



Thanks.

-- 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀

[toc] | [next] | [standalone]


#235839

FromGokan Atmaca <linux.gokan@gmail.com>
Date2021-06-03 14:50 +0200
Message-ID<ClUXn-1nB-1@gated-at.bofh.it>
In reply to#235812
the error is as follows.  Verification code is correct.

-% error:
openvpn(pam_google_authenticator)[16239]: Invalid verification code for usi21

On Wed, Jun 2, 2021 at 10:58 PM Gokan Atmaca <linux.gokan@gmail.com> wrote:
>
> Hello
>
> I use Google for 2FA. My configuration is as follows. However, I could
> not log in. Stn. When I configure it with TLS I am able to login. But
> unfortunately it doesn't work when I add 2fa. What could be the
> problem ?
>
> -% error:
> TLS Auth Error: Auth Username/Password verification failed for peer
>
> -% Pam_config:
> auth required /usr/lib/x86_64-linux-gnu/security/pam_google_authenticator.so
> secret=/etc/openvpn/google-authenticator/${USER} forward_pass
> account    required     pam_permit.so
>
> -% usr_create:
> sudo su -c "google-authenticator -t -d -r3 -R30 -f -l \"My VPN\" -s
> /etc/openvpn/google-authenticator/client2981" - gauth
>
>
>
> Thanks.
>
> --
> ⢀⣴⠾⠻⢶⣦⠀
> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
> ⠈⠳⣄⠀⠀⠀⠀

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web