summaryrefslogtreecommitdiff
path: root/he-ipv6-tunnel.sh
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-02-18 23:37:11 -0600
committerJeff Carr <[email protected]>2023-02-18 23:37:11 -0600
commit041e3a0c6ede6cd96308caf49b2230d5bcb58dac (patch)
tree9f0692843849ff034d981fe7ed72883c73719f3b /he-ipv6-tunnel.sh
parent4c348438f3b43e3de5c85a5fc8064cd0914f1fa2 (diff)
v0.0.2 next step: acutally try to nsupdatev0.0.2
upto the point where DNS update is next. start displaying real AAAA & naming buttons add RFC 2136 defining nsupdate. Vixie et al in 1997 Personal thansk to Paul for meeting with me some years back ready to pull DNS records starting a checkDNS() function dampen output. actually track IPs poll every 2 seconds (netlink is not the right thing here) ready to start looking for changes screw everything about logging. I hate log.whatthefuck*(){} Do you know what I don't care about? log() You shouldn't care either. Ignore it until you need it that is what logging is for. building something that works. So, here you go. a damn log() function in one place Also, because I'm annoyed today sleep() and exit() Because, when I want you to sleep or exit, I don't want to go to the top of a file and declare stupid shit related to nanoseconds or add "import os.Exit" or whatever the hell stop wasting my time. life is short. if he sit tunnelbroker down add IsRealIP() and IsIPv6() need a netlink function to trigger on changes (nope) put the gui plugin's in the debian package for now set the window title build a .deb package Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'he-ipv6-tunnel.sh')
-rwxr-xr-xhe-ipv6-tunnel.sh57
1 files changed, 57 insertions, 0 deletions
diff --git a/he-ipv6-tunnel.sh b/he-ipv6-tunnel.sh
new file mode 100755
index 0000000..bc95429
--- /dev/null
+++ b/he-ipv6-tunnel.sh
@@ -0,0 +1,57 @@
+#!/bin/bash -x
+
+## Tunnel ID: 818143
+# Creation Date:Feb 12, 2023
+# Description:
+# IPv6 Tunnel Endpoints
+# Server IPv4 Address:184.105.253.14
+# Server IPv6 Address:2001:470:1f10:2a::1/64
+# Client IPv4 Address:74.87.91.117
+# Client IPv6 Address:2001:470:1f10:2a::2/64
+# Routed IPv6 Prefixes
+# Routed /64:2001:470:1f11:2a::/64
+# Routed /48:Assign /48
+# DNS Resolvers
+# Anycast IPv6 Caching Nameserver:2001:470:20::2
+# Anycast IPv4 Caching Nameserver:74.82.42.42
+# DNS over HTTPS / DNS over TLS:ordns.he.net
+# rDNS DelegationsEdit
+# rDNS Delegated NS1:
+# rDNS Delegated NS2:
+# rDNS Delegated NS3:
+# rDNS Delegated NS4:
+# rDNS Delegated NS5:
+
+# ifconfig sit0 up
+# ifconfig sit0 inet6 tunnel ::184.105.253.14
+# ifconfig sit1 up
+# ifconfig sit1 inet6 add 2001:470:1f10:2a::2/64
+# route -A inet6 add ::/0 dev sit1
+
+if [ "$1" = "down" ]; then
+ ip tunnel del he-ipv6
+ rmmod sit
+ exit
+fi
+
+if [ "$1" = "ping" ]; then
+ ping -c 3 2001:470:1f10:13d::1
+ exit
+fi
+
+modprobe ipv6
+ip tunnel add he-ipv6 mode sit remote 184.105.253.14 local 40.132.180.131 ttl 255
+ip link set he-ipv6 up
+ip addr add 2001:470:1f10:13d::2/64 dev he-ipv6
+ip route add ::/0 dev he-ipv6
+ip -f inet6 addr
+ifconfig he-ipv6 mtu 1460
+
+
+# old attempt from the something or pabtz hotel
+# modprobe ipv6
+# ip tunnel add he-ipv6 mode sit remote 184.105.253.14 local 74.87.91.117 ttl 255
+# ip link set he-ipv6 up
+# ip addr add 2001:470:1f10:2a::2/64 dev he-ipv6
+# ip route add ::/0 dev he-ipv6
+# ip -f inet6 addr