summaryrefslogtreecommitdiff
path: root/tunnel.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tunnel.sh')
-rwxr-xr-xtunnel.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/tunnel.sh b/tunnel.sh
new file mode 100755
index 0000000..7368a40
--- /dev/null
+++ b/tunnel.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+# https://www.tunnelbroker.net/
+# MiguelDirty
+
+case $1 in
+
+ start)
+ echo starting ipv6 tunnelbroker
+ ifconfig sit0 up
+ ifconfig sit0 inet6 tunnel ::216.66.86.114
+ ifconfig sit1 up
+ ifconfig sit1 inet6 add 2001:470:6c:2af::2/64
+ route -A inet6 add ::/0 dev sit1
+ ;;
+
+ stop)
+ echo stopping ipv6 tunnelbroker
+ ifconfig sit0 down
+ ifconfig sit1 down
+ ;;
+
+ *)
+ echo "usage: to start tunnelbroker type: $0 start"
+ echo " to stop tunnelbroker type: $0 stop"
+esac