blob: fe4334d8c923d588b128b927924d1f6782e7b662 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
{% if item.net4 is defined %}
ip -4 route del {{item.net4 }} dev bat{{ item.name }} proto static table ffmyk
{% endif %}
{% if item.net6 is defined %}
ip -6 route del {{item.net6 }} dev bat{{ item.name }} proto static table ffmyk
{% endif %}
{% if item.site_net6 is defined %}
ip -6 route del {{item.site_net6 }} dev bat{{ item.name }} proto static table ffmyk
{% endif %}
ip -4 rule del iif bat{{ item.name }} table ffmyk
ip -6 rule del iif bat{{ item.name }} table ffmyk
{% if item.net4 is defined %}
ip -4 rule del from {{ item.net4 }} table ffmyk
{% endif %}
{% if item.net6 is defined %}
ip -6 rule del from {{ item.net6 }} table ffmyk
{% endif %}
|