2026-04-21 18:20:43 +00:00
[English ](/README.md ) | [فارسی ](/README.fa_IR.md ) | [العربية ](/README.ar_EG.md ) | [中文 ](/README.zh_CN.md ) | [Español ](/README.es_ES.md ) | [Русский ](/README.ru_RU.md )
2025-04-08 15:26:05 +00:00
< p align = "center" >
< picture >
< source media = "(prefers-color-scheme: dark)" srcset = "./media/3x-ui-dark.png" >
< img alt = "3x-ui" src = "./media/3x-ui-light.png" >
< / picture >
< / p >
docs(readme): revamp README and sync all translations
Rewrite the five translated READMEs (fa, ar, zh, es, ru) to match the overhauled English README: centered badge layout plus Features, Screenshots, Supported Platforms, Database/Docker, Environment Variables, Supported Languages, and Contributing sections. Add Windows to supported platforms and a fallback feature (multiple protocols on one port). Refresh the referenced screenshots.
2026-06-02 01:02:24 +00:00
< p align = "center" >
2026-06-02 01:16:54 +00:00
< a href = "https://github.com/MHSanaei/3x-ui/releases" > < img src = "https://img.shields.io/github/v/release/mhsanaei/3x-ui" alt = "Release" > < / a >
docs(readme): revamp README and sync all translations
Rewrite the five translated READMEs (fa, ar, zh, es, ru) to match the overhauled English README: centered badge layout plus Features, Screenshots, Supported Platforms, Database/Docker, Environment Variables, Supported Languages, and Contributing sections. Add Windows to supported platforms and a fallback feature (multiple protocols on one port). Refresh the referenced screenshots.
2026-06-02 01:02:24 +00:00
< a href = "https://github.com/MHSanaei/3x-ui/actions" > < img src = "https://img.shields.io/github/actions/workflow/status/mhsanaei/3x-ui/release.yml.svg" alt = "Build" > < / a >
< a href = "#" > < img src = "https://img.shields.io/github/go-mod/go-version/mhsanaei/3x-ui.svg" alt = "GO Version" > < / a >
< a href = "https://github.com/MHSanaei/3x-ui/releases/latest" > < img src = "https://img.shields.io/github/downloads/mhsanaei/3x-ui/total.svg" alt = "Downloads" > < / a >
< a href = "https://www.gnu.org/licenses/gpl-3.0.en.html" > < img src = "https://img.shields.io/badge/license-GPL%20V3-blue.svg?longCache=true" alt = "License" > < / a >
< a href = "https://pkg.go.dev/github.com/mhsanaei/3x-ui/v3" > < img src = "https://pkg.go.dev/badge/github.com/mhsanaei/3x-ui/v3.svg" alt = "Go Reference" > < / a >
< a href = "https://goreportcard.com/report/github.com/mhsanaei/3x-ui/v3" > < img src = "https://goreportcard.com/badge/github.com/mhsanaei/3x-ui/v3" alt = "Go Report Card" > < / a >
< / p >
**3X-UI** هي لوحة تحكم ويب متقدمة ومفتوحة المصدر لإدارة خوادم [Xray-core ](https://github.com/XTLS/Xray-core ). توفّر واجهة نظيفة ومتعددة اللغات لنشر وتكوين ومراقبة مجموعة واسعة من بروتوكولات الوكيل وVPN — من خادم VPS واحد إلى عمليات النشر متعددة العقد.
2025-04-08 15:26:05 +00:00
docs(readme): revamp README and sync all translations
Rewrite the five translated READMEs (fa, ar, zh, es, ru) to match the overhauled English README: centered badge layout plus Features, Screenshots, Supported Platforms, Database/Docker, Environment Variables, Supported Languages, and Contributing sections. Add Windows to supported platforms and a fallback feature (multiple protocols on one port). Refresh the referenced screenshots.
2026-06-02 01:02:24 +00:00
تم بناء 3X-UI كنسخة محسّنة (fork) من مشروع X-UI الأصلي، وتضيف دعمًا أوسع للبروتوكولات، واستقرارًا محسّنًا، ومحاسبة للترافيك لكل عميل، والعديد من ميزات تحسين تجربة الاستخدام.
2025-04-08 15:26:05 +00:00
2025-06-05 11:56:33 +00:00
> [!IMPORTANT]
docs(readme): revamp README and sync all translations
Rewrite the five translated READMEs (fa, ar, zh, es, ru) to match the overhauled English README: centered badge layout plus Features, Screenshots, Supported Platforms, Database/Docker, Environment Variables, Supported Languages, and Contributing sections. Add Windows to supported platforms and a fallback feature (multiple protocols on one port). Refresh the referenced screenshots.
2026-06-02 01:02:24 +00:00
> هذا المشروع مخصص للاستخدام الشخصي فقط. يرجى عدم استخدامه لأغراض غير قانونية أو في بيئة إنتاجية.
## الميزات
- **اتصالات واردة متعددة البروتوكولات** — VLESS، VMess، Trojan، Shadowsocks، WireGuard، Hysteria2، HTTP، SOCKS (Mixed)، Dokodemo-door / Tunnel و TUN.
- **وسائل نقل وأمان حديثة** — TCP (Raw)، mKCP، WebSocket، gRPC، HTTPUpgrade و XHTTP، مؤمَّنة بـ TLS و XTLS و REALITY.
- **Fallback** — تقديم عدة بروتوكولات على منفذ واحد (مثل VLESS و Trojan على المنفذ 443) باستخدام ميزة fallback في Xray.
- **إدارة لكل عميل** — حصص الترافيك، تواريخ انتهاء الصلاحية، حدود IP، حالة الاتصال المباشرة، وروابط مشاركة وأكواد QR واشتراكات بنقرة واحدة.
- **إحصائيات الترافيك** — لكل اتصال وارد، ولكل عميل، ولكل اتصال صادر، مع عناصر تحكم لإعادة التعيين.
- **دعم العقد المتعددة** — إدارة وتوسيع عبر عدة خوادم من لوحة واحدة.
- **الاتصالات الصادرة والتوجيه** — WARP، NordVPN، قواعد توجيه مخصصة، موازنات تحميل، وتسلسل الوكلاء الصادرة.
- **خادم اشتراك مدمج** بصيغ إخراج متعددة.
- **روبوت تيليجرام** للمراقبة والإدارة عن بُعد.
- **واجهة RESTful API** مع توثيق Swagger داخل اللوحة.
- **تخزين مرن** — SQLite (افتراضي) أو PostgreSQL.
- **13 لغة لواجهة المستخدم** مع سمات داكنة وفاتحة.
- **تكامل مع Fail2ban** لفرض حدود IP لكل عميل.
## لقطات الشاشة
< details >
< summary > انقر للتوسيع< / summary >
< picture >
< source media = "(prefers-color-scheme: dark)" srcset = "./media/01-overview-dark.png" >
< img alt = "Overview" src = "./media/01-overview-light.png" >
< / picture >
< picture >
< source media = "(prefers-color-scheme: dark)" srcset = "./media/02-add-inbound-dark.png" >
< img alt = "Inbounds" src = "./media/02-add-inbound-light.png" >
< / picture >
< picture >
< source media = "(prefers-color-scheme: dark)" srcset = "./media/03-add-client-dark.png" >
< img alt = "Add client" src = "./media/03-add-client-light.png" >
< / picture >
< picture >
< source media = "(prefers-color-scheme: dark)" srcset = "./media/05-add-nodes-dark.png" >
< img alt = "Configs" src = "./media/05-add-nodes-light.png" >
< / picture >
2025-04-08 15:26:05 +00:00
docs(readme): revamp README and sync all translations
Rewrite the five translated READMEs (fa, ar, zh, es, ru) to match the overhauled English README: centered badge layout plus Features, Screenshots, Supported Platforms, Database/Docker, Environment Variables, Supported Languages, and Contributing sections. Add Windows to supported platforms and a fallback feature (multiple protocols on one port). Refresh the referenced screenshots.
2026-06-02 01:02:24 +00:00
< / details >
2025-04-08 15:26:05 +00:00
2025-06-05 11:56:33 +00:00
## البدء السريع
2025-04-08 15:26:05 +00:00
docs(readme): revamp README and sync all translations
Rewrite the five translated READMEs (fa, ar, zh, es, ru) to match the overhauled English README: centered badge layout plus Features, Screenshots, Supported Platforms, Database/Docker, Environment Variables, Supported Languages, and Contributing sections. Add Windows to supported platforms and a fallback feature (multiple protocols on one port). Refresh the referenced screenshots.
2026-06-02 01:02:24 +00:00
```bash
2025-06-10 15:47:31 +00:00
bash < (curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)
2025-04-08 15:26:05 +00:00
```
docs(readme): revamp README and sync all translations
Rewrite the five translated READMEs (fa, ar, zh, es, ru) to match the overhauled English README: centered badge layout plus Features, Screenshots, Supported Platforms, Database/Docker, Environment Variables, Supported Languages, and Contributing sections. Add Windows to supported platforms and a fallback feature (multiple protocols on one port). Refresh the referenced screenshots.
2026-06-02 01:02:24 +00:00
أثناء التثبيت، يتم إنشاء اسم مستخدم وكلمة مرور ومسار وصول عشوائية. بعد التثبيت، شغّل `x-ui` لفتح قائمة الإدارة، حيث يمكنك بدء/إيقاف الخدمة، وعرض أو إعادة تعيين بيانات تسجيل الدخول، وإدارة شهادات SSL، والمزيد.
2025-06-05 11:56:33 +00:00
للحصول على الوثائق الكاملة، يرجى زيارة [ويكي المشروع ](https://github.com/MHSanaei/3x-ui/wiki ).
2025-04-08 15:26:05 +00:00
docs(readme): revamp README and sync all translations
Rewrite the five translated READMEs (fa, ar, zh, es, ru) to match the overhauled English README: centered badge layout plus Features, Screenshots, Supported Platforms, Database/Docker, Environment Variables, Supported Languages, and Contributing sections. Add Windows to supported platforms and a fallback feature (multiple protocols on one port). Refresh the referenced screenshots.
2026-06-02 01:02:24 +00:00
## المنصات المدعومة
**أنظمة التشغيل:** Ubuntu، Debian، Armbian، Fedora، CentOS، RHEL، AlmaLinux، Rocky Linux، Oracle Linux، Amazon Linux، Virtuozzo، Arch، Manjaro، Parch، openSUSE (Tumbleweed / Leap)، Alpine و Windows.
**المعماريات:** `amd64` · `386` · `arm64` (aarch64) · `armv7` · `armv6` · `armv5` · `s390x` .
## خيارات قاعدة البيانات
يدعم 3X-UI خلفيتين (backends) يتم اختيارهما أثناء التثبيت:
- **SQLite** (افتراضي) — ملف واحد في `/etc/x-ui/x-ui.db` . بدون إعداد، مثالي لعمليات النشر الصغيرة والمتوسطة.
- **PostgreSQL** — موصى به لأعداد العملاء الكبيرة أو الإعدادات متعددة العقد. يمكن للمثبِّت تثبيت PostgreSQL محليًا لك، أو قبول DSN لخادم موجود.
في وقت التشغيل، يتم اختيار الخلفية عبر متغيرات البيئة (يكتبها المثبِّت لك في `/etc/default/x-ui` ):
```
XUI_DB_TYPE=postgres
XUI_DB_DSN=postgres://xui:password@127.0.0.1:5432/xui?sslmode=disable
```
### ترحيل تثبيت SQLite موجود إلى PostgreSQL
```bash
x-ui migrate-db --dsn "postgres://xui:password@127.0.0.1:5432/xui?sslmode=disable"
# ثم عيّن XUI_DB_TYPE و XUI_DB_DSN في /etc/default/x-ui وأعد التشغيل:
systemctl restart x-ui
```
يبقى ملف SQLite الأصلي دون تغيير؛ احذفه يدويًا بعد التحقق من الخلفية الجديدة.
### Docker
يستمر الأمر الافتراضي `docker compose up -d` في استخدام SQLite. للتشغيل مع خدمة PostgreSQL المرفقة، أزِل التعليق عن سطري متغيرات البيئة `XUI_DB_*` في `docker-compose.yml` وشغّل باستخدام البروفايل:
```bash
docker compose --profile postgres up -d
```
تتضمن الصورة Fail2ban (مُفعَّل افتراضيًا) لفرض **حدود IP** لكل عميل. يحظر Fail2ban المخالفين باستخدام `iptables` ، الذي يتطلب صلاحية `NET_ADMIN` . يمنح `docker-compose.yml` هذه الصلاحية مسبقًا عبر `cap_add` ؛ إذا شغّلت الحاوية باستخدام `docker run` بدلاً من ذلك، فأضِف الصلاحيات بنفسك، وإلا فسيتم تسجيل عمليات الحظر دون تطبيقها أبدًا:
```bash
docker run -d --cap-add=NET_ADMIN --cap-add=NET_RAW ... ghcr.io/mhsanaei/3x-ui
```
## متغيرات البيئة
| المتغير | الوصف | الافتراضي |
| --- | --- | --- |
| `XUI_DB_TYPE` | خلفية قاعدة البيانات: `sqlite` أو `postgres` | `sqlite` |
| `XUI_DB_DSN` | سلسلة اتصال PostgreSQL (عندما `XUI_DB_TYPE=postgres` ) | — |
| `XUI_DB_FOLDER` | مجلد ملف قاعدة بيانات SQLite | `/etc/x-ui` |
| `XUI_DB_MAX_OPEN_CONNS` | الحد الأقصى للاتصالات المفتوحة (تجمّع PostgreSQL) | — |
| `XUI_DB_MAX_IDLE_CONNS` | الحد الأقصى للاتصالات الخاملة (تجمّع PostgreSQL) | — |
| `XUI_ENABLE_FAIL2BAN` | تفعيل فرض حدود IP المعتمد على Fail2ban | `true` |
| `XUI_LOG_LEVEL` | مستوى السجل (`debug`، `info` ، `warning` ، `error` ) | `info` |
| `XUI_DEBUG` | تفعيل وضع التصحيح | `false` |
## اللغات المدعومة
تتوفر واجهة اللوحة بـ 13 لغة:
English · فارسی · العربية · 中文(简体) · 中文(繁體) · Español · Русский · Українська · Türkçe · Tiếng Việt · 日本語 · Bahasa Indonesia · Português (Brasil)
## المساهمة
المساهمات مرحب بها. يرجى قراءة [دليل المساهمة ](/CONTRIBUTING.md ) قبل فتح مشكلة (issue) أو طلب سحب (pull request).
2025-06-05 11:56:33 +00:00
## شكر خاص إلى
2025-04-08 15:26:05 +00:00
2025-06-05 11:56:33 +00:00
- [alireza0 ](https://github.com/alireza0/ )
2025-04-08 15:26:05 +00:00
2025-06-05 11:56:33 +00:00
## الاعتراف
2025-04-08 15:26:05 +00:00
2025-06-05 11:56:33 +00:00
- [Iran v2ray rules ](https://github.com/chocolate4u/Iran-v2ray-rules ) (الترخيص: **GPL-3.0** ): _قوا عد توجيه v2ray/xray و v2ray/xray-clients المحسنة مع النطاقات الإيرانية المدمجة وتركيز على الأمان وحظر الإعلانات._
- [Russia v2ray rules ](https://github.com/runetfreedom/russia-v2ray-rules-dat ) (الترخيص: **GPL-3.0** ): _يحتوي هذا المستودع على قواعد توجيه V2Ray محدثة تلقائيًا بناءً على بيانات النطاقات والعناوين المحظورة في روسيا._
2025-04-08 15:26:05 +00:00
2026-05-14 13:54:52 +00:00
## أدوات المجتمع
أدوات وتكاملات بناها المجتمع حول 3x-ui.
- [terraform-provider-3x-ui ](https://github.com/batonogov/terraform-provider-threexui ) (الترخيص: **MIT** ): _إدا رة الاتصالات الواردة والعملاء وإعدادات اللوحة وتكوين Xray كرمز باستخدام Terraform / OpenTofu._
2025-06-05 11:56:33 +00:00
## دعم المشروع
2025-04-08 15:26:05 +00:00
2025-06-05 11:56:33 +00:00
**إذا كان هذا المشروع مفيدًا لك، فقد ترغب في إعطائه**:star2:
2025-04-08 15:26:05 +00:00
2025-09-18 18:08:56 +00:00
< a href = "https://www.buymeacoffee.com/MHSanaei" target = "_blank" >
< img src = "./media/default-yellow.png" alt = "Buy Me A Coffee" style = "height: 70px !important;width: 277px !important;" >
< / a >
< / br >
< a href = "https://nowpayments.io/donation/hsanaei" target = "_blank" rel = "noreferrer noopener" >
< img src = "./media/donation-button-black.svg" alt = "Crypto donation button by NOWPayments" >
< / a >
2025-04-08 15:26:05 +00:00
2025-06-05 11:56:33 +00:00
## النجوم عبر الزمن
2025-04-08 15:26:05 +00:00
2026-04-21 18:20:43 +00:00
[](https://starchart.cc/MHSanaei/3x-ui)