etc/hosts: Replacing IPv6 host routes with /112 networks.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 13 Jul 2013 15:34:40 +0000 (16:34 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 21 Apr 2014 16:27:13 +0000 (17:27 +0100)
Linux has a bug: it doesn't make route cache entries for remote hosts if
there's already a host route, and it only attaches path-MTU information
to cache entries.  The result is that it doesn't handle ICMPv6 `packet
too big' messages properly for destinations with host routes.

I'm bodging this by replacing all of the host routes with tiny /112
networks.  It's awful, but it seems to work.  The convention is that the
`host part' of the net is always zero.

etc/hosts

index 1ced894..e62aa6b 100644 (file)
--- a/etc/hosts
+++ b/etc/hosts
@@ -20,7 +20,7 @@ artist \
        .unsafe 172.29.199.4 2001:470:9740:1::4 \
        .untrusted 172.29.198.2 2001:470:9740:8001::2
 orange \
        .unsafe 172.29.199.4 2001:470:9740:1::4 \
        .untrusted 172.29.198.2 2001:470:9740:8001::2
 orange \
-       172.29.199.131 2001:ba8:1d9:6000::3
+       172.29.199.131 2001:ba8:1d9:6000::3:0
 fender \
        .jump 212.13.198.69 2001:ba8:0:1d9::2 \
        .colo 172.29.199.177 2001:ba8:1d9:2::1
 fender \
        .jump 212.13.198.69 2001:ba8:0:1d9::2 \
        .colo 172.29.199.177 2001:ba8:1d9:2::1
@@ -54,7 +54,7 @@ invader
 
 ## Mobile devices.
 crybaby \
 
 ## Mobile devices.
 crybaby \
-       172.29.199.129 2001:ba8:1d9:6000::1
+       172.29.199.129 2001:ba8:1d9:6000::1:0
 terror \
        172.29.199.130
 
 terror \
        172.29.199.130