🔧 Bug Fix: User Disconnection via gRPC API — PasarGuard Patch
A known bug in Xray-core allows users removed via the gRPC API to keep their active connections alive and continue sending traffic — even after being deleted. This has caused serious issues for many operators whose customers exploited this loophole, leading to unexpected data overages and inflated bills.
The PasarGuard team has identified and fixed this issue, and submitted a pull request to the upstream Xray\-core repository:
🔗 https://github.com/XTLS/Xray-core/pull/5844
We have also compiled patched builds for Alpine Linux (amd64 / arm64) that have been running on production environments for nearly a month with no reported issues.
---
⚙️ Setup Guide
Step 1 — Upload the zip file to your server, navigate to the directory where you uploaded it, then run:
⚠️ Make sure you are in the same directory as the zip file before running the commands above\.
Step 2 — Edit your node env file:
Find the line below (or add it if missing) and remove the
Step 3 — Restart the node:
✅ Done! This process is the same as setting a custom Xray-core version and works with any panel that uses the Xray API.
---
💬 How you can help
— Test the builds on your own production setup
— Don't trust pre-built binaries? Build it yourself from our branch:
🔗 https://github.com/ImMohammad20000/Xray-core/tree/UserConnTracker
— Found an issue? Report it on the PR with logs and proof
— Everything working fine? Leave a comment on the PR to help get it merged faster
— Support the team's continued work:
💙 https://donate.pasarguard.org
A known bug in Xray-core allows users removed via the gRPC API to keep their active connections alive and continue sending traffic — even after being deleted. This has caused serious issues for many operators whose customers exploited this loophole, leading to unexpected data overages and inflated bills.
The PasarGuard team has identified and fixed this issue, and submitted a pull request to the upstream Xray\-core repository:
🔗 https://github.com/XTLS/Xray-core/pull/5844
We have also compiled patched builds for Alpine Linux (amd64 / arm64) that have been running on production environments for nearly a month with no reported issues.
---
⚙️ Setup Guide
Step 1 — Upload the zip file to your server, navigate to the directory where you uploaded it, then run:
mkdir -p /var/lib/pg-node/xray-core/
cp xray-amd64.zip /var/lib/pg-node/xray-core/
cd /var/lib/pg-node/xray-core/
unzip xray-amd64.zip
mv xray-amd64 xray
chmod +x xray
⚠️ Make sure you are in the same directory as the zip file before running the commands above\.
Step 2 — Edit your node env file:
pg-node edit-env
Find the line below (or add it if missing) and remove the
# comment:XRAY_EXECUTABLE_PATH = /var/lib/pg-node/xray-core/xray
Step 3 — Restart the node:
pg-node restart
✅ Done! This process is the same as setting a custom Xray-core version and works with any panel that uses the Xray API.
---
💬 How you can help
— Test the builds on your own production setup
— Don't trust pre-built binaries? Build it yourself from our branch:
🔗 https://github.com/ImMohammad20000/Xray-core/tree/UserConnTracker
— Found an issue? Report it on the PR with logs and proof
— Everything working fine? Leave a comment on the PR to help get it merged faster
— Support the team's continued work:
💙 https://donate.pasarguard.org
GitHub
Add UserConnTracker to manage user connection cancellations across proxies by ImMohammad20000 · Pull Request #5844 · XTLS/Xray…
there is an old bug that lead to a big issue in panels that leve connections open when users remove from inbounds via gRPC api the connection to that user dose not close in some cases so i implemen...
❤9🔥2
🔧 رفع باگ: قطع نشدن کاربر پس از حذف از طریق gRPC — پچ تیم PasarGuard
یک باگ شناختهشده در Xray-core باعث میشه که کاربرانی که از طریق gRPC API حذف میشن، کانکشن فعالشون قطع نشه و بتونن به ارسال ترافیک ادامه بدن. این مشکل برای خیلی از اقراد دردسرساز شده — مشترکانی که از این باگ سوءاستفاده کردن و مصرف داده غیرمنتظره و قبضهای سنگین به بار آوردن.
تیم PasarGuard این مشکل رو شناسایی و برطرف کرده و یه Pull Request به ریپوی اصلی Xray-core ارسال کرده:
🔗 https://github.com/XTLS/Xray-core/pull/5844
علاوه بر این، نسخههای کامپایلشده برای Alpine Linux (amd64 / arm64) آماده شده که نزدیک به یک ماهه روی محیطهای پروداکشن تست شدن و هیچ مشکلی گزارش نشده\.
---
⚙️ راهنمای نصب
مرحله ۱ — فایل زیپ رو آپلود کن، بعد دستورات زیر رو اجرا کن:
⚠️ قبل از اجرای دستورات بالا مطمئن شو که توی همون دایرکتوریای هستی که فایل زیپ رو آپلود کردی.
مرحله ۲ — فایل env نود رو ویرایش کن:
خط زیر رو پیدا کن (یا اگه نبود اضافه کن) و علامت
مرحله ۳ — نود رو ریستارت کن:
✅ تموم شد! این فرآیند دقیقاً مثل استفاده از نسخه دلخواه Xray-core هست و روی هر پنلی که با Xray API کار میکنه قابل اجراست.
---
💬 چطور میتونی کمک کنی
— بیلدها رو روی سرور پروداکشن خودت تست کن
— به باینریهای آماده اعتماد نداری؟ از روی برنچ ما خودت بیلد بگیر:
🔗 https://github.com/ImMohammad20000/Xray-core/tree/UserConnTracker
— مشکلی پیدا شد؟ با لاگ و مدرک روی PR گزارش بده
— همه چیز درست کار کرد؟ با یه کامنت روی PR از مرجشدنش حمایت کن
— از تیم با دونیشن حمایت کن:
💙 https://donate.pasarguard.org
یک باگ شناختهشده در Xray-core باعث میشه که کاربرانی که از طریق gRPC API حذف میشن، کانکشن فعالشون قطع نشه و بتونن به ارسال ترافیک ادامه بدن. این مشکل برای خیلی از اقراد دردسرساز شده — مشترکانی که از این باگ سوءاستفاده کردن و مصرف داده غیرمنتظره و قبضهای سنگین به بار آوردن.
تیم PasarGuard این مشکل رو شناسایی و برطرف کرده و یه Pull Request به ریپوی اصلی Xray-core ارسال کرده:
🔗 https://github.com/XTLS/Xray-core/pull/5844
علاوه بر این، نسخههای کامپایلشده برای Alpine Linux (amd64 / arm64) آماده شده که نزدیک به یک ماهه روی محیطهای پروداکشن تست شدن و هیچ مشکلی گزارش نشده\.
---
⚙️ راهنمای نصب
مرحله ۱ — فایل زیپ رو آپلود کن، بعد دستورات زیر رو اجرا کن:
mkdir -p /var/lib/pg-node/xray-core/
cp xray-amd64.zip /var/lib/pg-node/xray-core/
cd /var/lib/pg-node/xray-core/
unzip xray-amd64.zip
mv xray-amd64 xray
chmod +x xray
⚠️ قبل از اجرای دستورات بالا مطمئن شو که توی همون دایرکتوریای هستی که فایل زیپ رو آپلود کردی.
مرحله ۲ — فایل env نود رو ویرایش کن:
pg-node edit-env
خط زیر رو پیدا کن (یا اگه نبود اضافه کن) و علامت
# رو از ابتدای اون حذف کن:XRAY_EXECUTABLE_PATH = /var/lib/pg-node/xray-core/xray
مرحله ۳ — نود رو ریستارت کن:
pg-node restart
✅ تموم شد! این فرآیند دقیقاً مثل استفاده از نسخه دلخواه Xray-core هست و روی هر پنلی که با Xray API کار میکنه قابل اجراست.
---
💬 چطور میتونی کمک کنی
— بیلدها رو روی سرور پروداکشن خودت تست کن
— به باینریهای آماده اعتماد نداری؟ از روی برنچ ما خودت بیلد بگیر:
🔗 https://github.com/ImMohammad20000/Xray-core/tree/UserConnTracker
— مشکلی پیدا شد؟ با لاگ و مدرک روی PR گزارش بده
— همه چیز درست کار کرد؟ با یه کامنت روی PR از مرجشدنش حمایت کن
— از تیم با دونیشن حمایت کن:
💙 https://donate.pasarguard.org
GitHub
Add UserConnTracker to manage user connection cancellations across proxies by ImMohammad20000 · Pull Request #5844 · XTLS/Xray…
there is an old bug that lead to a big issue in panels that leve connections open when users remove from inbounds via gRPC api the connection to that user dose not close in some cases so i implemen...
22❤31🔥5🥴3👀2
برای کاربرانی که سرورشون داخل ایرانه و دسترسی به منابع خارجی ندارن، دو اسکریپت standalone آماده کردیم که از میرورهای ایرانی لینوکس و داکر استفاده میکنن:
🖥 نصب پنل:
https://github.com/PasarGuard/scripts/blob/main/iran-sanction/README-pasarguard-standalone.fa.md
⚙️ نصب نود:
https://github.com/PasarGuard/scripts/blob/main/iran-sanction/README-pg-node-standalone.fa.md
⚠️ نکته مهم:
بعضی سرورها ممکنه با DNS پیشفرضشون مشکل داشته باشن. اگه حین نصب به خطای DNS برخوردید، DNS سرور رو به صورت دستی تغییر بدید.
#PasarGuard #ایران #نصب
Please open Telegram to view this post
VIEW IN TELEGRAM
GitHub
scripts/iran-sanction/README-pasarguard-standalone.fa.md at main · PasarGuard/scripts
Contribute to PasarGuard/scripts development by creating an account on GitHub.
11❤48🙏4👍3
Please open Telegram to view this post
VIEW IN TELEGRAM
2❤42👍7🔥6🎉3🕊1
Discussion Group 💬
@PasarGuardGP
Documents🖥
https://docs.pasarguard.org
Github😀
https://github.com/PasarGuard
@PasarGuardGP
Documents
https://docs.pasarguard.org
Github
https://github.com/PasarGuard
Please open Telegram to view this post
VIEW IN TELEGRAM
2❤16🔥2
If your using vless flow make sure you update the node to latest version
https://github.com/PasarGuard/node/releases/tag/v0.4.3
https://github.com/PasarGuard/node/releases/tag/v0.4.3
GitHub
Release v0.4.3 · PasarGuard/node
v0.4.2...v0.4.3
compare changes
💅 Refactors
Simplify account handling and add tests for flow overrides (0757aaf)
❤️ Contributors
M03ED (@M03ED)
compare changes
💅 Refactors
Simplify account handling and add tests for flow overrides (0757aaf)
❤️ Contributors
M03ED (@M03ED)
1❤16❤🔥1🔥1