From 29cb4b5f5577a4409bb1a6dd793ddd491eced347 Mon Sep 17 00:00:00 2001 From: Arya Ahmadi <107758775+AryaAhmadii@users.noreply.github.com> Date: Sun, 10 May 2026 22:46:58 +0330 Subject: [PATCH 1/2] docs: add VM proxy setup and LAN sharing guides --- README.md | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/README.md b/README.md index 3400b51..795d003 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,76 @@ Open [ipleak.net](https://ipleak.net) in your browser, you should see your ip ad image +### 7 - Additional Usage Guides + +#### Using the Proxy Inside a Virtual Machine + +When you run a virtual machine (VM), it operates in an isolated network environment separate from the host. By default, the VM cannot directly access services running on `localhost` of the host machine — including this proxy. + +To fix this, you need to find the gateway IP that your hypervisor assigns to the host, then use it instead of `localhost` when configuring the proxy inside the VM. + +**Example: VirtualBox (NAT mode)** + +The host is always reachable from inside the VM at `10.0.2.2`. Set the proxy: + +```bash +export http_proxy="http://10.0.2.2:8085" +export https_proxy="http://10.0.2.2:8085" +export all_proxy="socks5://10.0.2.2:8085" +``` + +To make this permanent, add the lines above to `~/.bashrc` and run `source ~/.bashrc`. + +Since this proxy performs SSL inspection, you may see certificate errors. Install the included `ca.crt` to fix them: + +```bash +sudo cp ca.crt /usr/local/share/ca-certificates/ && sudo update-ca-certificates +``` + +--- + +#### Sharing the Proxy Over a Local Network (e.g. Mobile Devices) + +You can use this proxy on your phone or any other device on the same network — no extra software needed. + +**1. Find your host IP** + +```bash +# Windows +ipconfig + +# Linux / macOS +ip addr +``` + +Look for the IP of the adapter connected to your router (e.g. `192.168.1.8`). + +**2. Forward the port (Windows only, if the service is bound to localhost)** + +Run `CMD` as Administrator: + +```cmd +netsh interface portproxy add v4tov4 listenaddress=192.168.1.8 listenport=8085 connectaddress=127.0.0.1 connectport=8085 +netsh advfirewall firewall add rule name="Proxy 8085" dir=in action=allow protocol=TCP localport=8085 +``` + +**3. Configure proxy on your phone** + +Connect your phone to the same Wi-Fi, then set the proxy manually: +- **Host:** your host IP (e.g. `192.168.1.8`) +- **Port:** `8085` + +On Android: **Settings → Wi-Fi → Modify → Proxy → Manual** +On iPhone: **Settings → Wi-Fi → (network) → HTTP Proxy → Manual** + +**4. Install the CA certificate** + +Transfer `ca.crt` to your phone, then: + +- **Android:** Settings → Security → Install a certificate → CA certificate +- **iPhone:** Open the file → install profile → Settings → General → About → Certificate Trust Settings → enable it + + --- ## Optional: Stable Exit IP via Upstream Forwarder From f21aebff09f3c009f4f53c0af222b81f83965537 Mon Sep 17 00:00:00 2001 From: Arya Ahmadi <107758775+AryaAhmadii@users.noreply.github.com> Date: Sun, 10 May 2026 23:06:20 +0330 Subject: [PATCH 2/2] docs: add VM proxy setup and LAN sharing guides (fa) --- README_FA.md | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/README_FA.md b/README_FA.md index 4954c35..04475a6 100644 --- a/README_FA.md +++ b/README_FA.md @@ -453,6 +453,77 @@ Port : 1080 --- + +## راهنماهای تکمیلی (اختیاری) + +#### استفاده از پروکسی در ماشین مجازی + +وقتی یک ماشین مجازی (VM) اجرا می‌کنید، در یک محیط شبکه‌ای ایزوله نسبت به سیستم هاست قرار می‌گیرد. به همین دلیل، VM به طور پیش‌فرض نمی‌تواند به سرویس‌هایی که روی `localhost` سیستم هاست اجرا می‌شوند دسترسی داشته باشد — از جمله این پروکسی. + +برای حل این مشکل، باید IP گیت‌وی‌ای که هایپروایزر به هاست اختصاص می‌دهد را پیدا کنید و به جای `localhost` از آن استفاده کنید. + +**مثال: VirtualBox (حالت NAT)** + +در این حالت، سیستم هاست همیشه از داخل VM از طریق آدرس `10.0.2.2` در دسترس است. پروکسی را اینطور تنظیم کنید: + +```bash +export http_proxy="http://10.0.2.2:8085" +export https_proxy="http://10.0.2.2:8085" +export all_proxy="socks5://10.0.2.2:8085" +``` + +برای دائمی شدن، این خطوط را به `bashrc.` اضافه کرده و `source ~/.bashrc` را اجرا کنید. + +از آنجایی که این پروکسی SSL Inspection انجام می‌دهد، ممکن است با خطای certificate مواجه شوید. برای رفع آن، فایل `ca.crt` موجود در پروژه را نصب کنید: + +```bash +sudo cp ca.crt /usr/local/share/ca-certificates/ && sudo update-ca-certificates +``` + +--- + +#### اشتراک‌گذاری پروکسی در شبکه محلی (مثلاً گوشی موبایل) + +می‌توانید از این پروکسی روی گوشی یا هر دستگاه دیگری در همان شبکه استفاده کنید — بدون نیاز به نرم‌افزار اضافی. + +**۱. پیدا کردن IP سیستم هاست** + +```bash +# Windows +ipconfig + +# Linux / macOS +ip addr +``` + +آدرس IP سیستمی که به مودم وصل است را پیدا کنید (مثلاً `192.168.1.8`). + +**۲. Port Forward (فقط ویندوز، اگر سرویس روی localhost اجرا می‌شود)** + +CMD را به عنوان Administrator اجرا کنید: + +```cmd +netsh interface portproxy add v4tov4 listenaddress=192.168.1.8 listenport=8085 connectaddress=127.0.0.1 connectport=8085 +netsh advfirewall firewall add rule name="Proxy 8085" dir=in action=allow protocol=TCP localport=8085 +``` + +**۳. تنظیم پروکسی روی گوشی** + +گوشی را به همان Wi-Fi وصل کنید، سپس پروکسی را به صورت دستی تنظیم کنید: +- **Host:** IP سیستم هاست (مثلاً `192.168.1.8`) +- **Port:** `8085` + + +- Android: **Settings → Wi-Fi → Modify → Proxy → Manual** +- iPhone: **Settings → Wi-Fi → (شبکه) → HTTP Proxy → Manual** + +**۴. نصب CA Certificate** + +فایل `ca.crt` را به گوشی منتقل کنید، سپس: + +- **Android:** Settings → Security → Install a certificate → CA certificate +- **iPhone:** (باز کردن فایل) → Settings → General → VPN & Device Management → Install → (فعال سازی) → General → About → Certificate Trust Settings + ## اختیاری — IP خروجی پایدار با Upstream Forwarder سایت‌هایی که از CAPTCHA استفاده می‌کنند (Cloudflare Turnstile، reCAPTCHA، hCaptcha) توکن حل‌شده را به IP بازکننده‌ی چالش گره می‌زنند. Cloudflare Worker در هر درخواست از IP متفاوتی خروج می‌گیرد، بنابراین حتی پس از حل CAPTCHA، تأیید سمت سرور رد می‌شود. این افزونه‌ی اختیاری به Worker اجازه می‌دهد همه‌ی `fetch()` ها را از طریق یک سرور Node کوچک روی VPS شما (با IP ثابت) عبور دهد — به‌طوری که سایت مقصد همیشه یک IP خروجی ثابت ببیند.