fix wireguard backbone down script

master
Niklas Yann Wettengel 7 years ago
parent 54515eb744
commit 7b896973cc

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
ip -4 rule del iif bb{{ hostvars[item]['wireguard_bb_name'] }} table ffmyk ip -4 rule del iif bb{{ hostvars[item]['wireguard_bb_name'] }} table ffmyk
ip -6 rule del iif bb{{ hostvars[item]['wireguard_bb_name'] }} table ffmyk ip -6 rule del iif bb{{ hostvars[item]['wireguard_bb_name'] }} table ffmyk
ip -4 rule del from all iif bb{{ hostvars[item]['wireguard_bb_name'] }} type unreachable
ip -6 rule del from all iif bb{{ hostvars[item]['wireguard_bb_name'] }} type unreachable
ip link set down dev bb{{ hostvars[item]['wireguard_bb_name'] }} ip link set down dev bb{{ hostvars[item]['wireguard_bb_name'] }}
ip link del bb{{ hostvars[item]['wireguard_bb_name'] }} ip link del bb{{ hostvars[item]['wireguard_bb_name'] }}

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
ip -4 rule del iif bb{{ item.name }} table ffmyk ip -4 rule del iif bb{{ item.name }} table ffmyk
ip -6 rule del iif bb{{ item.name }} table ffmyk ip -6 rule del iif bb{{ item.name }} table ffmyk
ip -4 rule del from all iif bb{{ item.name }} type unreachable
ip -6 rule del from all iif bb{{ item.name }} type unreachable
ip link set down dev bb{{ item.name }} ip link set down dev bb{{ item.name }}
ip link del bb{{ item.name }} ip link del bb{{ item.name }}

Loading…
Cancel
Save