diff options
author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-17 22:35:38 +0100 |
---|---|---|
committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-17 22:35:38 +0100 |
commit | 4b97c64f947662cd4e2c233a51114c1ff3a9815c (patch) | |
tree | 07882522000071bfe7ffe7b10e773198bd6b06dd /roles/setup_batman/files/ffmyk-iproute.sh | |
parent | 711f968dda1acca7d6b2a86e28a1535449938941 (diff) |
updated setup_fastd playbook
added features:
- install_bind
- install_dhcp
- install_fastd
- setup_batman
Diffstat (limited to 'roles/setup_batman/files/ffmyk-iproute.sh')
-rwxr-xr-x | roles/setup_batman/files/ffmyk-iproute.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/setup_batman/files/ffmyk-iproute.sh b/roles/setup_batman/files/ffmyk-iproute.sh new file mode 100755 index 0000000..49fbb16 --- /dev/null +++ b/roles/setup_batman/files/ffmyk-iproute.sh @@ -0,0 +1,20 @@ +#!/bin/bash +#Routingtabelle ffmyk ist per default nicht erreichbar +ip route add unreachable default table ffmyk + +#Alles, was mit 0x1 markiert wird gehört zu Tabelle ffmyk +ip rule add from all fwmark 0x1 table ffmyk + +#Alles mit Freifunk-IP - woher auch immer - gehlrt zu Tabelle ffmyk +ip rule add from 10.222.0.0/16 table ffmyk + +#Tabelle ffmyk routet das Ziel mit Freifunk-IPs über das Device bat0 +ip route replace 10.222.0.0/16 dev bat0 table ffmyk + +ip route replace 0.0.0.0/1 via 10.222.100.1 dev bat0 metric 666 table ffmyk # fastd1 +ip route replace 128.0.0.0/1 via 10.222.100.1 dev bat0 metric 666 table ffmyk # fastd1 +ip route replace 0.0.0.0/1 via 10.222.112.1 dev bat0 metric 667 table ffmyk # fastd2 +ip route replace 128.0.0.0/1 via 10.222.112.1 dev bat0 metric 667 table ffmyk # fastd2 +ip route replace 0.0.0.0/1 via 10.222.120.1 dev bat0 metric 668 table ffmyk # fastd3 +ip route replace 128.0.0.0/1 via 10.222.120.1 dev bat0 metric 668 table ffmyk # fastd3 + |