From f74e2704d7eb54ddfed09ac638e5e36b02625152 Mon Sep 17 00:00:00 2001 From: Manevolent Date: Thu, 22 Dec 2022 10:04:15 -0700 Subject: [PATCH] Update tinc-up.tmpl --- tinc/tinc-up.tmpl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tinc/tinc-up.tmpl b/tinc/tinc-up.tmpl index 780bea2..81c2955 100644 --- a/tinc/tinc-up.tmpl +++ b/tinc/tinc-up.tmpl @@ -1,7 +1,5 @@ #!/bin/sh -{{ if ne "true" "${enable_ipv6:-false}" }} -sysctl -w net.ipv6.conf.\$INTERFACE.disable_ipv6=1 || echo "[WARNING] IPv6 couldn't be disabled on the \$INTERFACE interface! Make sure you disable IPv6 at the host level with sysctl -w net.ipv6.conf.all.disable_ipv6=1" -{{ end }} +sysctl -w net.ipv6.conf.\$INTERFACE.disable_ipv6=1 || echo "[WARNING] IPv6 couldn't be disabled on the \$INTERFACE interface!" {{ 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}