summaryrefslogblamecommitdiff
path: root/ImmaeEu-down
blob: 1b6260e21b800c00813dabaa078701c89a63c57a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                    

                                       


                         



                                                 
                      
                                  
    
                        
 
 
#!/system/xbin/sh
# This file closes down the tap device.

source /sdcard/.tinc/vars
rm /sdcard/.tinc/vars

ip -6 rule del from all lookup 100
ip route del table 100 $REMOTEADDRESS
ip -6 route del table 100 $GWIP dev vpn6
ip -6 route del table 100 ::/1 via $GWIP dev vpn6
for MYIP in $MYIPS; do
  ip -6 addr del $MYIP/96 dev vpn6
done
ip -6 link set vpn6 down