summaryrefslogtreecommitdiff
path: root/roles/configure_static_routes/files/ffmyk-iproute.sh
diff options
context:
space:
mode:
authorNiklas Yann Wettengel <niyawe@niyawe.de>2022-01-22 19:59:11 +0100
committerNiklas Yann Wettengel <niyawe@niyawe.de>2022-01-22 19:59:11 +0100
commitfb0dbf28a0e7979050858256d2040d734b282afe (patch)
tree153ac6d83de80fd39a6724e72a3beb6a56992300 /roles/configure_static_routes/files/ffmyk-iproute.sh
parentb53a8cf2283b2d6debb94cd399a72d25da0d7c82 (diff)
new net with nat64
Diffstat (limited to 'roles/configure_static_routes/files/ffmyk-iproute.sh')
-rwxr-xr-xroles/configure_static_routes/files/ffmyk-iproute.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/configure_static_routes/files/ffmyk-iproute.sh b/roles/configure_static_routes/files/ffmyk-iproute.sh
index 831d30d..83cb5aa 100755
--- a/roles/configure_static_routes/files/ffmyk-iproute.sh
+++ b/roles/configure_static_routes/files/ffmyk-iproute.sh
@@ -2,7 +2,11 @@
#Alles, was mit 0x1 markiert wird gehört zu Tabelle ffmyk
ip -4 rule add from all fwmark 0x1 table ffmyk priority 10
ip -6 rule add from all fwmark 0x1 table ffmyk priority 10
+ip -4 rule add iif nat64 table ffmyk priority 10
+ip -6 rule add iif nat64 table ffmyk priority 10
+ip -4 rule add to 10.1.0.0/16 table ffmyk priority 10
+ip -4 rule add to 10.2.0.0/16 table ffmyk priority 10
#Alles mit Freifunk-IP - woher auch immer - gehört zu Tabelle ffmyk
ip -4 rule add to 10.222.1.0/24 table ffmyk priority 10
ip -4 rule add to 10.222.2.0/23 table ffmyk priority 10
@@ -16,3 +20,6 @@ ip -6 rule add to 2001:470:cd45:ff00::/56 table ffmyk priority 10
ip -6 rule add to 2a03:2260:1016::/48 table ffmyk priority 10
ip -6 rule add to 64:ff9b::/96 table ffmyk priority 10
ip -6 rule add to fd62:44e1:da::/48 table ffmyk priority 10
+
+ip -4 rule add from all iif nat64 type unreachable priority 200
+ip -6 rule add from all iif nat64 type unreachable priority 200