summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-22 09:33:28 +0100
committerGitHub <noreply@github.com>2020-12-22 09:33:28 +0100
commitb0c8fb08c55d6c54b15bf6829b2996c583bd7e11 (patch)
tree840e65277f0e699f8c98509d4990cd7590714952
parent3a795c8d0dcf42a6daf4ecc6a2a5d8281bf5e999 (diff)
parent35fcfbbfe53085fabdcf2e4f48e46b6d8e163bc8 (diff)
downloadvyos-1x-b0c8fb08c55d6c54b15bf6829b2996c583bd7e11.tar.gz
vyos-1x-b0c8fb08c55d6c54b15bf6829b2996c583bd7e11.zip
Merge pull request #655 from DmitriyEshenko/1x-openvpn21122020f2
openvpn: T3143: Push routes in correct format <IP> <NETMASK>
-rw-r--r--data/templates/openvpn/server.conf.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/openvpn/server.conf.tmpl b/data/templates/openvpn/server.conf.tmpl
index 9fc281afc..462d73c02 100644
--- a/data/templates/openvpn/server.conf.tmpl
+++ b/data/templates/openvpn/server.conf.tmpl
@@ -103,7 +103,7 @@ ccd-exclusive
{% endif %}
{% if server.push_route is defined and server.push_route is not none %}
{% for route in server.push_route %}
-push "route {{ route }}"
+push "route {{ route | address_from_cidr }} {{ route | netmask_from_cidr }}"
{% endfor %}
{% endif %}
{% if server.name_server is defined and server.name_server is not none %}