From 74d707f4059f5bb0b9c6f7918a6b6d77104c9f47 Mon Sep 17 00:00:00 2001 From: Manevolent Date: Thu, 22 Dec 2022 21:50:52 -0700 Subject: [PATCH] Update tinc-up.tmpl --- tinc/tinc-up.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tinc/tinc-up.tmpl b/tinc/tinc-up.tmpl index 81c2955..c613524 100644 --- a/tinc/tinc-up.tmpl +++ b/tinc/tinc-up.tmpl @@ -1,6 +1,11 @@ #!/bin/sh sysctl -w net.ipv6.conf.\$INTERFACE.disable_ipv6=1 || echo "[WARNING] IPv6 couldn't be disabled on the \$INTERFACE interface!" +{{ if len "${internal_address6:-}" }} +ifconfig ${internal_interface} ${internal_address6} +{{ end }} + + {{ if len "${vip:-}" }}ifconfig "\$INTERFACE:0" ${vip}{{ end }} {{ if len "${ip_aliases:-}" }}{{ range "$ip_aliases" | split "," }}iptables -t nat -I PREROUTING -d {{ . }} -i \$INTERFACE -j DNAT --to-destination ${tinc_peer_address} iptables -t nat -I PREROUTING -d {{ . }} -i eth0 -j DNAT --to-destination ${tinc_peer_address}