From 739f97d85908baba47589bb7466a7d559b4424b2 Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Wed, 5 Jul 2017 12:37:39 +0200 Subject: wireguard site mesh --- roles/install_wireguard_mesh/templates/down.sh.j2 | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 roles/install_wireguard_mesh/templates/down.sh.j2 (limited to 'roles/install_wireguard_mesh/templates/down.sh.j2') diff --git a/roles/install_wireguard_mesh/templates/down.sh.j2 b/roles/install_wireguard_mesh/templates/down.sh.j2 new file mode 100644 index 0000000..29d4fb7 --- /dev/null +++ b/roles/install_wireguard_mesh/templates/down.sh.j2 @@ -0,0 +1,6 @@ +#!/bin/bash +{% for peer in item.wireguard_mesh_peers %} +batctl -m bat0 if del mesh{{ item.name }}{{ peer.number }} +ip link set down dev mesh{{ item.name }}{{ peer.number }} +ip link del mesh{{ item.name }}{{ peer.number }} type ip6gretap +{% endfor %} -- cgit v1.2.3-54-g00ecf