vpn chain vps02->vps03: VLESS+WS+TLS via Caddy entry, WG egress vps03

- chain entry xray-chain container on vps02 (127.0.0.1:18443), Caddy
  handle /vless-chain -> reverse_proxy (chat.nixg.ru:443)
- egress via vps03 XRay :50002 over WG mesh, verified egress IP
  77.67.89.154 (curl, UDP/DNS)
- SS-2022: blocked by Cloud.ru firewall (18338 closed externally),
  cipher name 2022-blake3-aes-128-gcm noted for future use
- client configs: v2rayNG vps02-chain + Clash Verge block
  (no v2ray-http-upgrade), direct vps03 config kept
- openspec change add-shadowsocks-chain-vps02-vps03 (proposal/design/
  tasks/specs), configs/, STATUS.md; skill vpn-proxy-chain-setup
This commit is contained in:
2026-10-16 16:57:05 +00:00
parent 330d7d553c
commit 8dfaa2a719
8 changed files with 304 additions and 3 deletions
@@ -0,0 +1,41 @@
# Delta for vpn-chain
## ADDED Requirements
### Requirement: Chain Entry on vps02 via Caddy TLS (VLESS+WS)
The system MUST provide a VLESS+WebSocket entry on vps02 behind Caddy TLS (https://chat.nixg.ru/vless-chain) so clients can connect to the VPN chain through an already-open port (443) with real TLS masking.
#### Scenario: Client connects to vps02 entry
- GIVEN the xray-chain container is running on vps02 and Caddy serves chat.nixg.ru
- WHEN a client connects to https://chat.nixg.ru/vless-chain with the VLESS credentials (WS, TLS)
- THEN the connection is accepted and routed to the upstream (vps03)
- AND the client's egress IP is vps03's public IP
#### Scenario: Container goes down
- GIVEN the xray-chain container stops unexpectedly
- WHEN the docker restart policy triggers
- THEN the container restarts automatically (restart: unless-stopped)
### Requirement: Chain Egress via vps03 over WireGuard
The chain MUST egress through vps03 (77.67.89.154) using the existing WireGuard mesh (10.8.0.3).
#### Scenario: Traffic flows through the chain
- GIVEN the client is connected to chat.nixg.ru/vless-chain
- WHEN the client requests a remote resource (e.g. https://ifconfig.me)
- THEN the request is proxied vps02 → (WG) → vps03 → internet
- AND the response returns to the client with egress IP 77.67.89.154
### Requirement: Client Compatibility (v2rayNG & Clash Verge)
The chain MUST be usable from v2rayNG (Android) and Clash Verge (desktop) without third-party plugins.
#### Scenario: v2rayNG connects through the chain
- GIVEN v2rayNG is installed on Android
- WHEN a VLESS profile pointing to chat.nixg.ru:443 (WS path /vless-chain, TLS) is activated
- THEN traffic is proxied through vps02 → vps03
- AND the egress IP equals vps03's public IP
#### Scenario: Clash Verge connects through the chain
- GIVEN Clash Verge is installed on desktop
- WHEN a VLESS proxy entry (chat.nixg.ru:443, WS path /vless-chain, TLS) is selected
- THEN traffic is proxied through vps02 → vps03
- AND the egress IP equals vps03's public IP