Rename display name to VeilBox, add box.profile + sbfr p switcher, and ship scrubbed sing-box profile templates for quick TT/olcrtc flips. Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
762 B
Bash
15 lines
762 B
Bash
#!/system/bin/sh
|
|
export PATH="/data/adb/magisk:/data/adb/box/bin:/system/bin:$PATH"
|
|
echo "=== mangle local/tproxy ==="
|
|
iptables -t mangle -S 2>/dev/null | grep -E '127\.0\.0\.1|RETURN|MARK|TPROXY|10800|BOX' | head -50
|
|
echo "=== filter related ==="
|
|
iptables -t nat -S 2>/dev/null | grep -E '127\.0\.0\.1|10800|RED|BOX' | head -30
|
|
echo "=== ip rule ==="
|
|
ip rule | head -20
|
|
echo "=== outbounds ==="
|
|
yq -o=json '.outbounds[] | {"tag":.tag,"type":.type,"server":.server,"server_port":.server_port}' /data/adb/box/sing-box/config.json
|
|
echo "=== route final ==="
|
|
yq -o=json '.route | {"final":.final,"rules_count":(.rules|length)}' /data/adb/box/sing-box/config.json
|
|
echo "=== last google dns log ==="
|
|
grep -i 'www.google.com' /data/adb/box/run/sing-box.log | tail -15
|