@cryptotaxi247 / infra-1 / commits / 2615b3e5

* Make cartman's 6to4 tunnel address different from its address on the local network. Otherwise routing gets confused when talking to other machines on the network.

* Make cartman's 6to4 tunnel address different from its address on the local network. Otherwise routing gets confused when talking to other machines on the network. svn path=/configurations/trunk/tud/; revision=26230

Eelco Dolstra committed Mar 9, 2011 at 14:06 UTC 2615b3e5b35308fc1cb1ee7c2b60b6aaf2cff50d
1 file changed +4 -4
cartman.nix
+4 -4
@@ -115,16 +115,16 @@ rec {
115
116 # compute 6to4 address
117 prefix6=$(printf "2002:%02x%02x:%02x%02x\n" $(echo ${myIP} | tr . ' '))
118 - addr6="$prefix6"::1
118 + addr6="$prefix6"::0 # our tunnel end-point on the tun6to4 interface
119
120 # set up the tunnel
121 - ip tunnel add tun6to4 mode sit remote any local ${myIP}
121 + ip tunnel add tun6to4 mode sit remote any local ${myIP} ttl 64
122 ip link set dev tun6to4 mtu 1472 up
123 - ip -6 addr add $addr6/16 dev tun6to4
124 - ip -6 route add ::/96 dev tun6to4 metric 1
123 + ip -6 addr add $addr6/128 dev tun6to4
124 ip -6 route add 2000::/3 via ::192.88.99.1 dev tun6to4 metric 1
125
126 # enable forwarding for the rest of the network
127 + ip -6 addr add $prefix6::1 dev eth0
128 ip -6 route add $prefix6::/64 dev eth0
129 '';
130 };