forked from FF-RGB/ansible
Correctly add/remove fastd interface from batman
This commit is contained in:
parent
588112b25f
commit
7f3d33f31c
@ -21,8 +21,17 @@ mtu {{ fastd_mtu }};
|
|||||||
peer limit {{ fastd_peers_limit }};
|
peer limit {{ fastd_peers_limit }};
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
on up "ifup --allow hotplug {{ fastd_interface }}";
|
on up "
|
||||||
on down "ifdown --allow hotplug {{ fastd_interface }}";
|
ifconfig $INTERFACE down
|
||||||
|
ip link set address f2:00:90:00:{{ gateway_id }}:10 dev $INTERFACE
|
||||||
|
ifconfig $INTERFACE up
|
||||||
|
|
||||||
|
batctl -m {{ batman_interface }} if add $INTERFACE
|
||||||
|
";
|
||||||
|
|
||||||
|
on down "
|
||||||
|
batctl -m {{ batman_interface }} if del $INTERFACE
|
||||||
|
";
|
||||||
|
|
||||||
{% if fastd_anonymous %}
|
{% if fastd_anonymous %}
|
||||||
on verify "/etc/fastd/{{ site_code }}/blacklist.sh /opt/{{ site_code }}/vpn-blacklist/blacklist.json";
|
on verify "/etc/fastd/{{ site_code }}/blacklist.sh /opt/{{ site_code }}/vpn-blacklist/blacklist.json";
|
||||||
|
Loading…
Reference in New Issue
Block a user