mirror of
https://gitverse.ru/kpa39l/infrastructure.git
synced 2026-11-27 14:33:13 +00:00
8dfaa2a719
- 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
2.0 KiB
2.0 KiB
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