xiringuito/scripts/client-teardown.sh
2017-02-07 05:47:56 +01:00

11 lines
167 B
Bash
Executable File

#!/usr/bin/env bash
#
# Teardown client after disconnection
#
if [[ ${#} != 1 ]]; then
echo "Usage: ${0} TUNNEL_ID"
exit 1
fi
sudo ip tuntap del mode tun tun${1}