### JSON Subscription Format Example Source: https://context7.com/dignezzz/v2raytun/llms.txt Example of a V2Ray server configuration in JSON format for subscription import. This structure allows for detailed server settings. ```json { "servers": [ { "name": "Server 1", "address": "server1.example.com", "port": 443, "protocol": "vmess", "settings": { "id": "uuid-here", "alterId": 0, "security": "auto" }, "streamSettings": { "network": "ws", "wsSettings": { "path": "/path" } } } ] } ``` -------------------------------- ### Control VPN Connection via Deep Link Source: https://context7.com/dignezzz/v2raytun/llms.txt Use these ADB commands to start, stop, or restart the VPN connection programmatically. Ensure v2raytun is installed on the device. ```bash adb shell am start -a android.intent.action.VIEW -d "v2raytun://control/start" ``` ```bash adb shell am start -a android.intent.action.VIEW -d "v2raytun://control/stop" ``` ```bash adb shell am start -a android.intent.action.VIEW -d "v2raytun://control/restart" ``` -------------------------------- ### Subscription Import via Deep Link Source: https://context7.com/dignezzz/v2raytun/llms.txt Import V2Ray subscription URLs directly into the app using deep links. This facilitates seamless configuration sharing and automated setup workflows. ```APIDOC ## Subscription Import via Deep Link ### Description Import V2Ray subscription URLs directly into the app using deep links. This facilitates seamless configuration sharing and automated setup workflows. ### Import Subscription URL ```bash adb shell am start -a android.intent.action.VIEW \ -d "v2raytun://subscribe?url=https://example.com/subscription" ``` ### Import with Inline Headers Format: `subscription_url#header1=value1#header2=value2` ```bash # Example: subscription_url#header1=value1#header2=value2 ``` ``` -------------------------------- ### Hysteria2 Protocol URI Format Source: https://context7.com/dignezzz/v2raytun/llms.txt Examples of Hysteria2 connection URI formats. These URIs include basic authentication and optional parameters like SNI and obfuscation settings. ```text # Hysteria2 connection URI format hysteria2://password@server.example.com:443?sni=example.com&insecure=0 # Example with additional parameters hysteria2://mypassword@proxy.example.com:8443?sni=proxy.example.com&obfs=salamander&obfs-password=obfspass ``` -------------------------------- ### Deep Link Control API Source: https://context7.com/dignezzz/v2raytun/llms.txt Control VPN connections programmatically using deep links. These commands can be executed via ADB to start, stop, or restart the VPN tunnel without user interaction. ```APIDOC ## Deep Link Control API ### Description Control VPN connections programmatically using deep links. These commands can be executed via ADB to start, stop, or restart the VPN tunnel without user interaction. ### Start VPN connection ```bash adb shell am start -a android.intent.action.VIEW -d "v2raytun://control/start" ``` ### Stop VPN connection ```bash adb shell am start -a android.intent.action.VIEW -d "v2raytun://control/stop" ``` ### Restart VPN connection ```bash adb shell am start -a android.intent.action.VIEW -d "v2raytun://control/restart" ``` ``` -------------------------------- ### Run v2raytun with Console Logging (Windows) Source: https://github.com/dignezzz/v2raytun/blob/main/README.md Use the --console argument to output application logs to the console when running v2raytun from the command line on Windows. This is useful for debugging. ```bash .\v2RayTun.exe --console ``` -------------------------------- ### Open Traffic Rules Preset Deeplink (Windows) Source: https://github.com/dignezzz/v2raytun/blob/main/README.md Utilize the v2raytun://open-traffic-rules?id= deeplink to open a specific traffic rules preset on Windows. This allows for quick access to predefined configurations. ```bash v2raytun://open-traffic-rules?id= ``` -------------------------------- ### Import Subscription via Deep Link Source: https://context7.com/dignezzz/v2raytun/llms.txt Import V2Ray subscription URLs directly into v2raytun using ADB. This method supports adding custom headers by separating them with '#'. ```bash # Import a subscription via deep link ``` ```bash adb shell am start -a android.intent.action.VIEW \ -d "v2raytun://subscribe?url=https://example.com/subscription" ``` ```bash # Alternative: Import configuration with inline headers using # separator # Format: subscription_url#header1=value1#header2=value2 ``` -------------------------------- ### XHTTP Protocol Configuration Source: https://context7.com/dignezzz/v2raytun/llms.txt Configure the XHTTP transport protocol with extended options via the `extra` parameter for enhanced obfuscation capabilities. ```APIDOC ## XHTTP Protocol Configuration ### Description Configure the XHTTP transport protocol with extended options via the `extra` parameter for enhanced obfuscation capabilities. ### Example Configuration ```json { "outbounds": [ { "protocol": "vmess", "settings": { "vnext": [ { "address": "server.example.com", "port": 443, "users": [ { "id": "your-uuid", "alterId": 0 } ] } ] }, "streamSettings": { "network": "xhttp", "xhttpSettings": { "path": "/xhttp", "extra": { "customParam": "value" } } } } ] } ``` ``` -------------------------------- ### JSON Subscription Format Source: https://context7.com/dignezzz/v2raytun/llms.txt v2raytun supports JSON-formatted subscription responses, offering a more structured approach to configuration delivery compared to standard base64-encoded formats. ```APIDOC ## JSON Subscription Format ### Description v2raytun supports JSON-formatted subscription responses, offering a more structured approach to configuration delivery compared to standard base64-encoded formats. ### Example JSON Structure ```json { "servers": [ { "name": "Server 1", "address": "server1.example.com", "port": 443, "protocol": "vmess", "settings": { "id": "uuid-here", "alterId": 0, "security": "auto" }, "streamSettings": { "network": "ws", "wsSettings": { "path": "/path" } } } ] } ``` ``` -------------------------------- ### Subscription Headers Source: https://context7.com/dignezzz/v2raytun/llms.txt v2raytun supports custom HTTP headers in subscription responses for device management and routing rules. These headers allow server administrators to control client behavior and enforce device limits. ```APIDOC ## Subscription Headers ### Description v2raytun supports custom HTTP headers in subscription responses for device management and routing rules. These headers allow server administrators to control client behavior and enforce device limits. ### Supported Headers #### Device identification headers (for device limit enforcement) - `X-HWID`: `` - `X-Device-OS`: `` - `X-Ver-OS`: `` - `X-Device-Model`: `` - `X-App-Version`: `` #### Routing and announcement headers - `routing`: `` - `announce`: `` - `announce-url`: `` - `update-always`: `` ``` -------------------------------- ### XHTTP Protocol Configuration Source: https://context7.com/dignezzz/v2raytun/llms.txt Configure the XHTTP transport protocol for V2Ray with custom parameters. This JSON structure defines outbound settings including network and extra parameters. ```json { "outbounds": [ { "protocol": "vmess", "settings": { "vnext": [ { "address": "server.example.com", "port": 443, "users": [ { "id": "your-uuid", "alterId": 0 } ] } ] }, "streamSettings": { "network": "xhttp", "xhttpSettings": { "path": "/xhttp", "extra": { "customParam": "value" } } } } ] } ``` -------------------------------- ### Subscription Response Headers Source: https://context7.com/dignezzz/v2raytun/llms.txt These HTTP headers can be included in subscription responses for device management and announcements. Use them to enforce device limits or display messages to clients. ```text # Supported subscription response headers # Device identification headers (for device limit enforcement) X-HWID: X-Device-OS: X-Ver-OS: X-Device-Model: X-App-Version: # Routing and announcement headers routing: announce: announce-url: update-always: ``` -------------------------------- ### Hysteria2 Protocol Support Source: https://context7.com/dignezzz/v2raytun/llms.txt Utilize the Hysteria2 protocol for high-performance tunneling, featuring built-in congestion control suitable for unstable network conditions. ```APIDOC ## Hysteria2 Protocol Support ### Description Utilize the Hysteria2 protocol for high-performance tunneling, featuring built-in congestion control suitable for unstable network conditions. ### Connection URI Format ``` hysteria2://password@server.example.com:443?sni=example.com&insecure=0 ``` ### Example with Additional Parameters ``` hysteria2://mypassword@proxy.example.com:8443?sni=proxy.example.com&obfs=salamander&obfs-password=obfspass ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.