A small guide for a quieter network

Route traffic.
Keep control.

Two clean paths to a local proxy: a plain SSH tunnel or an Xray client fed by a VLESS or Trojan URI.

~/vpn-setup ready
~ checking local routes...
$ ./vpn-setup.sh status
✓ssh listening on 127.0.0.1:1080
✓xray http proxy on 127.0.0.1:10809
$
local endpoints stay predictable
SOCKS5•LOCAL CONTROL•NO GUESSWORK•SOCKS5•LOCAL CONTROL•NO GUESSWORK

01 / setup command

One command, one local port.

SOCKS5 :1080
↗
SOCKS5 endpoint127.0.0.1:1080
⌁
Best forBrowser or CLI traffic
◎
Auth sourceExisting SSH key

02 / client commands

Choose the link format you already have.

SOCKS5 + HTTP
VLESSwebsocket / tls

A lightweight URI for UUID-based access over a TLS WebSocket.

sudo ./vpn-setup.sh xray --uri 'vless://UUID@HOST:443?type=ws&security=tls&path=/ws&sni=HOST#name'
TROJANwebsocket / tls

A password-based URI for the same secure WebSocket transport pattern.

sudo ./vpn-setup.sh xray --uri 'trojan://PASSWORD@HOST:PORT?type=ws&security=tls&path=/tr&sni=HOST#name'
local endpointsSame ports. Any upstream.
SOCKS5 127.0.0.1:1080HTTP 127.0.0.1:10809

03

Keep nearby

Reference

Inspect the current state or remove a setup cleanly. Keep these commands in your pocket.

⌁inspect

Check status

See which local proxy is active and where it is listening.

./vpn-setup.sh status
×clean up

Remove a setup

Stop and remove either client when you no longer need it.

sudo ./vpn-setup.sh remove ssh
sudo ./vpn-setup.sh remove xray
Command copied