kp2 Sorry, we encountered an error while displaying this content. If you're a user, please try again later. If you're an administrator, take a look in your Flarum log files for more information.
kp2 Hello, thank you for your answer, this is a client file client proto tcp-client remote 1x.x.x.x 1194 dev tun resolv-retry infinite nobind persist-key persist-tun remote-cert-tls server verify-x509-name server_lOdtEHWVmAMF9eXp name auth SHA256 auth-nocache cipher AES-128-GCM tls-client tls-version-min 1.2 tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256 ignore-unknown-option block-outside-dns setenv opt block-outside-dns verb 3 <ca> -----BEGIN CERTIFICATE----- -----END CERTIFICATE----- </ca> <cert> -----BEGIN CERTIFICATE----- -----END CERTIFICATE----- </cert> <key> -----BEGIN PRIVATE KEY----- -----END PRIVATE KEY----- </key> <tls-crypt> # # 2048 bit OpenVPN static key # -----BEGIN OpenVPN Static key V1----- -----END OpenVPN Static key V1----- </tls-crypt> And this is my server conf port 1194 proto tcp dev tun user nobody group nogroup persist-key persist-tun keepalive 10 120 topology subnet server x.x.x.x 255.255.255.0 ifconfig-pool-persist ipp.txt push "dhcp-option DNS x.x.x.x" push "dhcp-option DNS x.x.x.x" push "dhcp-option DNS x.x.x.x" push "redirect-gateway def1 bypass-dhcp" dh none ecdh-curve prime256v1 tls-crypt tls-crypt.key crl-verify crl.pem ca ca.crt cert server_lOdtEHWVmAMF9eXp.crt key server_lOdtEHWVmAMF9eXp.key auth SHA256 cipher AES-128-GCM ncp-ciphers AES-128-GCM tls-server tls-version-min 1.2 tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256 client-config-dir /etc/openvpn/ccd status /var/log/openvpn/status.log verb 3 have a nice day 🙂
TinCanTech I would advise against disabling --reneg-sec on the server. Also, watch out for typos, especially when related to important security settings. Also, the advice (once corrected) will make the client reconnect every hour but the problem is disconnecting at irregular times .. how are they related ?
kp2 Hello, thank you both for your answers, sometimes the disconnections are spontaneous but I would say that overall they are very regular, even if I look in the logs every 2 or 3 hours at the same minute. Have a nice day
TinCanTech kp2 wrote Mar 12 10:39:56 Hostname ovpn-server[503]: user1/180.62.113.83:55114 TLS: soft reset sec=0 bytes=1092558254/-1 pkts=1303575/0 It happens at exactly one hour +/- 5%. It is a security feature.
kp2 Hello, No it's every 2/3 hours and it's problematic because we use it to access sensitive applications like databases and if the user loses the connection the data can be corrupted. I don't have this problem (on Linux) but on Windows, some people have this problem. Thanks
TinCanTech No, it is every hour but your user simply does not notice it sometimes. If you disable it then sensitive applications will be exposed to security weaknesses .. Unless your user has connection problems, in which case the log you posted is irrelevant. https://forums.openvpn.net/viewtopic.php?f=30&t=22603
kp2 Hello, ok thanks, I will follow the How to, change the verbosity of the logs, ... I will come back to you within a week. Thanks for everything