summaryrefslogtreecommitdiff
path: root/tunnel.sh
diff options
context:
space:
mode:
authormiguel <miguel@megaloman.softwarefools.com>2021-01-24 21:33:31 +0100
committermiguel <miguel@megaloman.softwarefools.com>2021-01-24 21:33:31 +0100
commit115a65be0583658a7f39a7abaeb2401448f0d7c9 (patch)
tree3c75fc44222b72f11900d098da5d5ff157c19542 /tunnel.sh
parent5ec428a0c177025b9c04330ae3f39cbde27a2d81 (diff)
add some stuff from megaloman
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