Skip to content

πŸ“± Smart DPI-aware client app β€” automatic protocol selection + peer intelligenceΒ #7

Description

@sepehrsadri

The Problem

Currently, our smart-sub worker delivers configs and users manually try different protocols until one works. There is zero intelligence about what's blocked and what isn't.

Vision: Smart DPI-Aware Client

A client app that:

  1. Detects the user's ISP and current DPI rules (passive fingerprinting)
  2. Selects the best protocol automatically (based on success history + peer data)
  3. Adapts in real-time when a protocol gets blocked mid-session
  4. Reports DPI behavior back to a shared intelligence network
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚        Smart VPN Client         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  DPI Detection Engine           β”‚
β”‚  β”œβ”€β”€ ISP fingerprinting         β”‚
β”‚  β”œβ”€β”€ Protocol probe (background)β”‚
β”‚  └── Latency measurement        β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Protocol Selection Engine      β”‚
β”‚  β”œβ”€β”€ Success history (local)    β”‚
β”‚  β”œβ”€β”€ Peer intelligence (remote) β”‚
β”‚  └── Weighted random selection  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Connection Manager             β”‚
β”‚  β”œβ”€β”€ Auto-fallback chain        β”‚
β”‚  β”œβ”€β”€ Parallel connection racing β”‚
β”‚  └── Session persistence        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Research Tasks

  • Research libbox (sing-box library) API β€” what can be controlled programmatically?
  • Prototype Flutter app using libbox that connects to one VLESS server
  • Design protocol selection algorithm (multi-armed bandit? weighted scoring?)
  • Build ISP detection module (what ISP is the user on? Irancell/MCI/Rightel/fixed?)
  • Design peer intelligence API (users anonymously report working protocols per ISP)
  • Evaluate TestFlight for iOS distribution inside Iran (10k user limit, 90-day builds)
  • Research APK distribution channels for Iran (Myket, Bazaar, Telegram direct)

Key References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions