summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/openvpn/tunnel.conf.cftpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/openvpn/tunnel.conf.cftpl b/templates/openvpn/tunnel.conf.cftpl
index 8c718f1..9d7607f 100644
--- a/templates/openvpn/tunnel.conf.cftpl
+++ b/templates/openvpn/tunnel.conf.cftpl
@@ -16,7 +16,10 @@ cipher AES-128-CBC
secret /etc/openvpn/common.key
ifconfig $(g.host_data[tunnels][$(openvpn_tunnel.tunnel)][ip]) $(g.host_data[tunnels][$(openvpn_tunnel.tunnel)][peer])
+[%CFEngine has_ipv6:: %]
+ifconfig-ipv6 $(g.host_data[tunnels][$(openvpn_tunnel.tunnel)][ip6]) $(g.host_data[tunnels][$(openvpn_tunnel.tunnel)][peer6])
+[%CFEngine all:: %]
user nobody
[%CFEngine centos:: %]
group nobody