summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorfett0 <fernando.gmaidana@gmail.com>2024-07-31 18:21:25 +0000
committerfett0 <fernando.gmaidana@gmail.com>2024-07-31 18:21:25 +0000
commit4acad3eb8d9be173b76fecafc32b0c70eae9b192 (patch)
tree1bede28b5fde36fc26e717986a416d6d50e3be7a /data
parent7724a5f58b515fbc094b4f211d455c1bd5071a74 (diff)
downloadvyos-1x-4acad3eb8d9be173b76fecafc32b0c70eae9b192.tar.gz
vyos-1x-4acad3eb8d9be173b76fecafc32b0c70eae9b192.zip
OPENVPN: T6555: add server-bridge options in mode server
Diffstat (limited to 'data')
-rw-r--r--data/templates/openvpn/server.conf.j24
1 files changed, 3 insertions, 1 deletions
diff --git a/data/templates/openvpn/server.conf.j2 b/data/templates/openvpn/server.conf.j2
index f69519697..a8674ec35 100644
--- a/data/templates/openvpn/server.conf.j2
+++ b/data/templates/openvpn/server.conf.j2
@@ -90,7 +90,9 @@ server-ipv6 {{ subnet }}
{% endif %}
{% endfor %}
{% endif %}
-
+{% if server.server_bridge is vyos_defined and server.server_bridge.disable is not vyos_defined %}
+server-bridge {{ server.server_bridge.gateway }} {{ server.server_bridge.subnet_mask }} {{ server.server_bridge.start }} {{ server.server_bridge.stop if server.server_bridge.stop is vyos_defined }}
+{% endif %}
{% if server.client_ip_pool is vyos_defined and server.client_ip_pool.disable is not vyos_defined %}
ifconfig-pool {{ server.client_ip_pool.start }} {{ server.client_ip_pool.stop }} {{ server.client_ip_pool.subnet_mask if server.client_ip_pool.subnet_mask is vyos_defined }}
{% endif %}