You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
468 B
Plaintext
12 lines
468 B
Plaintext
7 years ago
|
#!/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
|