I've configured OpenVPN on my Asus router to act as a server. I'm trying to connect from my Android phone, but I keep getting the following errors on the server's log:
Code: Select all
TLS Error: Auth Username/Password was not provided by peer
TLS Error: TLS handshake failed
SIGUSR1[soft,tls-error] received, client-instance restarting
Code: Select all
daemon
server 10.8.0.0 255.255.255.0
proto udp
port 1194
dev tun21
cipher AES-256-CBC
comp-lzo yes
keepalive 15 60
verb 3
push "route 192.168.1.0 255.255.255.0 vpn_gateway 500"
duplicate-cn
push "dhcp-option DNS 192.168.1.250"
push "redirect-gateway def1"
tls-auth static.key 0
plugin /usr/lib/openvpn-plugin-auth-pam.so openvpn
ca ca.crt
dh dh.pem
cert server.crt
key server.key
status-version 2
status status 10
Code: Select all
client
dev tun
proto udp
remote [host here] 1194
float
cipher AES-256-CBC
comp-lzo yes
keepalive 15 60
auth-user-pass
ns-cert-type server
<ca>
-----BEGIN CERTIFICATE-----
ca cert contents
-----END CERTIFICATE-----
</ca>
<cert>
client cert contents
</cert>
<key>
client key contents
</key>
<tls-auth>
-----BEGIN OpenVPN Static key V1-----
ta key contents
-----END OpenVPN Static key V1-----
</tls-auth>
key-direction 1
resolv-retry infinite
nobind
This router seems to require username/password authentication in its OpenVPN configuration, even though I have it set to optional username/password. Regardless, it gives errors that the peer did not provide the username/password even when OpenVPN Connect shows I've entered them correctly.
Is something in my config wrong? Could someone point me in the right direction?