From what I gathered from various sources and the man-page, it should suffice to set the proto option to udp without any number following it, or even not set it at all:
Code: Select all
--proto p
Use protocol p for communicating with remote host. p can be udp,
tcp-client, or tcp-server. You can also limit OpenVPN to use
only IPv4 or only IPv6 by specifying p as udp4, tcp4-client,
tcp4-server or udp6, tcp6-client, tcp6-server, respectively.
The default protocol is udp when --proto is not specified.
Code: Select all
2022-12-27 15:38:37 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
2022-12-27 15:38:37 TLS Error: TLS handshake failed
2022-12-27 15:38:37 SIGUSR1[soft,tls-error] received, process restarting
2022-12-27 15:38:37 Restart pause, 5 second(s)
Here is my relevant config:
Code: Select all
# local listen ip
# If unspecified, OpenVPN will bind to all interfaces.
;local vpn.my-host.tld
# listen on port 1194 udp
port 1194
# protocol
# can be udp, tcp-client, or tcp-server. You can also limit OpenVPN
# to use only IPv4 or only IPv6 by specifying p as udp4, tcp4-client,
# tcp4-server or udp6, tcp6-client, tcp6-server, respectively.
proto udp
# we use tun interface
dev-type tun
dev vpn_OpenVPN