System Flow
graph TD
Client((Client Device)) <-->|SOCKS5| EdgeGateway[Edge Gateway]
subgraph "Paiti Network - Iran"
EdgeGateway <-->|Paiti Tunnel| RegionalNode[Iran Access Node]
end
subgraph "Abroad"
RegionalNode <-->|DNS Relay Tunnel| GlobalNode[Global Exit Node]
GlobalNode <-->|TLS Encrypted Traffic| PublicNet[Global Internet]
end
Sequence Diagram (flow over time)
sequenceDiagram
participant U as User
participant G as Gateway
participant IR as Iran Server
participant KH as Kharej Server
participant NET as Internet
U->>G: SOCKS5 Request
G->>IR: Paiti Tunnel
IR->>KH: Reverse DNS Tunnel
KH->>NET: Encrypted Request
NET-->>KH: Response
KH-->>IR: Encrypted Response
IR-->>G: Tunnel Response
G-->>U: Final Response