diff options
author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-07-03 09:46:42 +0200 |
---|---|---|
committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-07-03 09:46:42 +0200 |
commit | d82f8524972086862f64750f325ba067ea993d86 (patch) | |
tree | aa7634db168da40d108e43c7c30fbce299bdc7ab /roles/configure_static_routes/templates | |
parent | 90a8a597eaa3a008eac946460b5c621eafa8ec62 (diff) |
fastd working
Diffstat (limited to 'roles/configure_static_routes/templates')
-rw-r--r-- | roles/configure_static_routes/templates/ffmyk-iproute-down.j2 | 11 | ||||
-rw-r--r-- | roles/configure_static_routes/templates/ffmyk-iproute-up.j2 | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/roles/configure_static_routes/templates/ffmyk-iproute-down.j2 b/roles/configure_static_routes/templates/ffmyk-iproute-down.j2 new file mode 100644 index 0000000..51a0a17 --- /dev/null +++ b/roles/configure_static_routes/templates/ffmyk-iproute-down.j2 @@ -0,0 +1,11 @@ +#!/bin/bash + +ip -4 route del {{item.net4 }} dev bat{{ item.name }} proto static table ffmyk +ip -6 route del {{item.net6 }} dev bat{{ item.name }} proto static table ffmyk + +ip -4 rule del iif bat{{ item.name }} table ffmyk +ip -6 rule del iif bat{{ item.name }} table ffmyk +ip -4 rule del from {{ item.net4 }} table ffmyk +ip -6 rule del from {{ item.net6 }} table ffmyk +ip -4 rule del to {{ item.net4 }} table ffmyk +ip -6 rule del to {{ item.net6 }} table ffmyk diff --git a/roles/configure_static_routes/templates/ffmyk-iproute-up.j2 b/roles/configure_static_routes/templates/ffmyk-iproute-up.j2 new file mode 100644 index 0000000..a8275da --- /dev/null +++ b/roles/configure_static_routes/templates/ffmyk-iproute-up.j2 @@ -0,0 +1,11 @@ +#!/bin/bash + +ip -4 rule add iif bat{{ item.name }} table ffmyk +ip -6 rule add iif bat{{ item.name }} table ffmyk +ip -4 rule add from {{ item.net4 }} table ffmyk +ip -6 rule add from {{ item.net6 }} table ffmyk +ip -4 rule add to {{ item.net4 }} table ffmyk +ip -6 rule add to {{ item.net6 }} table ffmyk + +ip -4 route replace {{item.net4 }} dev bat{{ item.name }} proto static table ffmyk +ip -6 route replace {{item.net6 }} dev bat{{ item.name }} proto static table ffmyk |