Set OpenVPN custom account
# 1. myadmin account create
% sudo useradd -s /sbin/nologin "myadmin"
% sudo passwd myadmin
# 2. Configuration file path
/usr/local/openvpn_as/etc
# 3. custom admin login setup users.0
% sudo vim /usr/local/openvpn_as/etc/as.conf
## allowed to access via the bootstrap auth mechanism.
boot_pam_service=openvpnas
boot_pam_users.0=myadmin
# boot_pam_users.1=
# boot_pam_users.2=
# boot_pam_users.3=
# boot_pam_users.4=
# 4. Restart openvpn server
% sudo service openvpnas restart
반응형
'Setup' 카테고리의 다른 글
Kerberos setup - 1 (Kerberos Server) (1901) | 2019.12.09 |
---|---|
OpenVPN setup - 3 (OpenVPN Client for VPC Tunnel) (1427) | 2019.12.09 |
OpenVPN setup - 1 (AWS EC2) (1409) | 2019.12.09 |
Github enterprise server setup - 4 (Jenkins Build hook) (1100) | 2019.12.06 |
Github enterprise server setup - 3 (High Availability) (899) | 2019.12.06 |