How sadeghhayeri/greentunnel works
Main Components
a. Client Layer:
• GUI Application (Electron-based)
• CLI Interface
• Docker Container
b. Core Proxy Components:
• HTTP/HTTPS Proxy Server
• DNS Resolution System
• DPI Bypass Mechanisms
c. External Services:
• DNS over HTTPS/TLS Providers
• Target Websites/Services
[User Interface Layer]
• GUI (Electron)
• CLI
• Docker Container
[Core Proxy Layer]
• Proxy Server
• HTTP Handler
• HTTPS Handler
• Request Handler
• DNS Resolution System
• HTTPS DNS
• TLS DNS
• Unencrypted DNS
• System Proxy Manager
[External Services Layer]
• DNS Providers (CloudFlare, etc.)
• Target Websites
Key Interactions to Highlight
a. Traffic Flow:
• How client requests flow through the proxy
• DPI bypass mechanism for HTTP/HTTPS
• Demonstrate DNS resolution path
b. System Integration:
• System proxy configuration
• DNS server communication
• TCP packet manipulation
Implementation Details
• src/proxy.js as the central component
• src/handlers/* for request handling
• src/dns/* for DNS resolution
• src/utils/* for supporting functions
Additional Elements
• Packet splitting mechanism
• DNS resolution methods
• System proxy integration
• Configuration options
• Keep the focus on the DPI bypass mechanisms
• Security aspects of DNS resolution
• Flexibility of different DNS providers
• Demonstrate the multi-platform support
Remember to include configuration options and system requirements as supplementary information, as these are crucial for deployment and maintenance considerations.