I am having problems connecting to a server with openvpn
The configuration is server only with a QoS router handeling dhcp. The router ip is network ip is 192.168.4.1, the server is 192.168.4.2.
server.conf is as follows:
port 1194
dev tap
tls-server
dh dh1024.pem
ca ca.crt
cert server.crt
key server.key
auth-user-pass-verify ./validate.sh via-env
client-disconnect ./logoff.sh
up ./openvpn.up
mode server
duplicate-cn
ifconfig 192.168.100.1 255.255.255.0
ifconfig-pool 192.168.100.100 192.168.100.200 255.255.255.0 # IP range for openvpn client
mtu-test
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ping 10
ping-restart 120
push "ping 10"
push "ping-restart 60"
push "dhcp-option DOMAIN doubleoincorporated.com" # push the DNS domain suffix
push "dhcp-option DNS 192.168.4.1" # push DNS entries to openvpn client
push "route 192.168.4.0 255.255.255.0 192.168.100.1" # add route to to protected network
comp-lzo
status-version 2
status openvpn-status.log
verb 3
and openvpn.up is:
route del -net 192.168.100.0 netmask 255.255.255.0 gw 192.168.4.1
route del -net 192.168.100.0 netmask 255.255.255.0 dev tap0
route add -net 192.168.100.0 netmask 255.255.255.0 gw 192.168.100.1
local networks is
Network 192.168.100.0
Mask 255.255.255.0
Router 192.168.4.1
I have opened port 1194 with your contrib,
port 1194 UDP is forwared from the QoS device to 192.168.4.2
Have I missed anything that could be causing the error "could not read Auth username from stdin" that I see in tle openvpn log on the client.
Here is a snippet of the server message log
Sep 7 14:40:31 server openvpn[15129]: MULTI: multi_create_instance called
Sep 7 14:40:31 server openvpn[15129]: 134.215.197.162:1194 Re-using SSL/TLS context
Sep 7 14:40:31 server openvpn[15129]: 134.215.197.162:1194 LZO compression initialized
Sep 7 14:40:31 server openvpn[15129]: 134.215.197.162:1194 Control Channel MTU parms [ L:1574 D:138 EF:38 EB:0 ET:0 EL:0 ]
Sep 7 14:40:31 server openvpn[15129]: 134.215.197.162:1194 Data Channel MTU parms [ L:1574 D:1450 EF:42 EB:135 ET:32 EL:0 AF:3/1 ]
Sep 7 14:40:31 server openvpn[15129]: 134.215.197.162:1194 Local Options hash (VER=V4): 'f7df56b8'
Sep 7 14:40:31 server openvpn[15129]: 134.215.197.162:1194 Expected Remote Options hash (VER=V4): 'd79ca330'
Sep 7 14:40:31 server openvpn[15129]: 134.215.197.162:1194 TLS: Initial packet from 134.215.197.162:1194, sid=0414fc33 fae4e00a
Sep 7 14:40:32 server openvpn[15129]: 134.215.197.162:1194 VERIFY OK: depth=1, /C=US/ST=MI/L=BYRONCENTER/O=OpenVPN-TEST/OU=VPN/CN=server/emailAddress=bob@srdpc.com
Sep 7 14:40:32 server openvpn[15129]: 134.215.197.162:1194 VERIFY OK: depth=0, /C=US/ST=MI/O=OpenVPN-TEST/OU=VPN/CN=client/emailAddress=bob@srdpc.com
Sep 7 14:40:32 server openvpn[15129]: 134.215.197.162:1194 TLS Auth Error: Auth Username/Password verification failed for peer
Sep 7 14:40:32 server openvpn[15129]: 134.215.197.162:1194 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Sep 7 14:40:32 server openvpn[15129]: 134.215.197.162:1194 [client] Peer Connection Initiated with 134.215.197.162:1194
Sep 7 14:40:33 server openvpn[15129]: 134.215.197.162:1194 PUSH: Received control message: 'PUSH_REQUEST'
Sep 7 14:40:33 server openvpn[15129]: 134.215.197.162:1194 SENT CONTROL [client]: 'AUTH_FAILED' (status=1)
Sep 7 14:40:33 server openvpn[15129]: 134.215.197.162:1194 Delayed exit in 5 seconds
Sep 7 14:40:34 server openvpn[15129]: 134.215.197.162:1194 NOTE: Beginning empirical MTU test -- results should be available in 3 to 4 minutes.
Sep 7 14:40:38 server openvpn[15129]: 134.215.197.162:1194 SIGTERM[soft,delayed-exit] received, client-instance exiting
Thanks for any ideas
Bob