summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2012-06-05 22:23:40 +0000
committerManuel Munz <freifunk@somakoma.de>2012-06-05 22:23:40 +0000
commit27b7784cddaf4d001375b267dfe4c3f739565b2c (patch)
treea8fbcb039c9f61fe428e5fc08d50639b4ed143a7 /contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting
parent163b224b25d003cc6ca555b305bdbc89b2dd61b6 (diff)
contrib/freifunk-policyrouting: Almost works now. There is still the problem that localhost cannot use his own ipv6 gateway, this needs more investigation
Diffstat (limited to 'contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting')
-rw-r--r--contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting15
1 files changed, 12 insertions, 3 deletions
diff --git a/contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting b/contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting
index 68eba11cf0..acce981130 100644
--- a/contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting
+++ b/contrib/package/freifunk-policyrouting/files/etc/hotplug.d/iface/30-policyrouting
@@ -58,15 +58,24 @@ case $ACTION in
ip route add $NETWORK/$NETMASK dev $device table default
ip route add default via $gw dev $device table default
+ #if [ "$has_ipv6" = 1 ]; then
+ # local ip6gw=$(ip -6 r |grep default |cut -d " " -f 3)
+ # test -n "`ip -6 r s t default`" && ip -6 r d default t default
+ # test -n "`ip -6 r s |grep default`" && ip -6 route del default
+ # ip -6 r a $ip6gw via $ip6gw dev $dev table default
+ # ip -6 route add default via $ip6gw dev $device table default
+ #fi
+
+
ip rule del lookup main
ip rule add fwmark 1 lookup olsr-default
ip rule add lookup main
ip rule add lookup olsr
if [ "$has_ipv6" = 1 ]; then
ip -6 rule del lookup main
- ip -6 rule add fwmark 1 lookup olsr-default
- ip -6 rule add lookup main
- ip -6 rule add lookup olsr
+ ip -6 rule add fwmark 1 lookup olsr-default prio 16385
+ ip -6 rule add lookup main prio 16383
+ ip -6 rule add lookup olsr prio 16380
fi
else
# Remove custom routing tables from olsrd