diff options
author | fett0 <fernando.gmaidana@gmail.com> | 2024-07-31 18:21:25 +0000 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-08-05 10:50:24 +0000 |
commit | bc2bb1ed9ac977c8ad540d7ccbfff8e9980277cf (patch) | |
tree | 1e907a1a262c941d59eba894c51d3697ad74d951 /data | |
parent | f51657532b546cc1e20df1a18b1111c46db045be (diff) | |
download | vyos-1x-bc2bb1ed9ac977c8ad540d7ccbfff8e9980277cf.tar.gz vyos-1x-bc2bb1ed9ac977c8ad540d7ccbfff8e9980277cf.zip |
OPENVPN: T6555: add server-bridge options in mode server
(cherry picked from commit 4acad3eb8d9be173b76fecafc32b0c70eae9b192)
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/openvpn/server.conf.j2 | 4 |
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..b6e90ed18 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 %} |