changed routing policy
parent
4136cb974e
commit
a72158a848
@ -1,11 +1,14 @@
|
||||
#!/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 rule add iif bat{{ item.name }} table ffmyk priority 10
|
||||
ip -6 rule add iif bat{{ item.name }} table ffmyk priority 10
|
||||
ip -4 rule add from {{ item.net4 }} table ffmyk priority 10
|
||||
ip -6 rule add from {{ item.net6 }} table ffmyk priority 10
|
||||
ip -4 rule add to {{ item.net4 }} table ffmyk priority 10
|
||||
ip -6 rule add to {{ item.net6 }} table ffmyk priority 10
|
||||
|
||||
ip -4 rule add from all iif bat{{ item.name }} type unreachable priority 200
|
||||
ip -6 rule add from all iif bat{{ item.name }} type unreachable priority 200
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue