Complete solution for using MSM8916 portable WiFi as a proxy server with Xray VLESS+Reality, UPnP auto port mapping, DDNS, WiFi helper, and watchdog. Includes one-click setup script and apt source fix. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
11 lines
240 B
Bash
Executable File
11 lines
240 B
Bash
Executable File
#!/bin/bash
|
|
# UPnP automatic port mapping for Xray
|
|
PORT=8443
|
|
|
|
# Remove old mapping
|
|
upnpc -d $PORT TCP 2>/dev/null
|
|
|
|
# Add new mapping (valid for 24 hours)
|
|
LOCAL_IP=$(hostname -I | awk '{print $1}')
|
|
upnpc -a "$LOCAL_IP" $PORT $PORT TCP 86400
|