diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-14 18:14:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-14 18:14:48 +0100 |
commit | fa92cbea9ab4802554da8b02814626b6510260d2 (patch) | |
tree | a9b2387377caf76a8493c891d02df6b8ba762455 /data | |
parent | 527928154c91693c9c21a17a3d609ce17cba9675 (diff) | |
parent | ca7ad9cbdfe748ff7d048faaea2297a591f64b5c (diff) | |
download | vyos-1x-fa92cbea9ab4802554da8b02814626b6510260d2.tar.gz vyos-1x-fa92cbea9ab4802554da8b02814626b6510260d2.zip |
Merge pull request #2482 from vyos/mergify/bp/sagitta/pr-2475
T5728: OpenVPN server replace first_host_address to vpn_gateway (backport #2475)
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/openvpn/server.conf.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/openvpn/server.conf.j2 b/data/templates/openvpn/server.conf.j2 index f76fbbe79..d7d4a5861 100644 --- a/data/templates/openvpn/server.conf.j2 +++ b/data/templates/openvpn/server.conf.j2 @@ -79,7 +79,7 @@ server {{ subnet | address_from_cidr }} {{ subnet | netmask_from_cidr }} nopool {% if server.push_route is vyos_defined %} {% for route, route_config in server.push_route.items() %} {% if route | is_ipv4 %} -push "route {{ route | address_from_cidr }} {{ route | netmask_from_cidr }} {{ subnet | first_host_address ~ ' ' ~ route_config.metric if route_config.metric is vyos_defined }}" +push "route {{ route | address_from_cidr }} {{ route | netmask_from_cidr }} {{ 'vpn_gateway' ~ ' ' ~ route_config.metric if route_config.metric is vyos_defined }}" {% elif route | is_ipv6 %} push "route-ipv6 {{ route }}" {% endif %} |