diff options
author | Christian Breunig <christian@breunig.cc> | 2024-08-05 07:26:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-05 07:26:17 +0200 |
commit | aa842a640cbe96719caf4cd1843d718a68f81319 (patch) | |
tree | 5b0cc5a7f403fe2efb9a916b667dd925486d799f /data | |
parent | 9340765d8484304274d30d252fc16fbebd80a870 (diff) | |
parent | 0162a27952d2166583a9e6aee2cd77b9c693062b (diff) | |
download | vyos-1x-aa842a640cbe96719caf4cd1843d718a68f81319.tar.gz vyos-1x-aa842a640cbe96719caf4cd1843d718a68f81319.zip |
Merge pull request #3920 from fett0/T6555
OPENVPN: T6555: add server-bridge options in mode server
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 f69519697..408103558 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 %} |