{"id":24485817,"url":"https://github.com/debug-ing/tunnel-x-ui","last_synced_at":"2026-01-02T22:08:10.282Z","repository":{"id":191970774,"uuid":"632223367","full_name":"debug-ing/tunnel-x-ui","owner":"debug-ing","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-25T02:02:09.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T14:20:01.002Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/debug-ing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-04-25T01:10:11.000Z","updated_at":"2023-04-25T01:10:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"cbc60b68-73ed-4e9a-8d05-d21d89e7947c","html_url":"https://github.com/debug-ing/tunnel-x-ui","commit_stats":null,"previous_names":["debug-ing/tunnel-x-ui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debug-ing%2Ftunnel-x-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debug-ing%2Ftunnel-x-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debug-ing%2Ftunnel-x-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debug-ing%2Ftunnel-x-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/debug-ing","download_url":"https://codeload.github.com/debug-ing/tunnel-x-ui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243652694,"owners_count":20325607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-21T14:20:06.223Z","updated_at":"2026-01-02T22:08:10.259Z","avatar_url":"https://github.com/debug-ing.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# آموزش تانل با استفاده از دو X-UI \nسلام خب قراره ما یاد بگیریم چجوری دو تا X-UI رو باهم متصل کنیم یا همون تانل کنیم برای مثال ما دو تا سرور داریم یکی داخل ایران و یکی هم خارج از ایران یا حتی دو تا سرور خارج از ایران و مخوایم اینارو بهم وصل کنیم بریم سر آموزش :)\n\nاول میریم یک کانفیگ رو داخل X-UI سرور خارج از ایران خودمون درست میکنیم حالا از نوعی هیچ تفاوتی نداره. برای مثلا و میبریم پشت کلود فلیر چون محدودیت ها که داخل کلود فلیر داریم رو بعضی از سرور ها ایران نداریم :) بازم حالا شاید داشته باشیم ولی خب میتونین جا اون از AWS استفاده کنید یا هر چی یا بدون هیچ گونه CDN هر کانفیگی که فکر میکنید داخل سرور داخل ایران شما کار میکنه\n\n\nبرای مثال :\nVmess WS TLS \n\nخب بعد از این که این کارو کردیم این کانفیگ رو داخل Nekoray وارد میکنید. بعد از اون میریم که کانفیگ کامل رو اکسپورت کنیم به چه شکلی؟ به این شکل \n\n```bash\nRight click -\u003e share -\u003e export v2ray config\n```\n\nاگر هم مخواید با استفاده از v2rayNG داخل اندروید اینکارو کنید کافیه \n\n```bash\nClick share icon -\u003e  export full configuration to clipboard\n```\n\n\nخب بعد از اون این رو داخل یک VsCode یا هر ابزار دیگه قرار میدیم و میریم قسمت outbounds که برای مثال به این شکله\n\n```bash\n\"outbounds\": [\n    {\n     \"domainStrategy\": \"AsIs\",\n      \"protocol\": \"vmess\",\n      \"settings\": {\n        \"vnext\": [\n          {\n            \"address\": \"...\",\n            \"port\": 443,\n            \"users\": [\n              {\n                \"alterId\": 0,\n                \"id\": \"...\",\n                \"security\": \"auto\"\n              }\n            ]\n          }\n        ]\n      },\n      \"streamSettings\": {\n        \"network\": \"ws\",\n        \"security\": \"tls\",\n        \"tlsSettings\": { \"serverName\": \"...\" },\n        \"wsSettings\": {\n          \"headers\": { \"Host\": \"...\" },\n          \"path\": \"/.../\"\n        }\n      },\n      \"tag\": \"proxy\"\n    },\n   ...\n],\n```\n\nخب ما یا اولینش کار داریم که اینجا میبینم برای مثال حالا این میتونه هر چی باشه Vmess,Vless,Trojan,... \n\nخب این رو کپی میکنیم و میریم به سرور داخل ایرانمون یا اون سروری که قراره تانل کنه\n\nاول وارد X-UI میشیم و بعد به این قسمت میریم\n\n```bash\nSetting -\u003e Xray Config\n```\n\nو داخلش اسکرول میکنیم و میایم به قسمت outbounds که بصورت عادی به این شکله\n\n```bash\n\"outbounds\": [\n    {\n      \"protocol\": \"freedom\",\n      \"settings\": {}\n    },\n    {\n      \"protocol\": \"blackhole\",\n      \"settings\": {},\n      \"tag\": \"blocked\"\n    }\n  ],\n``` \n\nو به این شکل میایم کد قبلی که کپی کرده بودیم رو اضافه میکنیم به این قسمت\n\n\n```bash\n\"outbounds\": [\n     {\n     \"domainStrategy\": \"AsIs\",\n      \"protocol\": \"vmess\",\n      \"settings\": {\n        \"vnext\": [\n          {\n            \"address\": \"...\",\n            \"port\": 443,\n            \"users\": [\n              {\n                \"alterId\": 0,\n                \"id\": \"...\",\n                \"security\": \"auto\"\n              }\n            ]\n          }\n        ]\n      },\n      \"streamSettings\": {\n        \"network\": \"ws\",\n        \"security\": \"tls\",\n        \"tlsSettings\": { \"serverName\": \"...\" },\n        \"wsSettings\": {\n          \"headers\": { \"Host\": \"...\" },\n          \"path\": \"/.../\"\n        }\n      },\n      \"tag\": \"proxy\"\n    },\n    {\n      \"protocol\": \"freedom\",\n      \"settings\": {}\n    },\n    {\n      \"protocol\": \"blackhole\",\n      \"settings\": {},\n      \"tag\": \"blocked\"\n    }\n  ],\n``` \n\nو بعد از این  Save میزنیم و Restart رو میزنیم.\n\nخب کار تمومه :) و حالا میتونین یوزر ها خودتون رو داخل سرور وسط یا تانل بسازین.\n\nاگر سرور واسط شما ایران هستش خوبی این رو داره که شما میتونید کانکشن Socks5 هم بسازین به این دلیل که این نوع کانکشن به داخل ایران باز هستش و متونید به عنوان پروکسی تلگرام هم استفاده کنید :)\n\nو بعد از اون میتونید هر نوع کانفیگ رو ایجاد کنید چه با tls چه بدون tls و... به همین راحتی :)\n\n\nبه امید ازادی \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebug-ing%2Ftunnel-x-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdebug-ing%2Ftunnel-x-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebug-ing%2Ftunnel-x-ui/lists"}