From 152a2182891fe22eb16f2de6b05574d7b041df5f Mon Sep 17 00:00:00 2001 Message-Id: <152a2182891fe22eb16f2de6b05574d7b041df5f.1715457172.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sat, 14 Mar 2015 19:03:00 +0000 Subject: [PATCH] src/tripe-ifup.in: Hack IPv6 up on VPN interfaces. Organization: Straylight/Edgeware From: Mark Wooding It seems that some devices try to turn off IPv6 on all interfaces if they can't figure out a route. But we know how to take care of ourselves, and we want IPv6 over our VPN even if we can't do it globally. I'm thinking specifically of ConnMan on Jolla phones here, but there are probably others. --- svc/tripe-ifup.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/svc/tripe-ifup.in b/svc/tripe-ifup.in index e92c0fd5..032142c5 100644 --- a/svc/tripe-ifup.in +++ b/svc/tripe-ifup.in @@ -108,6 +108,13 @@ haveaddr6=nil set -- $l6addr case $have6,$# in t,[1-9]*) + + ## If we're configured to set IPv6 addresses then we should ensure that + ## they're going to work, even if the default setting for new interfaces + ## is to disable IPv6. + try sysctl -q net.ipv6.conf."$ifname".disable_ipv6=0 + + ## Now add the source and destination addresses. for a in "$@"; do try ip addr add "$a" dev "$ifname" haveaddr6=t -- [mdw]