OpenVPN FreeRadius Authentication

# Install OpenVPN $ yum install openvpn \ easy-rsa \ haveged # Install FreeRadius $ yum install freeradius \ freeradius-utils \ pam_radius # Config Firewall $ firewall-cmd --get-active-zones $ firewall-cmd --zone=external --change-interface=tun0 --permanent $ firewall-cmd »

OpenVPN Virtual User Authentication

借助于PAM (pam_pwdfile.so), OpenVPN可以采用虚拟账号认证. # 方法一 $ htpasswd -bc /etc/openvpn/passwd username password Adding password for user username # 方法二 $ openssl passwd -apr1 password $apr1$upwTjzEn$iQbusczYUcxzIg3De17QM. »