#!/bin/sh # This file closes down the tap device. [ -e /tmp/tinc_$NETNAME ] && . /tmp/tinc_$NETNAME [ -e /run/tinc_$NETNAME.vars ] && . /run/tinc_$NETNAME.vars rm -f /tmp/tinc_$NETNAME /run/tinc_$NETNAME.vars || true if false; then # Allow accessing the external world from the ip [ -n "$GWIP" ] && ip -6 route del default via $GWIP table 655 fi for MYIP in $MYIPS; do ip -6 addr del $MYIP/96 dev $INTERFACE if false; then # Allow accessing the external world from the ip ip -6 rule del from $MYIP/96 table 655 ip -6 rule del to $MYIP/96 table 655 fi done ip -6 link set $INTERFACE down