I have two UDP OpenVPN servers and it is added in the client configuration file as connection tags.
When the server configurations are modified by other users both the server gives "TLS handshake failed" error and retries infinitely. For us the error is not an issue, because it is expected. Is there a way to exit the process when the second server is also give TLS error?
Basically the configuration should be able to work as follows.
1. Try first server.
2. If tls error, try second server
3. If tls error, exit.
Is there a way to achieve this?
Client retries infinitely after TLS error
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 3
- Joined: Fri Jul 24, 2020 12:51 pm
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Client retries infinitely after TLS error
You may be able to do this by using multiple <connection> blocks.
-
- OpenVpn Newbie
- Posts: 3
- Joined: Fri Jul 24, 2020 12:51 pm
Re: Client retries infinitely after TLS error
Thanks for the reply.
I am already using it. Sorry, may be its not clear for you. The process is keep on looping through these 2 connections. It is not at all exiting.
I need the process to exit immediately after completing the TLS retry for the second connection.
I am already using it. Sorry, may be its not clear for you. The process is keep on looping through these 2 connections. It is not at all exiting.
I need the process to exit immediately after completing the TLS retry for the second connection.
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Client retries infinitely after TLS error
May be you are using the wrong options ..
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
-
- OpenVpn Newbie
- Posts: 3
- Joined: Fri Jul 24, 2020 12:51 pm
Re: Client retries infinitely after TLS error
Tried using the "connect-retry-max" option also but didn't work.
Please have a look at my configuration.
Please have a look at my configuration.
Code: Select all
client
dev tap
resolv-retry infinite
nobind
persist-key
comp-lzo
verb 6
reneg-sec 0
<connection>
remote 11.11.11.11 1194
proto udp
</connection>
<connection>
remote 11.11.11.11 1195
proto udp
</connection>
<ca>
-----BEGIN CERTIFICATE-----
---------------------------
-----END CERTIFICATE-----
</ca>
dev-node "DevAdapter"
auth-user-pass
connect-retry-max 1
- GoNzU88
- OpenVpn Newbie
- Posts: 1
- Joined: Mon Jul 27, 2020 9:54 am
Re: Client retries infinitely after TLS error
Good info, I'm going to take a look at it.TinCanTech wrote: ↑Sat Jul 25, 2020 8:22 pmhttps://community.openvpn.net/openvpn/t ... #comment:1
* Resolved *