summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-08-06 06:57:02 +0200
committerGitHub <noreply@github.com>2024-08-06 06:57:02 +0200
commit260f6d9365b4e40084fa28ba43dd5e35c4288640 (patch)
treeefc84054daa4a7a4170e6a935d65c62385e9df18 /data/templates
parentf51657532b546cc1e20df1a18b1111c46db045be (diff)
parent01da8d9cd91b9c35dcbbc9160f6377655d5c8983 (diff)
downloadvyos-1x-260f6d9365b4e40084fa28ba43dd5e35c4288640.tar.gz
vyos-1x-260f6d9365b4e40084fa28ba43dd5e35c4288640.zip
Merge pull request #3943 from vyos/mergify/bp/circinus/pr-3920
OPENVPN: T6555: add server-bridge options in mode server (backport #3920)
Diffstat (limited to 'data/templates')
-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 6ac525443..bc3a6127f 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.bridge is vyos_defined and server.bridge.disable is not vyos_defined %}
+server-bridge {{ server.bridge.gateway }} {{ server.bridge.subnet_mask }} {{ server.bridge.start }} {{ server.bridge.stop if 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 %}