summaryrefslogtreecommitdiff
path: root/roles/install_wireguard_backbone/templates/down.sh.j2
blob: d8da8daa3b5d0ab6229aff486b6ba08220046390 (plain)
1
2
3
4
5
6
7
#!/bin/bash
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 -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 del bb{{ hostvars[item]['wireguard_bb_name'] }}