The server is running on win 10 Home, I did it according to this and the server seems to start normally. But the client complains that the password is not correct, I disabled authentication.txt. and entered the password with the login manually and still won't be able to connect.
server.ovpn
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
topology subnet
server 10.8.0.0 255.255.255.0
keepalive 10 120
cipher AES-128-CBC
persist-key
persist-tun
verb 3
client-config-dir "C:\\Program Files\\OpenVPN\\ccd"
auth-user-pass-verify "C:\\Program Files\\OpenVPN\\verify.bat" via-file
client-cert-not-required
username-as-common-name
script-security 3
passwords are accurate and according to instructions
red logs when the vpn server is turned on
Mon Dec 27 09:40:18 2021 DEPRECATED OPTION: --client-cert-not-required, use --verify-client-cert instead
Mon Dec 27 09:40:18 2021 --pull-filter ignored for --mode server
Mon Dec 27 09:40:18 2021 WARNING: POTENTIALLY DANGEROUS OPTION --verify-client-cert none|optional (or --client-cert-not-required) may accept clients which do not present a certificate
Mon Dec 27 09:40:18 2021 NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
Mon Dec 27 09:40:18 2021 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Mon Dec 27 09:40:28 2021 Could not determine IPv4/IPv6 protocol. Using AF_INET6
client.ovpn
# Specify that we are a client
client
# Use tun interface
dev tun
# Use protocol tcp
proto udp
# Specify cloud.xeoma.com server and 1194 port
remote "white ip" 1194
# Specify certificate
ca ca.crt
# Select a cryptographic cypher
cipher AES-128-CBC
# Do not bind to a specific local port
nobind
# Preserve some state across restarts
persist-key
persist-tun
# Specify verbosity level
verb 3
# Specify the path to the authentication file
auth-user-pass "C:\\Program Files\\OpenVPN\\config\\authentication.txt"
logs when the client is turned on
Mon Dec 27 09:54:35 2021 OpenVPN 2.4.11 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Jun 17 2021
Mon Dec 27 09:54:35 2021 Windows version 6.2 (Windows 8 or greater) 64bit
Mon Dec 27 09:54:35 2021 library versions: OpenSSL 1.1.1k 25 Mar 2021, LZO 2.10
Mon Dec 27 09:54:35 2021 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Mon Dec 27 09:54:35 2021 Need hold release from management interface, waiting...
Mon Dec 27 09:54:36 2021 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Mon Dec 27 09:54:36 2021 MANAGEMENT: CMD 'state on'
Mon Dec 27 09:54:36 2021 MANAGEMENT: CMD 'log all on'
Mon Dec 27 09:54:36 2021 MANAGEMENT: CMD 'echo all on'
Mon Dec 27 09:54:36 2021 MANAGEMENT: CMD 'bytecount 5'
Mon Dec 27 09:54:36 2021 MANAGEMENT: CMD 'hold off'
Mon Dec 27 09:54:36 2021 MANAGEMENT: CMD 'hold release'
Mon Dec 27 09:54:39 2021 MANAGEMENT: CMD 'username "Auth" "dobro1"'
Mon Dec 27 09:54:39 2021 MANAGEMENT: CMD 'password [...]'
Mon Dec 27 09:54:39 2021 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Mon Dec 27 09:54:39 2021 TCP/UDP: Preserving recently used remote address: [AF_INET]white ip:1194
Mon Dec 27 09:54:39 2021 Socket Buffers: R=[65536->65536] S=[65536->65536]
Mon Dec 27 09:54:39 2021 UDP link local: (not bound)
Mon Dec 27 09:54:39 2021 UDP link remote: [AF_INET]white ip:1194
Mon Dec 27 09:54:39 2021 MANAGEMENT: >STATE:1640573679,WAIT,,,,,,
Mon Dec 27 09:54:39 2021 MANAGEMENT: >STATE:1640573679,AUTH,,,,,,
Mon Dec 27 09:54:39 2021 TLS: Initial packet from [AF_INET]белый ip:1194, sid=6791c757 8743d7aa
Mon Dec 27 09:54:39 2021 VERIFY OK: depth=1, C=RU, ST=KK, L=Krasnoyrsk, O=OpenVPN, OU=changeme, CN=OpenVPN-CA, name=changeme, emailAddress=1@gmail.com
Mon Dec 27 09:54:39 2021 VERIFY OK: depth=0, C=RU, ST=KK, L=Krasnoyrsk, O=OpenVPN, OU=changeme, CN=server, name=changeme, emailAddress=1@gmail.com
Mon Dec 27 09:54:39 2021 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, 4096 bit RSA
Mon Dec 27 09:54:39 2021 [server] Peer Connection Initiated with [AF_INET]white ip:1194
Mon Dec 27 09:54:41 2021 MANAGEMENT: >STATE:1640573681,GET_CONFIG,,,,,,
Mon Dec 27 09:54:41 2021 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Mon Dec 27 09:54:41 2021 AUTH: Received control message: AUTH_FAILED
Mon Dec 27 09:54:41 2021 SIGUSR1[soft,auth-failure] received, process restarting
Mon Dec 27 09:54:41 2021 MANAGEMENT: >STATE:1640573681,RECONNECTING,auth-failure,,,,,
Mon Dec 27 09:54:41 2021 Restart pause, 5 second(s)
server logs when a client tries to connect
Mon Dec 27 09:53:56 2021 171.33.250.87:54419 TLS: Initial packet from [AF_INET6]::ffff:171.33.250.87:54419, sid=2cccf521 0dc93cf2
Mon Dec 27 09:53:56 2021 171.33.250.87:54419 peer info: IV_VER=2.4.11
Mon Dec 27 09:53:56 2021 171.33.250.87:54419 peer info: IV_PLAT=win
Mon Dec 27 09:53:56 2021 171.33.250.87:54419 peer info: IV_PROTO=2
Mon Dec 27 09:53:56 2021 171.33.250.87:54419 peer info: IV_NCP=2
Mon Dec 27 09:53:56 2021 171.33.250.87:54419 peer info: IV_CIPHERS=AES-256-GCM:AES-128-GCM:AES-128-CBC
Mon Dec 27 09:53:56 2021 171.33.250.87:54419 peer info: IV_LZ4=1
Mon Dec 27 09:53:56 2021 171.33.250.87:54419 peer info: IV_LZ4v2=1
Mon Dec 27 09:53:56 2021 171.33.250.87:54419 peer info: IV_LZO=1
Mon Dec 27 09:53:56 2021 171.33.250.87:54419 peer info: IV_COMP_STUB=1
Mon Dec 27 09:53:56 2021 171.33.250.87:54419 peer info: IV_COMP_STUBv2=1
Mon Dec 27 09:53:56 2021 171.33.250.87:54419 peer info: IV_TCPNL=1
Mon Dec 27 09:53:56 2021 171.33.250.87:54419 peer info: IV_GUI_VER=OpenVPN_GUI_11
Mon Dec 27 09:53:56 2021 171.33.250.87:54419 env_block: add PATH=C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem
Mon Dec 27 09:53:56 2021 171.33.250.87:54419 WARNING: Failed running command (--auth-user-pass-verify): returned error code 1
Mon Dec 27 09:53:56 2021 171.33.250.87:54419 TLS Auth Error: Auth Username/Password verification failed for peer
Mon Dec 27 09:53:57 2021 171.33.250.87:54419 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384
Mon Dec 27 09:53:57 2021 171.33.250.87:54419 Peer Connection Initiated with [AF_INET6]::ffff:171.33.250.87:54419
Mon Dec 27 09:53:58 2021 171.33.250.87:54419 PUSH: Received control message: 'PUSH_REQUEST'
Mon Dec 27 09:53:58 2021 171.33.250.87:54419 Delayed exit in 5 seconds
Mon Dec 27 09:53:58 2021 171.33.250.87:54419 SENT CONTROL [UNDEF]: 'AUTH_FAILED' (status=1)
Mon Dec 27 09:54:03 2021 171.33.250.87:54419 SIGTERM[soft,delayed-exit] received, client-instance exiting