Hi,
I have OpenVPN server with multi factor authentication using Google Authenticator.
It works, but all users must use multi factor authentication.
I would like to have some users without multi factor authentication.
I need to configure multi factor authentication per user, not per server.
Is it possible (client-config-dir or someting similar)?
My OpenVPN server config:
# ----- Google Authenticator multi factor authentication
plugin /usr/lib/x86_64-linux-gnu/openvpn/plugins/openvpn-plugin-auth-pam.so openvpn
# ----- Google Authenticator multi factor authentication
tls-server
port 12345
proto tcp
dev tun
server 10.16.11.0 255.255.255.0
duplicate-cn
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key
dh /etc/openvpn/dh.pem
tls-version-min 1.0
cipher AES-128-CBC
auth SHA256
reneg-sec 60
log-append /var/log/openvpn.log
status /var/run/vpn.status 10
user nobody
group nogroup
keepalive 30 120
comp-lzo
verb 3
persist-key
persist-tun
client-config-dir /etc/openvpn/ccd
reneg-sec 0
Everything else is according to the instructions:
https://medium.com/we-have-all-been-there/using-google-authenticator-mfa-with-openvpn-on-ubuntu-16-04-774e4acc2852
Thanks for help.