From d82f8524972086862f64750f325ba067ea993d86 Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Mon, 3 Jul 2017 09:46:42 +0200 Subject: fastd working --- roles/configure_static_routes/files/ffmyk-iproute.service | 14 ++++++++++++++ roles/configure_static_routes/files/ffmyk-iproute.sh | 12 ++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 roles/configure_static_routes/files/ffmyk-iproute.service create mode 100755 roles/configure_static_routes/files/ffmyk-iproute.sh (limited to 'roles/configure_static_routes/files') diff --git a/roles/configure_static_routes/files/ffmyk-iproute.service b/roles/configure_static_routes/files/ffmyk-iproute.service new file mode 100644 index 0000000..95bfe42 --- /dev/null +++ b/roles/configure_static_routes/files/ffmyk-iproute.service @@ -0,0 +1,14 @@ +[Unit] +Description=sets up ip rules and static routes +ConditionPathExists=/usr/local/bin/ffmyk-iproute.sh + +[Service] +Type=forking +ExecStart=/usr/local/bin/ffmyk-iproute.sh +TimeoutSec=0 +StandardOutput=tty +RemainAfterExit=yes +SysVStartPriority=99 + +[Install] +WantedBy=multi-user.target diff --git a/roles/configure_static_routes/files/ffmyk-iproute.sh b/roles/configure_static_routes/files/ffmyk-iproute.sh new file mode 100755 index 0000000..ee7f6a0 --- /dev/null +++ b/roles/configure_static_routes/files/ffmyk-iproute.sh @@ -0,0 +1,12 @@ +#!/bin/bash +#Routingtabelle ffmyk ist per default nicht erreichbar +ip -4 route add unreachable default table ffmyk +ip -6 route add unreachable default table ffmyk + +#Alles, was mit 0x1 markiert wird gehört zu Tabelle ffmyk +ip -4 rule add from all fwmark 0x1 table ffmyk +ip -6 rule add from all fwmark 0x1 table ffmyk + +#Alles mit Freifunk-IP - woher auch immer - gehlrt zu Tabelle ffmyk +ip -4 rule add from 10.222.0.0/16 table ffmyk +ip -6 rule add from 2001:470:cd45:FF00::/56 table ffmyk -- cgit v1.2.3-54-g00ecf