diff --git a/manifests/server.pp b/manifests/server.pp index 24a7048..940284d 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -74,6 +74,10 @@ # Integer. The port the openvpn server service is running on # Default: 1194 # +# [*portshare*] +# String. The address and port to which non openvpn request shall be forwared, e.g. 127.0.0.1 8443 +# Default: undef +# # [*proto*] # String. What IP protocol is being used. # Default: tcp @@ -376,6 +380,7 @@ define openvpn::server( $local = $::ipaddress_eth0, $logfile = false, $port = '1194', + $portshare = undef, $proto = 'tcp', $status_version = '', $status_log = "/var/log/openvpn/${name}-status.log", diff --git a/templates/server.erb b/templates/server.erb index 715570d..5769606 100644 --- a/templates/server.erb +++ b/templates/server.erb @@ -31,6 +31,9 @@ proto <%= @proto %> nobind <% else -%> port <%= @port %> +<% if @portshare -%> +port-share <%= @portshare %> +<% end -%> <% end -%> <% if @real_tls_server -%> tls-server