summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-11-14 18:45:25 +0200
committerGitHub <noreply@github.com>2023-11-14 18:45:25 +0200
commitd33f883e3662f79707eba7b80b11f117b1dea076 (patch)
tree610221899d8690b841914bce524293c7fa76037c
parent0ba44ec4644c5cb5ea91981a2c3042f4a9372f66 (diff)
parent480711c329a38b773bb0b8f64f0e50dfc4ea4437 (diff)
downloadvyos-1x-d33f883e3662f79707eba7b80b11f117b1dea076.tar.gz
vyos-1x-d33f883e3662f79707eba7b80b11f117b1dea076.zip
Merge pull request #2475 from sever-sever/T5728
T5728: OpenVPN server replace first_host_address to vpn_gateway
-rw-r--r--data/templates/openvpn/server.conf.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/openvpn/server.conf.j2 b/data/templates/openvpn/server.conf.j2
index 746155c37..c02411904 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 }} {{ 'nop
{% 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 %}