in my client ovpn profile I have 2 connection profiles. One for UDP, the other for TCP.
Code: Select all
connect-retry-max
Code: Select all
connect-retry
However, this doesn't work for me. No matter where I put e.g.
Code: Select all
connect-retry-max
What I want to achieve is that the client tries e.g. 3 times UDP, and then moves to TCP.
below client config should try via UDP 3 times, and then move on to TCP and try 10 times.
Code: Select all
...
connect-retry 3 10
reneg-sec 30
<connection>
remote openvpn.servery.org 1194 udp
connect-retry-max 3
</connection>
<connection>
remote openvpn.servery.org 443 tcp
connect-retry-max 10
</connection>
this client config should try a connection profile 3 times, then move on to the next (as per documentation). However, it tries 4 times: UDP, TCP, UDP, UDP and then giving up.
Code: Select all
...
connect-retry 3 10
reneg-sec 30
connect-retry-max 3
<connection>
remote openvpn.servery.org 1194 udp
</connection>
<connection>
remote openvpn.servery.org 443 tcp
</connection>