From 217c02f4a416010060cd9366243ff1a54b00693d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20Me=C3=9Ftorff?= Date: Sun, 3 May 2020 14:21:19 +0200 Subject: [PATCH] set proto correct if running as tcp-client MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See documentation for proto: –proto p Use protocol p for communicating with remote host. p can be udp, tcp-client, or tcp-server.The default protocol is udp when –proto is not specified. This might be wron implemented as there is also a proto field for the remote argument: –remote host [port] [proto] Remote host name or IP address. On the client, multiple –remote options may be specified for redundancy, each referring to a different OpenVPN server. Specifying multiple –remote options for this purpose is a special case of the more general connection-profile feature. See the documentation below.The OpenVPN client will try to connect to a server at host:port in the order specified by the list of –remote options. proto indicates the protocol to use when connecting with the remote, and may be “tcp” or “udp”. For forcing IPv4 or IPv6 connection suffix tcp or udp with 4/6 like udp4/udp6/tcp4/tcp6. --- templates/server.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/server.erb b/templates/server.erb index dfbfc0e3..9f618aa6 100644 --- a/templates/server.erb +++ b/templates/server.erb @@ -56,7 +56,7 @@ crl-verify <%= @server_directory %>/<%= @ca_name %>/crl.pem <% unless @remote -%> proto <%= @proto %>-server <% else -%> -proto <%= @proto %> +proto <%= @proto %>-client <% end -%> <% else -%> proto <%= @proto %>