You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
461 B
Plaintext

#!/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'] }}