# 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