Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
#!/bin/bash

addr=`ifconfig cscotun0 | sed -n '/inet addr:/s/.*addr:\([^ ]*\) .*/\1/p'`

echo 'Stopping RADVD...'
/etc/init.d/radvd stop
echo 'done.'

echo 'Ending IP routing...'
ip rule del from $addr table admin
ip route del default dev cscotun0 table admin
sed "/1 admin/d" /etc/iproute2/rt_tables
echo 'done.'

echo 'Tearing down the IPv6-in-IPv4 tunnel...'
route -A inet6 del ::/0 dev sit1
ifconfig sit1 down
ifconfig sit0 down
echo 'done.'

echo 'Disabling eth1...'
ifconfig eth1 del 2001:470:846d:2::1/64
ifconfig eth1 down
echo 'done.'

echo 'You can now close the VPN/PPTP tunnel.'

If everything works, go on to OpenVirtualInterface Use a Virtual Interface.