Screenshots are not that helpful, error messages and logs are. Donât screenshot logs, paste in their content where the error is. Also Google the error messages first as that will get you on the right path.
I am attaching the config file and error logs. I tried to do google search but canât find much about it.
I am sure I am missing out something or doing something wrong. But what canât figure out what?
Surprisingly, I tried to configure 3 different VPNâs confgâs. One which is in AWS, one that is current and another with proton VPN. All of them give same kind of errors.
Only thing is my Unifi one uses TCP protocol. Also after carefully reviewing the config file I tried to change the settings accordingly but no luck.
OpenVPN config file from unifi :
client
dev tun
proto tcp
remote xxx 1194
resolv-retry infinite
nobind
Downgrade privileges after initialization (non-Windows only)
user nobody
group nogroup
persist-key
persist-tun
auth-user-pass
remote-cert-tls server
cipher AES-256-CBC
comp-lzo
verb 3
Logs :
|WARNING: Compression for receiving enabled. Compression has been used in the past to break encryption. Sent packets are not compressed unless âallow-compression yesâ is also set.|
|Feb 3 11:49:48|openvpn|24359|WARNING: file â/var/etc/openvpn/client2/upâ is group or others accessible|
|Feb 3 11:49:48|openvpn|24359|OpenVPN 2.6.8 amd64-portbld-freebsd14.0 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [MH/RECVDA] [AEAD] [DCO]|
|Feb 3 11:49:48|openvpn|24359|library versions: OpenSSL 3.0.12 24 Oct 2023, LZO 2.10|
|Feb 3 11:49:48|openvpn|24359|DCO version: FreeBSD 14.0-CURRENT amd64 1400094 #1 RELENG_2_7_2-n255948-8d2b56da39c: Wed Dec 6 20:45:47 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-2_7_2-main/obj/amd64/StdASW5b/var/jenkins/workspace/pfSense-CE-snapshots-2_7_2-main/sources/F|
|Feb 3 11:49:48|openvpn|24383|NOTE: the current --script-security setting may allow this configuration to call user-defined scripts|
|Feb 3 11:49:48|openvpn|24383|WARNING: experimental option --capath /var/etc/openvpn/client2/ca|
|Feb 3 11:49:48|openvpn|24383|TCP/UDP: Preserving recently used remote address: [AF_INET]xxx:1194|
|Feb 3 11:49:48|openvpn|24383|Attempting to establish TCP connection with [AF_INET]xxx:1194|
|Feb 3 11:49:48|openvpn|24383|TCP connection established with [AF_INET]xxx:1194|
|Feb 3 11:49:48|openvpn|24383|TCPv4_CLIENT link local (bound): [AF_INET]192.168.2.199:0|
|Feb 3 11:49:48|openvpn|24383|TCPv4_CLIENT link remote: [AF_INET]xxx:1194|
|Feb 3 11:49:48|openvpn|24383|Connection reset, restarting [0]|
|Feb 3 11:49:48|openvpn|24383|SIGUSR1[soft,connection-reset] received, process restarting|
|Feb 3 11:49:58|openvpn|24383|NOTE: the current --script-security setting may allow this configuration to call user-defined scripts|
|Feb 3 11:49:58|openvpn|24383|TCP/UDP: Preserving recently used remote address: [AF_INET]xxx:1194|
|Feb 3 11:49:58|openvpn|24383|Attempting to establish TCP connection with [AF_INET]xxx:1194|
|Feb 3 11:49:58|openvpn|24383|TCP connection established with [AF_INET]xxx:1194|
|Feb 3 11:49:58|openvpn|24383|TCPv4_CLIENT link local (bound): [AF_INET]192.168.2.199:0|
|Feb 3 11:49:58|openvpn|24383|TCPv4_CLIENT link remote: [AF_INET]xxx:1194|
|Feb 3 11:49:58|openvpn|24383|Connection reset, restarting [0]|
|Feb 3 11:49:58|openvpn|24383|SIGUSR1[soft,connection-reset] received, process restarting|