Roles service-fastd-mesh + service-fastd-intragate
- remove on-up|on-down stanzas from fastd.conf - update readme
This commit is contained in:
parent
7a482e195f
commit
07eda681ca
3 changed files with 1 additions and 28 deletions
|
@ -1,5 +1,3 @@
|
|||
{% set ip4hex = item.0.ipv4_network | ipaddr('net') | ipaddr(magic) | ipaddr('address') | ip4_hex() -%}
|
||||
{% set mac = '023' + item.1.id|string + ip4hex -%}
|
||||
#
|
||||
# {{ ansible_managed }}
|
||||
#
|
||||
|
@ -22,16 +20,4 @@ peer group "servers" {
|
|||
include peers from "peers/services";
|
||||
}
|
||||
|
||||
on up "
|
||||
ip link set $INTERFACE down
|
||||
ip link set address {{ mac | hwaddr('linux') }} dev $INTERFACE
|
||||
ip link set $INTERFACE up
|
||||
|
||||
batctl -m {{ item.0.id }}bat if add $INTERFACE
|
||||
";
|
||||
|
||||
on down "
|
||||
batctl -m {{ item.0.id }}bat if del $INTERFACE
|
||||
";
|
||||
|
||||
status socket "/var/run/fastd-{{ item.0.id }}igvpn-{{ item.1.mtu }}.status";
|
||||
|
|
|
@ -40,6 +40,7 @@ fastd_secrets:
|
|||
...
|
||||
|
||||
´´´
|
||||
- Liste `legacy_gateways`
|
||||
|
||||
## fastd Secrets
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{% set ip4hex = item.0.ipv4_network | ipaddr('net') | ipaddr(magic) | ipaddr('address') | ip4_hex() -%}
|
||||
{% set mac = '022' + item.1.id|string + ip4hex -%}
|
||||
#
|
||||
# {{ ansible_managed }}
|
||||
#
|
||||
|
@ -29,16 +27,4 @@ peer group "servers" {
|
|||
include peers from "peers/servers";
|
||||
}
|
||||
|
||||
on up "
|
||||
ip link set $INTERFACE down
|
||||
ip link set address {{ mac | hwaddr('linux') }} dev $INTERFACE
|
||||
ip link set $INTERFACE up
|
||||
|
||||
batctl -m {{ item.0.id }}bat if add $INTERFACE
|
||||
";
|
||||
|
||||
on down "
|
||||
batctl -m {{ item.0.id }}bat if del $INTERFACE
|
||||
";
|
||||
|
||||
status socket "/var/run/fastd-{{ item.0.id }}vpn-{{ item.1.mtu }}.status";
|
||||
|
|
Loading…
Reference in a new issue