summaryrefslogtreecommitdiffstats
path: root/roles/openvpn
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-10-06 04:45:42 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-10-06 04:45:42 +0200
commit55256f2247592548b26889defc2e46258580101b (patch)
tree266c14607a29ff701bb9576cadb47dd86706ab42 /roles/openvpn
parent4f509f9faad0e463cbc5dcac057c4da0fda3e969 (diff)
downloadands-55256f2247592548b26889defc2e46258580101b.tar.gz
ands-55256f2247592548b26889defc2e46258580101b.tar.bz2
ands-55256f2247592548b26889defc2e46258580101b.tar.xz
ands-55256f2247592548b26889defc2e46258580101b.zip
Allow iperouter to access KaaS OpenVPN network
Diffstat (limited to 'roles/openvpn')
-rw-r--r--roles/openvpn/templates/katrin/ccd/iperouter.j22
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/openvpn/templates/katrin/ccd/iperouter.j2 b/roles/openvpn/templates/katrin/ccd/iperouter.j2
new file mode 100644
index 0000000..b4a8fdd
--- /dev/null
+++ b/roles/openvpn/templates/katrin/ccd/iperouter.j2
@@ -0,0 +1,2 @@
+ifconfig-push {{ openvpn_net | ipaddr(210) | ipaddr('address') }} {{ openvpn_net | ipaddr('netmask') }}
+push "route 192.168.110.0 255.255.255.0 {{ openvpn_net | ipaddr(181) | ipaddr('address') }}"