Files
bailyandClaude Opus 4.6 8054cf8a15 Initial commit: Portable WiFi proxy setup with VLESS+Reality
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>
2026-04-06 02:26:48 +08:00

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