i am new user of openvpn and when i connect openvpn client file to server file its connect .. now i want to do PAM authentication via username and password ... do you can tell me that is it necessary that username and password will be add in openvpn admin server ????
my client file after changing is
client
auth-user-pass
auth-nocache
nobind
dev tun
remote-cert-tls server
resolv-retry infinite
remote 78.71.69.40 1194 udp
<ca>
-----BEGIN CERTIFICATE-----
...............
-----END CERTIFICATE-----
</ca>
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
...................................
-----END OpenVPN Static key V1-----
</tls-auth>
redirect-gateway def1
and my server file is look like .....
server 192.168.255.0 255.255.255.0
verb 3
client-cert-not-required
script-security 3
username-as-common-name
auth-user-pass-verify /usr/share/doc/openvpn/examples/sample-scripts/auth-pam.pl via-file
plugin /usr/lib/x86_64-linux-gnu/openvpn/plugins/openvpn-plugin-auth-pam.so openvpn.conf
duplicate-cn
key #-----/private.key
ca /etc/openvpn/pki/ca.crt
cert /etc/openvpn/pki/issued/78.71.69.40.crt
dh /etc/openvpn/pki/dh.pem
tls-auth /etc/openvpn/pki/ta.key
key-direction 0
keepalive 10 60
persist-key
persist-tun
proto udp
# Rely on Docker to do port mapping, internally always 1194
port 1194
dev tun0
status /tmp/openvpn-status.log
user nobody
group nogroup
comp-lzo no
auth-nocache
### Route Configurations Below
route 192.168.254.0 255.255.255.0
### Push Configurations Below
push "block-outside-dns"
push "dhcp-option DNS 8.8.8.8 "
push "dhcp-option DNS 8.8.4.4"
push "comp-lzo no"
push "route 78.71.69.40 255.255.255.0"
this is my files and when i connect by terminal its required Auth Username & Auth Password
but i havent any user name and password what i can do...
i had tried also
sudo adduser saad
sudo passwd saad
sudo echo "DenyUsers saad" >> /etc/ssh/sshd_config
sudo systemctl reload sshd.service
please help me. now what i do