From 115a65be0583658a7f39a7abaeb2401448f0d7c9 Mon Sep 17 00:00:00 2001 From: miguel Date: Sun, 24 Jan 2021 21:33:31 +0100 Subject: add some stuff from megaloman --- tunnel.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 tunnel.sh (limited to 'tunnel.sh') 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 -- cgit v1.2.3