Skip to content

Instantly share code, notes, and snippets.

View IsHacker003's full-sized avatar

IsHacker IsHacker003

View GitHub Profile
#!/bin/bash
# Detect tethering interface name on the phone (rndis0 or usb0)
intf_cmd=$(adb shell "su -c 'if [ -e \"/sys/class/net/usb0\" ]; then echo \"Tethering interface: usb0\"; elif [ -e \"/sys/class/net/rndis0\" ]; then echo \"Tethering interface: rndis0\"; else echo "Unable to find tethering interface."; fi'")
if [ "$intf_cmd" == "Tethering interface: usb0" ]
then
echo "$intf_cmd"
intf="usb0"
@dfxdj
dfxdj / text.md
Created March 3, 2026 13:23
Enabling IPv6 for WiFi-to-USB tethering on Android using proxy NDP

On your phone, pull up ip a ls and note the relevant interfaces (WiFi and the USB port):

panther:/ # ip a ls
...
48: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 86:45:56:22:79:e4 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.166/24 brd 192.168.1.255 scope global wlan1
       valid_lft forever preferred_lft forever
 inet6 2001:470:5:401:534:654:dbe:43/64 scope global 
@mikaeldui
mikaeldui / Proton VPN IPv6 Manual Setup.md
Last active March 7, 2026 15:01
Proton VPN IPv6 Manual Setup

Proton VPN IPv6 Manual Setup

Update 2026-03-07: Proton has added the IPv6 configurations mentioned below to the WireGuard config files that you can get through the web dashboard. The guide below is for historical purposes only.

Over 80% of the servers support IPv6 but only the Linux & Android apps and the browser extension support it **at the moment**.

The Linux app supports IPv6 over the VPN but still connects to the VPN server using IPv4.

It's possible to make changes to the WireGuard configs that you can get from https://account.protonvpn.com/downloads to enable IPv6.