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-09-09 11:42:36 +0000 |
commit | 62f5bc773ac01b25a874fea3a16b492c9659c26d (patch) | |
tree | ba859762e832197ebd1f49ec961f04d609a3e717 /data/templates/openvpn/server.conf.j2 | |
parent | b2afa78d6f006e753be1fa07a640d14fe94a0b8f (diff) | |
download | vyos-1x-62f5bc773ac01b25a874fea3a16b492c9659c26d.tar.gz vyos-1x-62f5bc773ac01b25a874fea3a16b492c9659c26d.zip |
OPENVPN: T6555: add server-bridge options in mode server
(cherry picked from commit 4acad3eb8d9be173b76fecafc32b0c70eae9b192)
Diffstat (limited to 'data/templates/openvpn/server.conf.j2')
-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 64c8e8086..4957cbf2c 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 %} |