blob: a8275da176e0d3b8b24b4b2596eee68f19777c11 (
plain)
1
2
3
4
5
6
7
8
9
10
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
|