Skip to content

VPS #333

Closed
Closed

Description

@poryiar13

سلام خسته نباشید ممنون از این همه پشتیبانی خوبتون که راهنمایی میکنید ما رو
میخواستم بدونم من الان می‌خوام وی پی اس بخرم چه مزیت هایی داره و میتونم با گوشی توی آپ ها هم برم مثل یوتوب و تلگرام و اینستاگرام و برای کامپیوتر چطور سایت ها دیگه همه راحت باز میشن
و اینستاگرام میتونم به راحتی ریلز تماشا کنم
و هر وی پی اس چند تا میتونم سرور بگیرم برای اتصال
و در نهایت ممنون میشم برای من که هیچی از وی پی اس و نحوه اتصال بهش و نصب کردن پلاگین ها روش نمی‌دونم
کامل و قدم به قدم بهم توضیح بدید چیکار باید بکنم
و اگر من وی پی اس رو درست کنم دیگه یک لوکال هاست داخلی محسوب نمیشه و همه میتونن یعنی به اون وصل بشن اگر ای‌پی رو داشته باشن؟
در نتیجه باید یوزر و پسورد هم بزارم اگه به این صورت هست این هم آموزش بدید و یا در غیر این صورت بهم توضیح بدید
و اینم بگم من توی ایران زندگی میکنم سایت ایرانی برای وی پی اس بگید
خیلی ممنون

Activity

  1. therealaleph commented on Apr 27, 2026

    @therealaleph
    Owner

    @poryiar13 — جواب جامع به همه سؤالاتت:

    ۱. مزایای VPS برای mhrv-rs:

    • سرعت پایدار — Apps Script مود بسیار به filter pulse Iran وابسته است (App script Unresponsive ERROR #313)؛ Full mode + VPS این حساسیت نداره
    • Telegram کامل کار می‌کنه (در apps_script mode فقط chat هاش لود می‌شن، voice/video calls + media کار نمی‌کنن — apps_script architectural limit)
    • YouTube بدون SABR cliff (لود نشدن ویدیو های یوتیوب بیشتر از 59 ثانیه #300 محدودیت ۶۰ ثانیه‌ای apps_script)
    • Instagram Reels بدون hiccup (در apps_script mode بعضی reels فریز می‌شن به‌خاطر همان SABR pattern)
    • WebSocket apps (Discord، Slack، Microsoft Teams، Telegram Web) — اصلاً apps_script handle نمی‌کنه
    • Quota آزاد (apps_script: 20k fetches/day per Google account؛ VPS: محدودیت ندارد، فقط bandwidth VPS)

    ۲. شما توی موبایل می‌تونی به همه apps متصل بشی + ریلز Instagram راحت ببینی + YouTube ویدیو کامل ببینی + Telegram کامل کار می‌کنه؟

    با Full mode + VPS = بله برای همه.

    ۳. هر VPS چند سرور می‌تونی بسازی؟

    یک VPS = یک tunnel-node. tunnel-node به‌طور پیش‌فرض می‌تونه ۱۰۰+ کاربر همزمان handle کنه (config دارد). اگر می‌خواید چندتا instance روی یک VPS برای failover، می‌تونید — ولی لازم نیست.

    اگر چندتا VPS بخواید (mirror): mhrv-rs config می‌تونه چندتا tunnel_node URL داشته باشه + بین آنها failover کنه.

    ۴. آموزش setup VPS قدم به قدم:

    راهنمای کامل فارسی در #310 reply. خلاصه ۵ مرحله:

    1. خرید VPS — ProvidersI ایرانی برای VPS خارج از ایران: Hetzner ($۴/ماه)، DigitalOcean ($۶/ماه). ProvidersI ایرانی برای سرور داخل ایران: parsvds, abrnet, hostiran. برای mhrv-rs نیاز به VPS خارج از ایران دارید (که ISP-filter بشه).

    2. Setup Docker روی VPS:

      ssh root@your-vps-ip
      curl -fsSL https://get.docker.com | sh
    3. اجرای tunnel-node:

      docker run -d --name mhrv-tunnel \
        --restart unless-stopped \
        -p 8443:8443 \
        -e MHRV_AUTH_KEY="$(openssl rand -hex 32)" \
        ghcr.io/therealaleph/mhrv-tunnel-node:latest
      docker logs mhrv-tunnel | grep "auth_key"

      Auth key رو copy کنید — لازمه برای config mhrv-rs.

    4. Apps Script setup روی Google:

    5. mhrv-rs config:

      {
        "mode": "full",
        "auth_key": "your-secret-key-1",
        "deployment_ids": ["AKfycbXY..."],
        "tunnel_node_url": "https://your-vps-ip:8443",
        "google_ip": "216.239.38.120",
        "front_domain": "www.google.com"
      }

    ۵. آیا VPS local host داخلی محسوب نمیشه؟ آیا همه می‌تونن وصل بشن اگه IP داشته باشن؟

    VPS یه server public هست + هر کسی با IP + auth key می‌تونه به اون وصل بشه. ولی tunnel-node نیاز به MHRV_AUTH_KEY داره — بدون اون، connection reject می‌شه. این auth key مثل پسورد است.

    فایروال‌های امنیتی پیشنهادی:

    • VPS firewall فقط port 8443 رو از کل internet باز کنید (نه SSH از internet — restricted to home IP)
    • استفاده از ufw یا iptables برای rate limiting
    • auth key رو در کانال‌های public share نکنید

    ۶. آموزش استفاده در ایران از سایت‌های ایرانی برای خرید VPS:

    برای VPS خارج از ایران (مورد نیاز mhrv-rs):

    • پرداخت با ارز خارجی → Hetzner / DigitalOcean (با کارت اعتباری بین‌المللی یا کریپتو)
    • پرداخت با کارت ایرانی → سایت‌های واسطه ایرانی مثل: VPS24.ir, Sevidata.com, panahcloud.ir (third-party واسطه - قیمت بالاتر، ولی قابل دسترسی از ایران)

    من شخصاً Hetzner رو پیشنهاد می‌دم (sweetcost) ولی نیاز به ارز خارجی داره. اگر فقط با کارت ایرانی می‌خواید: panahcloud.ir معمولاً قیمت رقابتی + Setup ساده داره.

    هر سؤال خاص دیگه‌ای داشتی، بپرس.


    [reply via Anthropic Claude | reviewed by @therealaleph]

  2. mojtabaamirkhani267 commented on Apr 27, 2026

    @mojtabaamirkhani267

    i dont have "tunnel_node_url" in my config in full mode
    should i add it?

  3. poryiar13 commented on Apr 28, 2026

    @poryiar13
    Author

    خیلی ممنون
    میشه بگید توی سایت
    Hetzner
    کودوم بخش باید کودوم رو بخرم تا بخرم
    برای اینکه بخوام روی چند تا گوشی درست کنم یعنی توی گوگل اسکریپت توی همون یدونه اکانت چند تا پروژه بسازم و همین کار ها رو بکنم ولی حالا با
    Auth
    جدا که قاطی نشن باهم و هر کودوم هم که آیدی جدا میدن دیگه میتونم توی گوشی های مختلف بزنم
    یا نه باید توی
    Vps
    باید کاری انجام بدم یا هر کودوم پروژه رو تو اکانت گوگل جدا بسازم
    و اینکه این کد مثلا نصب
    Docker
    رو توی کجا باید وارد کنم یعنی چطوری به
    Vps
    وصل بشم تا این رو وارد کنم

  4. therealaleph commented on Apr 28, 2026

    @therealaleph
    Owner

    @poryiar13 — راهنمای کامل Hetzner + setup چندگوشه. در پاسخ به دو سؤال:

    ۱. کدوم سرور Hetzner بخرم؟

    برای mhrv-rs Full mode، CX22 (€۴.۲۹/ماه) بهترین value است:

    • ۲ vCPU + ۴ GB RAM + ۴۰ GB disk + ۲۰ TB ماهانه bandwidth
    • یا CX11 (€۳.۹۹/ماه) اگه فقط می‌خواید: ۱ vCPU + ۲ GB RAM + ۲۰ GB disk + ۲۰ TB ماهانه

    برای ۲-۴ گوشی همزمان: CX11 کافیه. برای ۵+ گوشی یا اگه می‌خواید tunnel-node رو با چیزای دیگه share کنید: CX22.

    Region انتخاب:

    • Helsinki, FIN (hel1) یا Falkenstein, DEU (fsn1) = best برای کاربران ایران (latency پایین‌تر)
    • Ashburn, USA (ash) = برای کاربران آمریکا (mhrv-rs نه)

    OS انتخاب: Ubuntu 24.04 یا Debian 12 (هر کدام Docker راحت install می‌شه).

    خرید + setup:

    1. https://accounts.hetzner.com/signUp → ثبت نام
    2. Console.hetzner.cloud → New project → New server → CX22 (یا CX11) → Helsinki → Ubuntu 24.04
    3. SSH key رو در پنل add کنید (یا password login برای ساده‌تر بودن — production-time SSH key بهتره)
    4. Server Create → IP address رو copy کنید

    پس از setup، SSH:

    ssh root@your-vps-ip
    curl -fsSL https://get.docker.com | sh
    SECRET=$(openssl rand -hex 24)
    docker run -d \
      --name mhrv-tunnel \
      --restart unless-stopped \
      -p 8080:8080 \
      -e TUNNEL_AUTH_KEY="$SECRET" \
      ghcr.io/therealaleph/mhrv-tunnel-node:latest
    echo "TUNNEL_AUTH_KEY شما (در CodeFull.gs استفاده کنید): $SECRET"

    راهنمای کامل + جزئیات: https://github.com/therealaleph/MasterHttpRelayVPN-RUST/blob/main/tunnel-node/README.fa.md

    ۲. چند پروژه Apps Script در یک account برای چند گوشی، با AUTH_KEY متفاوت

    سؤال شما واضح هست: می‌خواید چند گوشی همزمان از یه VPS استفاده کنند، هر گوشی AUTH_KEY متفاوت داشته باشه تا قاطی نشن.

    واقعیت architectural mhrv-rs:

    • یک account Google → quota اشتراکی ۲۰k fetch/day بین همه پروژه‌های اون account
    • چند پروژه (deployment) در یک account = quota رو تقسیم می‌کنن، نه افزایش می‌دن

    برای چند گوشی همزمان:

    روش ۱ (پیشنهادی): همان AUTH_KEY برای همه گوشی‌ها

    • یک account Google → ۱-۲ پروژه با AUTH_KEY مشترک
    • همه گوشی‌ها همون deployment ID + AUTH_KEY رو وارد می‌کنن
    • mhrv-rs round-robin می‌کنه — به ترافیک گوشی-A و گوشی-B با هم در یک bucket می‌فرسته
    • quota اشتراکی، concurrent execution اشتراکی

    این workflow اصلی هست. هر گوشی عملکرد خودش رو داره (ترافیک گوشی-A به سرور Origin-A می‌ره، ترافیک گوشی-B به Origin-B — هیچ leak بین گوشی‌ها). فقط quota Google-side اشتراکی هست.

    روش ۲: account‌های جداگانه برای quota مستقل

    • اگه می‌خواید گوشی-A با ۲۰k fetch/day خودش + گوشی-B با ۲۰k fetch/day جداگانه‌ی خودش (یعنی traffic سنگین یکی روی دیگری اثر نکنه):
    • account A: پروژه با AUTH_KEY_A → گوشی-A
    • account B: پروژه با AUTH_KEY_B → گوشی-B
    • VPS مشترک کار می‌کنه (TUNNEL_AUTH_KEY مشترک در همه CodeFull.gs ها — این کلید فقط بین Apps Script ↔ tunnel-node هست، نه گوشی)

    این روش isolation بهتر می‌ده + هر گوشی quota مستقل داره.

    روش ۳: یک account + چند پروژه با AUTH_KEY متفاوت

    • account شما → پروژه ۱ با AUTH_KEY_A → گوشی-A
    • account شما → پروژه ۲ با AUTH_KEY_B → گوشی-B
    • این فقط isolation در سطح "اگه AUTH_KEY گوشی-A leak بشه، گوشی-B هنوز خصوصی هست" می‌ده — اما quota هنوز اشتراکی است (هر دو پروژه از همون account)

    این middle-ground هست. اگه نگران leak خاصی نیستید، روش ۱ ساده‌تر و مفیدتره.

    خلاصه

    برای ۲-۳ گوشی همزمان:

    1. یک VPS Hetzner CX11 (~€۴/ماه) → tunnel-node Docker
    2. ۳-۴ Google account جداگانه → هر کدام یک Apps Script پروژه با CodeFull.gs
    3. همه Apps Scriptها به همون VPS اشاره می‌کنن (TUNNEL_SERVER_URL + TUNNEL_AUTH_KEY مشترک)
    4. هر گوشی همه ۳-۴ deployment ID + AUTH_KEY مشترک (که در CodeFull.gs هاش ست شده) رو در config mhrv-rs می‌ذاره
    5. mhrv-rs round-robin می‌کنه روی deployments

    نتیجه: ۴ × ۲۰k = ۸۰k fetch/day quota اشتراکی، ۱۲۰ concurrent execution، مسیر یکپارچه به VPS.

    اگه سؤال خاصی روی هر مرحله بود، بپرس. این issue رو باز نگه می‌دارم تا setup شما کامل بشه.


    [reply via Anthropic Claude | reviewed by @therealaleph]

  5. kanan-droid commented on Apr 28, 2026

    @kanan-droid

    @therealaleph can we use the full tunnel mode as a middle proxy for other things like warp or there are some public v2ray configs that are running behind cloudflare is it possible to do that ?
    Also im working on a common questions and answers repo so it would make your life easier

  6. therealaleph commented on Apr 28, 2026

    @therealaleph
    Owner

    @kanan-droid — both yes, with caveats. Walking through:

    1. Full mode tunnel-node as a middle proxy for WARP / V2Ray / external relays — yes.

    The tunnel-node currently makes outbound TCP/UDP connections directly to destinations. To chain it through another upstream:

    For WARP: the --upstream-interface warp proposal in #309 does exactly this — once shipped (v1.8.x), tunnel-node binds outbound sockets to the warp interface so all relay traffic flows through Cloudflare's residential IP space. Active dev; PR welcome there if you want it sooner.

    For V2Ray (e.g. behind Cloudflare): would need a SOCKS5/Trojan client embedded in tunnel-node. Not currently implemented but the architectural shape is straightforward:

    client → mhrv-rs → Apps Script → tunnel-node → SOCKS5 client → V2Ray inbound → V2Ray outbound → destination
    

    The tunnel-node upstream piece would be config-flagged like:

    UPSTREAM_SOCKS5: socks5://your-v2ray-host:1080

    When set, instead of TcpStream::connect(target), do TcpStream::connect(socks5_host) + send a SOCKS5 CONNECT request to target, then forward bytes both ways. ~150 LOC + tests.

    Trade-offs of chaining:

    • Each hop adds latency. mhrv-rs's Apps Script floor is already ~250ms; adding V2Ray on top = ~350ms+ per roundtrip. Browsing usable, real-time apps painful.
    • Doubles the tunnel cost — you're now paying for both Apps Script quota AND the V2Ray VPS bandwidth. Most users would just use V2Ray standalone if they have it; mhrv-rs's value-prop is "no VPS needed."
    • Defeats the censorship-resistance bootstrap. mhrv-rs's reason-to-exist is that the user→Google leg is uncensorable (domain fronting); chaining downstream means you need V2Ray reachable from your VPS, which might be filtered too.

    Realistic use case for the chain: "I want all my traffic anonymized through V2Ray-Reality, but my home ISP filters Reality. mhrv-rs gets me to my VPS via Google, then VPS chains to Reality." Niche but valid. Tracking as a v1.9.x feature alongside the WARP work — same UPSTREAM_* env-var pattern.

    For public V2Ray configs behind Cloudflare specifically: these tend to be unstable (free public Reality endpoints get rotated weekly). Even if mhrv-rs supported the chain, the underlying upstream churn would make the user experience flaky. Not a great match.

    2. Q&A repo — yes please, that'd help a lot.

    A community-maintained FAQ repo that mirrors the patterns from this issue tracker (Persian + English, organized by topic) would offload a lot of the "why doesn't YouTube work / what's the SABR cliff / how do I deploy Apps Script / VPS guide" thread that consumes most of my issue triage time.

    If you want to start it, I'd suggest:

    • Repo name: mhrv-rs-faq or mhrv-rs-help (under your account or a community org)
    • Top-level structure: by topic (apps-script-setup.md, youtube.md, telegram.md, vps-setup.md, troubleshooting.md) with Persian + English in each file
    • Source: lift directly from my issue replies + the existing docs/ content + community-contributed answers
    • Cross-link from this repo's README once it's populated enough to be useful (~20-30 entries)

    Happy to:

    • Link to it from the main README + Telegram channel pinned message
    • Reciprocate by linking specific FAQ entries from issue replies (so users land at the FAQ first instead of asking)
    • Review PRs you make to bring patterns from this issue tracker into the FAQ

    Practical note: the most valuable initial entries (highest issue-triage savings) are the ones I find myself answering 5+ times: deployment access settings (#298, #324, #378), Apps Script outbound filter from Iran (#313), SABR cliff (#300), Telegram MTProto architectural limitation (#224, #259, #304, #326, #329), VPS setup (#310, #333). If those 5 are well-documented in your FAQ, ~40% of incoming issues become "see FAQ entry X."

    Thanks for the offer + good question on the chaining. Adding the chain pattern to the v1.9.x roadmap explicitly.


    [reply via Anthropic Claude | reviewed by @therealaleph]

  7. kanan-droid commented on Apr 28, 2026

    @kanan-droid

    @therealaleph for the v2ray configs i meant something like this

    v2config -->mhrv--> google relays --> v2servers
    

    like a upstream proxy for the v2rayconfig
    and the second part
    i am writing it a early version and i think i could get it ready for today i need to take some screan shots and cut them out for ease of understanding and better docs

  8. therealaleph commented on Apr 28, 2026

    @therealaleph
    Owner

    @kanan-droid — your diagram clarifies it differently from what I assumed. Reading literally:

    v2config → mhrv → google relays → v2servers
    

    = V2Ray client uses mhrv-rs as its upstream SOCKS5 proxy, then mhrv-rs tunnels through Apps Script + Google relays to reach the V2Ray server. This works today with zero mhrv-rs code changes — it's just a V2Ray client config tweak.

    Your V2Ray client outbounds block:

    {
      "outbounds": [
        {
          "tag": "via-mhrv",
          "protocol": "socks",
          "settings": {
            "servers": [
              { "address": "127.0.0.1", "port": 8086 }
            ]
          }
        },
        {
          "tag": "v2-server",
          "protocol": "vmess",  // or trojan / shadowsocks / reality / whatever
          "settings": { ... your V2Ray server here ... },
          "streamSettings": {
            "sockopt": {
              "dialerProxy": "via-mhrv"  // routes this outbound through 127.0.0.1:8086 first
            }
          }
        }
      ]
    }

    The sockopt.dialerProxy field is the key — V2Ray dials the V2Ray-server endpoint through the SOCKS5 listener at 127.0.0.1:8086 (which is mhrv-rs). The V2Ray server endpoint ends up reaching out from Google's IP space (via Apps Script's outbound), which is what you want to bypass ISP filtering of your V2Ray-server's actual IP.

    Use case this enables: the user has a V2Ray server somewhere (maybe behind Cloudflare, maybe a residential IP) but their ISP filters direct connections to that V2Ray server's IP. Routing the V2Ray client → mhrv-rs → Apps Script → V2Ray server makes the V2Ray-server hop look like an Apps Script outbound from Google, which the ISP can't filter (modulo the #313 Apps-Script-from-Iran throttle).

    Trade-offs for users:

    • Apps Script's per-call latency floor (~250-500ms) becomes the dominant latency for the V2Ray connection — not great for low-latency real-time apps but fine for browsing
    • Apps Script's quota counts every V2Ray packet → quota-eats fast for video streaming. OK for chat/browsing.
    • Effective throughput per flow caps at the apps_script-mode ceiling (~50-200 KB/s per very slow download speed. #353)
    • Best for the case where V2Ray has features mhrv-rs doesn't (Vmess obfuscation, Reality, multi-hop) but your ISP filters direct V2Ray-server access

    This is genuinely just config — works today on v1.8.0+. Adding a "supported chains" doc page for this pattern in the upcoming docs/ work makes sense. Tracking it.

    i am writing it a early version and i think i could get it ready for today

    Excellent. When you have a draft up, drop the link here + I'll:

    If you want a head-start on screenshots, the highest-leverage 5 entries (matched to the most-frequently-filed issues over the past few days) are:

    1. Apps Script setup (deployment access settings, AUTH_KEY in Code.gs, Anyone-access requirement) — see script.google errore #298, relay error: unauthorized on mobile browser #324, 502 error #378
    2. Iran ISP Apps Script throttle (the App script Unresponsive ERROR #313 outage symptoms + diagnostic curl + workarounds) — see App script Unresponsive ERROR #313, ERROR Relay failed: timeout #327, من یک مشکل هنگام تسته relay #381
    3. YouTube SABR cliff (60-second cliff cause + youtube_via_relay flag + Full mode escape) — see لود نشدن ویدیو های یوتیوب بیشتر از 59 ثانیه #300, mobile version of youtube on windows #340, مشکل پلی کردن یوتیوب #370, مشکل لود نشدن ویدیو یوتوب #374
    4. Telegram MTProto architectural limitation (why apps_script can't do MTProto + MTProto Proxy alternative + Full mode option) — see Android app seems completely broken #224, ماندن روی وضعیت updating در تلگرام #259, خطای ssl #304, اتصال درست رو انجام نمیده #326, راه های اتصال برنامه هایی مانند تلگرام ؟؟ #329
    5. VPS setup walkthrough (Hetzner CX11 buy + Docker tunnel-node setup + CodeFull.gs config + multi-account isolation) — see آموزش vps #310, VPS #333

    Each of those is ~2-3 issues' worth of repeated content I've answered. Putting them in a FAQ saves both you (one canonical answer instead of N replies) and me (point users at FAQ#1 instead of typing the same diagnostic).

    Excited to see the draft.


    [reply via Anthropic Claude | reviewed by @therealaleph]

  9. kanan-droid commented on Apr 28, 2026

    @kanan-droid

    @therealaleph i want make a user friendly guide with images and stuff but the problem is that git push or git clone is blocked and using mhrv the git would just timeout so what do you suggest

  10. therealaleph commented on Apr 28, 2026

    @therealaleph
    Owner

    @kanan-droid — real problem. Three workarounds, ranked by effort:

    1. github.dev / web editor (easiest for docs)

    Press . (period) on any GitHub repo page (e.g. github.com/<your-user>/<faq-repo>) and it opens a full VS Code editor in the browser at github.dev/<your-user>/<faq-repo>. You can:

    • Edit Markdown files directly
    • Drag-drop images into the editor (uploads to GitHub via web API)
    • Commit + push from the browser UI
    • All over HTTPS to github.dev, which has different CDN reachability than github.com git endpoints — often works from Iran when git clone doesn't

    For a docs repo with markdown + images, github.dev is probably the simplest. No local clone needed.

    2. Web edit + small git operations through mhrv-rs with extended timeout

    If you do need local clones (e.g. for screenshot tooling or markdown linting), mhrv-rs proxy + git's chatty protocol is doable but needs config:

    # Configure git to use mhrv-rs as HTTPS proxy
    git config --global http.proxy http://127.0.0.1:8085
    git config --global http.sslVerify false  # mhrv-rs MITM cert
    
    # Raise timeouts (default 60s — too short for Apps Script-relayed git)
    git config --global http.lowSpeedLimit 1000
    git config --global http.lowSpeedTime 600  # 10 min before "low speed" abort
    git config --global http.postBuffer 524288000  # 500 MB push buffer
    
    # Use HTTPS only, not SSH (SSH won't work through mhrv-rs)
    git remote set-url origin https://github.com/<user>/<repo>.git

    Caveats:

    • git push for repos with many small files can hit 504s mid-push — workaround is git push origin main --force-with-lease and retry
    • git clone --depth 1 (shallow) avoids most of the per-object chatter and works better
    • File uploads >5 MB through mhrv-rs are slow but functional

    3. gh CLI for repo operations

    GitHub's gh CLI (brew install gh / scoop / etc.) goes through GitHub's REST API, which is single-call per operation rather than git's many small object fetches. Through mhrv-rs proxy, gh is much faster than git:

    gh auth login --hostname github.com --git-protocol https --web
    # follow the auth flow
    
    gh repo create my-faq-repo --public
    gh repo clone <user>/my-faq-repo
    # inside: edit files locally with text editor (no git push, just web edits)
    
    gh repo edit --add-topic mhrv-rs
    gh issue create / gh pr create / gh release create / etc.

    For a docs repo where you mostly want to add files + edit existing ones, gh + web editor is the workflow I'd suggest — minimizes git's quirks while staying productive.

    4. If you need full git locally + frequent pushes (e.g. CI workflow):

    A temp VPN session just for git operations is the most reliable. WireGuard / Outline / V2Ray local — pick whatever you can run + spin up only when you git push:

    # Spin up VPN
    warp-cli connect  # or your equivalent
    
    # Quick git work
    git pull origin main
    # edit files
    git add . && git commit -m "..."
    git push origin main
    
    # Spin down VPN
    warp-cli disconnect

    This isolates the git-traffic-needs-real-network spike from the daily-browsing-on-mhrv-rs flow.

    My recommendation for your FAQ work specifically:

    • github.dev in the browser for ~80% of the work (edit markdown, add images, commit)
    • gh CLI through mhrv-rs for the 20% (repo creation, settings, releases)
    • Local VPN session for screenshots if you need to capture screenshots that need direct internet access (e.g. capturing a github.com page rendering)

    Don't get stuck on local git workflow — for docs writing, github.dev is honestly the right tool even outside Iran scenarios. Lots of OSS docs maintainers use it as primary editor.

    If you hit specific blockers, drop them here and I can help with the workaround.


    [reply via Anthropic Claude | reviewed by @therealaleph]

  11. poryiar13 commented on Apr 28, 2026

    @poryiar13
    Author

    سلام دوباره من با تلاش هایی که کردم توی ایران نمیتونم از سایت hetzner
    vps
    تهیه کنم چون اجازه نمیده و
    vat id
    و غیره میخواد که نمیشه
    شما میخواستم برید و این لینک رو ببینید
    https://parspack.com/vps
    vps
    های آلمان هم داره که توی ایران میشه به راحتی خرید کودوم سرویس برای من خوبه تا بتونم +5 تا گوشی روش وصل کنم و پایدار و قوی باشه جوری که توی گوشی به راحتی بشه اینستاگرام رو ببینی
    و اینکه توی این سایت هم مثل سایت
    hetzner
    بگید باید چیکار کنم ممنون میشم
    خیلی ممنونم

  12. therealaleph commented on Apr 28, 2026

    @therealaleph
    Owner

    @poryiar13 — منطقی است که Hetzner direct از Iran بدون VAT ID + identity verification پایدار نباشه. Parspack (و similar Iranian-resellers) که VPSهای آلمانی واسطه می‌فروشن یک workaround رایجه. بزرگ-تصویر بگم:

    چه می‌خرید:

    از Parspack، شما در حقیقت یک VPS از datacenter آلمان اجاره می‌کنید (احتمالاً از همان Hetzner یا OVH یا similar)، ولی پرداخت + management از طریق Parspack در ایران انجام می‌شه. این یعنی:

    • ✅ VPS فیزیکی در آلمان — bandwidth خوب، latency پایین به Apps Script
    • ✅ پرداخت با ریال / کارت ایرانی + پشتیبانی فارسی
    • ✅ بدون نیاز به VAT ID یا verification غیرممکن
    • ⚠️ مارکاپ price (~۲۰-۴۰٪ گرونتر از مستقیم Hetzner)
    • ⚠️ بستگی به Parspack — اگه شرکت بسته شه یا خدمات قطع شه، VPS تحت تأثیر قرار می‌گیره

    برای استفاده mhrv-rs Full mode + 5 گوشی + Instagram smooth:

    نیازهای resource شما:

    • 5 device concurrent = حدود 50-100 mbps peak bandwidth
    • Instagram smooth = HD video streaming (~5 mbps each, 4K higher)
    • mhrv-rs Full mode + tunnel-node = lightweight (CPU + RAM ~512MB کافیه)
    • سفارشات pre-allocated bandwidth بهتر است نه per-traffic billing

    Parspack option‌ها (price approximate):

    برای 5 گوشی + Instagram smooth، توصیه:

    • یک VPS با حداقل ۲ GB RAM، 50+ mbps unmetered
    • در page Parspack (که گفتید) دنبال "VPS Germany" + "Unlimited Traffic" یا "200 Mbps unmetered" بگردید
    • price حدود ~۲۵۰-۵۰۰ هزار تومان/ماه برای این spec

    تنظیمات conservative:

    اگه می‌خواهید پایدار + کنده نشه:

    • 4 GB RAM، 100 mbps unmetered, 50 GB SSD — for headroom
    • price ~۵۰۰-۸۰۰ هزار تومان/ماه

    این over-provisioned است ولی برای 5 device concurrent + Instagram + multi-app reliability می‌ده.

    setup workflow:

    بعد از خرید VPS از Parspack:

    1. SSH access: Parspack root password یا SSH key می‌ده. این رو نگه دارید.

    2. OS install: Ubuntu 22.04 LTS یا Debian 12 — هر دو سازگار هستن. Parspack panel option می‌ده.

    3. Docker install:

      ssh root@your-vps-ip
      apt update && apt install -y docker.io
      systemctl enable --now docker
    4. mhrv-rs tunnel-node container run (per tunnel-node README):

      docker run -d --name mhrv-tunnel \
        --restart unless-stopped \
        -p 8443:8443 \
        -e TUNNEL_AUTH_KEY="your-secret-here" \
        ghcr.io/therealaleph/mhrv-tunnel-node:latest
    5. firewall رو باز کنید (Parspack ممکنه firewall پیش‌فرض داشته باشه):

      ufw allow 8443/tcp
      ufw allow ssh
      ufw enable
    6. CodeFull.gs در Apps Script را تنظیم کنید با URL:

      const TUNNEL_URL = "http://YOUR_VPS_IP:8443/tunnel";
      const TUNNEL_AUTH_KEY = "your-secret-here";  // باید match کنه با docker run
    7. Apps Script deploy as new version کنید.

    8. mhrv-rs config در دستگاه‌ها: tunnel_mode: "full" در config.json + همان auth_key که در Code.gs نوشتید.

    alternatives به Parspack (اگه parspack کم اعتماد بود):

    • Iranserver.ir — مشابه VPS آلمانی واسطه
    • Hostiran.net — option آلمانی + ایرانی
    • DigitalOcean / Linode + payment via Iranian-friendly broker — برای کاربر تکنیکالتر، حدود ۵-۸ دلار/ماه + قابل اعتماد long-term ولی setup payment پیچیده‌تره

    نکته‌ی مهم برای Iran:

    اگر datacenter آلمانی filter می‌شه از Iran ISP خاص (که گاهی اتفاق می‌افته)، VPS کار در ترکیب با mhrv-rs ولی نه مستقیم خواهد بود. mhrv-rs tunnel از Apps Script → VPS عبور می‌کنه که Apps Script Google IP داره (نه VPS direct از Iran)، بنابراین حتی اگر VPS direct از Iran filter باشه، mhrv-rs به VPS از طریق Google edge می‌رسه. این feature است نه bug.

    نتیجه: Parspack VPS Germany + mhrv-rs Full mode setup منطقی + workable است. price مارکاپ شده ولی برای کاربرانی که Hetzner direct نمی‌تونن خرید کنن workable. اگر بعد setup با مشکل خاصی برخورد کردید، در #310 یا new issue گزارش بدید.


    [reply via Anthropic Claude | reviewed by @therealaleph]

  13. poryiar13 commented on Apr 28, 2026

    @poryiar13
    Author

    خیلی عالیه چطور میتونم با شما به صورت شخصی صحبت کنم یجا پرایوت که من هم بتونم باهاش تو ایران کار کنم تا این سرور رو راه بندازیم باهم

  14. therealaleph commented on May 15, 2026

    @therealaleph
    Owner

    فعلاً این issue را می‌بندم چون بیش از ۷ روز از آخرین فعالیت گزارش‌دهنده اصلی گذشته است.

    اگر هنوز روی آخرین نسخه نیاز به پیگیری دارد، لطفاً همین‌جا دوباره کامنت بگذارید یا issue را reopen کنید و نسخه، mode، شکل config مرتبط و جزئیات/log جدید را بفرستید.


    Answered via LLM, Supervised @therealaleph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions