Of course. Sorry about that.
Please let me know if you need to see anything else. I'm happy to provide it.
This issue is killing me for three days and I don't know how to proceed. Thank you
Server configuration file
port 1111
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh none
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist /var/log/openvpn/ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
tls-crypt ta.key
cipher AES-256-GCM
auth SHA256
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
log /var/log/openvpn/openvpn.log
verb 3
explicit-exit-notify 1
plugin /usr/local/lib/openvpn/plugins/openvpn-plugin-auth-pam.so ovpn-0
Client configuration file
client
dev tun
proto udp
remote 18.132.xxx.xxx 1111
resolv-retry infinite
nobind
user nobody
group nobody
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-GCM
auth SHA256
key-direction 1
verb 3
<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>
<cert>
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
Signature Algorithm: ecdsa-with-SHA512
Issuer: CN=Easy-RSA CA
Validity
Not Before: Jul 16 08:45:28 2020 GMT
Not After : Jul 1 08:45:28 2023 GMT
Subject: CN=client1
Subject Public Key Info:
Public Key Algorithm: id-ecPublicKey
Public-Key: (384 bit)
pub:
3a:87:ad:dc:a1:e8:4b
ASN1 OID: secp384r1
NIST CURVE: P-384
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
X509v3 Subject Key Identifier:
X509v3 Authority Key Identifier:
X509v3 Extended Key Usage:
TLS Web Client Authentication
X509v3 Key Usage:
Digital Signature
Signature Algorithm: ecdsa-with-SHA512
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
</key>
<tls-crypt>
-----BEGIN OpenVPN Static key V1-----
-----END OpenVPN Static key V1-----
</tls-crypt>
And log file is you need it:
OpenVPN 2.4.9 [git:master/c53d65eae4c1ecfe+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Jul 15 2020
library versions: OpenSSL 1.1.1g 21 Apr 2020
PLUGIN_INIT: POST /usr/local/lib/openvpn/plugins/openvpn-plugin-auth-pam.so '[/usr/local/lib/openvpn/plugins/openvpn-plugin-auth-pam.so] [ovpn-0]' intercepted=PLUGIN_AUTH_USER_PASS_VERIFY
Outgoing Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Outgoing Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Incoming Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Incoming Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
ROUTE_GATEWAY 172.31.32.1/255.255.240.0 IFACE=eth0 HWADDR=02:f3:5c:78:33:da
TUN/TAP device tun0 opened
TUN/TAP TX queue length set to 100
/usr/sbin/ifconfig tun0 10.8.0.1 pointopoint 10.8.0.2 mtu 1500
/usr/sbin/route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.8.0.2
Could not determine IPv4/IPv6 protocol. Using AF_INET
Socket Buffers: R=[212992->212992] S=[212992->212992]
UDPv4 link local (bound): [AF_INET][undef]:1111
UDPv4 link remote: [AF_UNSPEC]
GID set to nogroup
UID set to nobody
MULTI: multi_init called, r=256 v=256
IFCONFIG POOL: base=10.8.0.4 size=62, ipv6=0
ifconfig_pool_read(), in='client1,10.8.0.4', TODO: IPv6
succeeded -> ifconfig_pool_set()
ifconfig_pool_read(), in='client1,10.8.0.8', TODO: IPv6
succeeded -> ifconfig_pool_set()
IFCONFIG POOL LIST
client1,10.8.0.4
client1,10.8.0.8
Initialization Sequence Completed
89.32.xxx.xxx:20413 TLS: Initial packet from [AF_INET]89.32.xxx.xxx:20413, sid=65b7bfaa fb7e7a59
89.32.xxx.xxx:20413 VERIFY OK: depth=1, CN=Easy-RSA CA
89.32.xxx.xxx:20413 VERIFY OK: depth=0, CN=client1
89.32.xxx.xxx:20413 peer info: IV_VER=3.5.4
89.32.xxx.xxx:20413 peer info: IV_PLAT=ios
89.32.xxx.xxx:20413 peer info: IV_NCP=2
89.32.xxx.xxx:20413 peer info: IV_TCPNL=1
89.32.xxx.xxx:20413 peer info: IV_PROTO=2
89.32.xxx.xxx:20413 peer info: IV_AUTO_SESS=1
89.32.xxx.xxx:20413 TLS Error: Auth Username/Password was not provided by peer
89.32.xxx.xxx:20413 TLS Error: TLS handshake failed
89.32.xxx.xxx:20413 SIGUSR1[soft,tls-error] received, client-instance restarting