[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108658":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":15,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":10,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":15,"starSnapshotCount":15,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},108658,"Runflare-Proxy","ThisIsDara\u002FRunflare-Proxy","ThisIsDara","a relay on Runflare with a password-protected web panel","",null,"JavaScript",58,10,51,0,7,40.82,false,"main",true,[],"2026-10-21 20:39:12","2026-11-16 13:42:41","# SOCKS5 Relay with Web Panel and 443 Tunnel on Runflare\n\nThis guide sets up a lightweight Docker SOCKS5 relay on Runflare with a password-protected web control panel. It also includes an optional **VLESS-over-WebSocket tunnel on port 443** for networks that throttle the SOCKS5 NodePort. Use it as a private, authenticated proxy for any SOCKS5-capable client or v2rayN. The relay only forwards connections that your client sends to it.\n\n> **Quick start:** [Download `relay-control.zip`](https:\u002F\u002Fgithub.com\u002FThisIsDara\u002FRunflare-Proxy\u002Freleases\u002Flatest\u002Fdownload\u002Frelay-control.zip) and follow the steps below.\n\nThe container has two listeners:\n\n| Container port | What it is | How it is exposed |\n| --- | --- | --- |\n| `3000` | Web control panel | Runflare **ClusterIP** `http:80 → 3000`, opened through a domain |\n| `3000` + `\u002Fws` | Optional VLESS 443 tunnel | The same panel domain over **HTTPS**, using a WebSocket upgrade |\n| `8000` | SOCKS5 proxy | Runflare **NodePort** `80 → 8000` |\n\n> **Important:** `3000` is the panel and the 443 tunnel. `8000` is the direct SOCKS5 proxy. Do not swap them. The 443 tunnel does not add a new port; it reuses the panel's HTTPS domain and the `\u002Fws` path.\n\n> **TLS requirement:** the 443 tunnel uses the panel domain's certificate. If the domain serves a self-signed or internal certificate, the panel may still open after a browser warning, but v2rayN will reject the tunnel. See [Enable HTTPS for the 443 Tunnel](#enable-https-for-the-443-tunnel).\n\n---\n\n## 1. Create a Runflare Project\n\nFirst, set up the project that will hold the relay service.\n\n1. **Login or Register** at [portal.runflare.com](https:\u002F\u002Fportal.runflare.com\u002F).\n2. Click **Create Project (ایجاد پروژه)**.\n3. Select any domain name you prefer. You can attach a real domain later; a temporary domain is enough to start.\n4. **Select a Datacenter:** **Pishgaman IRAN (پیشگامان ایران)** is recommended for the best route from inside the country. Other locations work; test the route.\n5. **Select Resources:** The minimum is fine. This relay is limited by bandwidth, not CPU.\n6. Click to create the project.\n\n---\n\n## 2. Create the Docker Service\n\n1. Go to **Services (سرویس ها)** in your project and click **Create (+ ایجاد)**.\n2. Enter a **Service Name** of your choice.\n3. In **Structure**, select **Docker**.\n4. **Expose Port:** choose **`3000`**. This is the web panel.\n   - Do **not** choose `8000` here. `8000` is the SOCKS port and will be exposed later as a NodePort.\n5. **Select Resources:** The minimum is enough to start.\n6. Click to create the service.\n\n\u003Cimg width=\"1319\" height=\"779\" alt=\"image\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F55bdfe8b-5287-421b-acad-ad3e1a2b554e\" \u002F>\n\n\n---\n\n## 3. Deploy the Source Code\n\nDeploy this project to the service. You can use either method.\n\n### Option A: ZIP Upload (Recommended)\n\n1. Download [`relay-control.zip`](https:\u002F\u002Fgithub.com\u002FThisIsDara\u002FRunflare-Proxy\u002Freleases\u002Flatest\u002Fdownload\u002Frelay-control.zip).\n2. Drag and drop, or upload the ZIP file into the deployment area.\n3. Make sure the `Dockerfile` is at the **root** of the ZIP, not inside an extra folder.\n4. Start the deployment.\n\u003Cimg width=\"1571\" height=\"403\" alt=\"image\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F40523bf6-8a8e-4812-8559-21e93d7209cf\" \u002F>\n\n### Option B: Direct GitHub Link\n\n1. Push this project to a GitHub repository.\n2. In Runflare, select **Git**.\n3. Choose **Classic GitHub (گیت هاب کلاسیک)**.\n4. Enter your repository URL, for example:\n   `https:\u002F\u002Fgithub.com\u002FThisIsDara\u002FRunflare-Proxy.git`\n5. Set the **Branch** to `main`.\n6. Leave the Token field completely blank.\n7. Select the last commit from the bottom of the page.\n8. Start the deployment.\n\n---\n\n## 4. Environment Variables Configuration\n\nOpen the **Environment Variables (متغیرهای محیطی)** section in the service settings. Add these variables:\n\n- **`ADMIN_PASSWORD`** *(Required)* — the password for the web panel. Use at least 8 characters; 16+ is better.\n- **`PROXY_USER`** — the SOCKS5 username, for example `relay`.\n- **`PROXY_PASS`** — the SOCKS5 password, 8–128 characters. Set it explicitly so it does **not** change when the container restarts.\n- **`PUBLIC_SOCKS_ENDPOINT`** — Add a placeholder value for now, we will Add this at step 6.\n- **`VLESS_UUID`** *(Optional)* — A fixed UUID for the 443 tunnel. If omitted, the server derives one from `ADMIN_PASSWORD`. Set it explicitly if you rotate the admin password or want the tunnel link to stay the same across password changes.\n- **`PUBLIC_VLESS_ENDPOINT`** *(Optional)* — The public `host:port` used in the 443 tunnel link. Use `https:\u002F\u002Fhost:443` to force TLS, or `ws:\u002F\u002Fhost:80` for an HTTP-only test. Leave it empty to use the panel's own domain and scheme.\n\n\u003Cimg width=\"1566\" height=\"480\" alt=\"image\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Fb1fc6648-0cba-4103-8323-530c560f9500\" \u002F>\n\n\nOptional settings:\n\n| Variable | Default | Notes |\n| --- | --- | --- |\n| `MAX_CONNECTIONS` | `64` | Concurrent SOCKS5 and VLESS connections, 1–512. |\n| `PROXY_ENABLED` | `true` | Start with the relay active or paused. |\n| `SPEEDTEST_URL` | Cloudflare 100 MB | Default Route test URL. Change it if the test returns 403. |\n| `ADMIN_PORT` | `3000` | Must match the service's Expose Port. |\n| `PROXY_PORT` | `8000` | Must match the NodePort target. |\n| `VLESS_UUID` | derived from ADMIN_PASSWORD | Fixed UUID for the 443 tunnel. |\n| `PUBLIC_VLESS_ENDPOINT` | panel domain | Public `host:port` for the 443 tunnel link. |\n| `TRUST_PROXY` | `true` | Keep this for Runflare so login rate limiting sees the real client IP. |\n\nSave the variables. Runflare restarts the container automatically when they change.\n\n> The 443 tunnel is active automatically. It only becomes useful when the panel is opened over **HTTPS**; the panel will generate a `ws:\u002F\u002F` link (not 443) when the domain is HTTP-only.\n\n> Changes made in the panel are kept in memory. They reset to these environment values when the container restarts.\n\n---\n\n## 5. Create a Panel URL (Domain)\n\nRunflare's ClusterIP row only maps `http:80 → 3000` inside the project. It does **not** create a public URL by itself, so you attach a domain to that row to open the panel.\n\n1. Go to **Project → Services** (or the service details page).\n2. In the **Domain (دامنه)** column, click **Create Temporary Domain (ایجاد دامنه موقت)**.\n3. The URL appears in that column, for example:\n   `docker-xxxx-\u003Cproject>.runflare.cloud`\n4. Open that URL. It routes to the panel on port `3000`.\n\n> A temporary domain is valid for **1 hour** and can be created **3 times per 24 hours**. It is meant for setup and testing. The relay itself keeps running after the URL expires; create a new temporary domain when you need the panel.\n\n> **For the 443 tunnel, use a permanent HTTPS domain.** The tunnel runs through the panel's domain, so it stops when a temporary domain expires. The SOCKS5 NodePort keeps working without the panel. If the panel opens over plain HTTP, the tunnel link will be `ws:\u002F\u002F` and will not use 443; attach a domain with TLS before relying on it. The domain's HTTP ingress must also forward WebSocket upgrades for `\u002Fws`; most HTTP ingresses do, but test the tunnel after deployment.\n\n\u003Cimg width=\"1568\" height=\"663\" alt=\"temp-domain\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Ffa4a02e7-d7e5-4791-91c6-a9ac7328ee66\" \u002F>\n\n\n### For a permanent URL, go to **Project → Domain Settings (تنظیم دامنه)**, add a domain you own, set its DNS record, then attach it to this service and choose the **`http:80 → 3000`** network.\n\n\u003Cimg width=\"1558\" height=\"403\" alt=\"domain1\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Fb611af75-d280-4197-8b5d-3926a78eeadd\" \u002F>\n\n### Copy the TXT Record\n\u003Cimg width=\"1546\" height=\"618\" alt=\"domain2\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F43ed0046-d3cf-4c2d-88f0-aef5dc64cffa\" \u002F>\n\n\n### If you use CDNs like Cloudflare to manage your Domain, add the TXT Record to your Domain.\n\n\u003Cimg width=\"1609\" height=\"261\" alt=\"domain3\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Fe6db4a29-8631-4733-afc2-c279be0f8936\" \u002F>\n\n### Copy the IP from Runflare Domain Records\n\n\u003Cimg width=\"1545\" height=\"655\" alt=\"A record ip\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F0b9858c1-6f1b-414a-9fa0-a7e093ce149b\" \u002F>\n\n### Add the IP in Cloudflare as *A* Record with the names *@* and *www*\n\n\u003Cimg width=\"1630\" height=\"339\" alt=\"DNS records\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Fbd546fc2-3d9e-4fad-82b2-2866729f2c12\" \u002F>\n\n\n> *DNS propagation:* Runflare manages DNS queries itself. After creating or attaching the domain, the panel may not open immediately. Wait **5–30 minutes** for the DNS record to propagate before assuming the deployment is broken.\n\n### Enable HTTPS for the 443 Tunnel\n\nThe 443 tunnel uses the panel domain's certificate. If the domain serves a self-signed or internal certificate, the panel may still load after a browser warning, but v2rayN rejects the tunnel and the real-delay test shows `-1`. The panel also keeps generating a `ws:\u002F\u002F` link while it is opened over HTTP.\n\nOpen **SSL**, select the domain, and choose one of Runflare's three modes:\n\n| Mode | Result | Use it? |\n| --- | --- | --- |\n| **HTTP** | No TLS. The panel is plain HTTP and the tunnel link is `ws:\u002F\u002F`. | No, not for the 443 tunnel. |\n| **Runflare free certificate** | Runflare manages the certificate. | Try it first. Some domains receive an internal `cert-manager.local` certificate that clients reject. |\n| **HTTPS user certificate** | You upload a certificate and its private key. | Use this when the free certificate is not trusted. |\n\n#### Option A: Runflare free certificate\n\n1. Open **SSL**, select the domain.\n2. Enable **Runflare free certificate** and turn off the other two options.\n3. Click **Save** and wait a few minutes.\n4. Open `https:\u002F\u002Fyour-domain` in a private window. A valid padlock means the certificate is trusted.\n5. Reload the panel over HTTPS. The 443 card should show `:443` with `security=tls`.\n\nIf the browser still warns, or the certificate details show `CN=cert-manager.local` or `CN=TRAEFIK DEFAULT CERT`, the free certificate is not usable for this domain. Use Option B.\n\n#### Option B: Upload a Let's Encrypt certificate (Recommended)\n\nSome CAs, including **ZeroSSL**, refuse `.ir` domains because of US sanctions. **Let's Encrypt** issues certificates for ordinary `.ir` domains, so use it when the panel domain ends in `.ir`.\n\nYou need a certificate whose SAN covers the panel domain, its private key, and the intermediate chain. The certificate must cover the exact hostname used in the 443 link; if you use the apex domain, do not switch to `www` unless the certificate includes it. Any ACME client can produce them. For example, with `acme.sh` and Cloudflare DNS:\n\n```bash\nexport CF_Token=\"your-cloudflare-api-token\"\nacme.sh --issue --server letsencrypt --dns dns_cf -d panel.example.com --keylength 2048\n```\n\nFor other DNS providers, use the matching `--dns` hook and credentials. The client prints a TXT record. Add it at your DNS provider:\n\n- **Type:** `TXT`\n- **Name:** `_acme-challenge` (the provider appends the zone)\n- **Value:** the value printed by the client\n\nFinish the validation, then remove the TXT record (it is only needed during issuance). Collect:\n\n| File | `acme.sh` name | What it is |\n| --- | --- | --- |\n| `private.key` | `\u003Cdomain>.key` | The private key |\n| `certificate.crt` | `\u003Cdomain>.cer` | The leaf certificate |\n| `ca_bundle.crt` | `ca.cer` | The intermediate chain (recommended) |\n\nUpload them in Runflare:\n\n1. **SSL → select the domain → HTTPS user certificate**.\n2. Paste the private key, certificate, and bundle into the matching boxes.\n3. Turn off **Runflare free certificate**; only the user certificate should be active.\n4. Click **Save** and wait 1–2 minutes.\n5. Open `https:\u002F\u002Fyour-domain` and check the certificate details. It should be issued to your domain by Let's Encrypt (or your CA), not `TRAEFIK DEFAULT CERT`.\n\n> **Renewal:** Let's Encrypt certificates are valid for 90 days. Renew about 30 days before expiry and upload the new files. The TXT value changes on every renewal. Let's Encrypt allows 50 certificates per domain per 7 days, so normal renewals are well within the limit.\n\n> **Runflare caveat:** A custom certificate can work and then revert to `CN=TRAEFIK DEFAULT CERT` after the ingress restarts. If the tunnel stops working, open the SSL page, confirm only the user certificate is selected, paste the files again, and save. If it keeps reverting, open a Runflare ticket. The SOCKS5 NodePort is not affected.\n\n> **Checking the certificate:** click the padlock in the browser and open the certificate details. The subject should be your panel domain, and the issuer should be a public CA such as Let's Encrypt. `TRAEFIK DEFAULT CERT` or `cert-manager.local` means the domain is not using a trusted certificate.\n\n---\n\n## 6. Network Configuration (Crucial Step)\n\nRunflare's default ClusterIP mapping is for the web panel. SOCKS5 is raw TCP, so it needs a **NodePort**. This is the address your client will use.\n\n1. Open **Networks (شبکه ها)** in the service.\n2. Leave the default **ClusterIP** `http:80 → 3000` alone. That is the panel.\n3. Click **Add Network (افزودن شبکه)**.\n4. Set the **Type (نوع)** to **`NodePort`**.\n5. Set the **Port** to **`80`**.\n6. Set the **Target Port (تارگت پورت)** to **`8000`**.\n7. Click **Add \u002F Save**.\n8. Copy the value under **Remote Access (دسترسی از راه دور)**, for example:\n   `remote-pishgaman.runflare.com:30769`\n\u003Cimg width=\"1565\" height=\"413\" alt=\"network\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F0d9c5474-e4d0-4ab6-b205-381c4475835e\" \u002F>\n\n\n9. Put that `host:port` into **`PUBLIC_SOCKS_ENDPOINT`** and save\u002Frestart. The panel's **v2rayN share link** will then be generated with the proxy credentials embedded.\n\n\n\u003Cimg width=\"660\" height=\"496\" alt=\"replace\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Ffc9cfa26-3c3a-40b5-a5ad-5092d8316b5c\" \u002F>\n\n\n> Use the **5-digit remote port**, not `8000`, for SOCKS5. The panel domain is for the web UI and the optional 443 tunnel; it is not a SOCKS5 endpoint. The 443 tunnel does not use this NodePort.\n\n\n\n\n---\n\n## 7. Open the Panel and Copy a Share Link\n\n1. Open the panel over **HTTPS**: `https:\u002F\u002Fyour-domain` (not `http:\u002F\u002F`, and not the NodePort). The padlock must be valid; if it is not, see [Enable HTTPS for the 443 Tunnel](#enable-https-for-the-443-tunnel).\n2. Sign in with **`ADMIN_PASSWORD`**.\n3. Confirm that the panel says **Relay is live**.\n4. Under **Access**, click **Reveal current password** if you need the raw credentials for manual client setup.\n5. The **v2rayN share link** box shows `socks:\u002F\u002F...@host:port#runflare` when `PUBLIC_SOCKS_ENDPOINT` is set. Click **Copy** for the direct SOCKS5 path.\n6. The **v2rayN 443 tunnel** box shows a `vless:\u002F\u002F...@host:443...` link when the panel is open over HTTPS. Click **Copy** if your ISP throttles the SOCKS5 NodePort.\n\n> The 443 tunnel is **VLESS over WebSocket\u002FTLS**, not SOCKS5. Import its link as a separate server in v2rayN. It uses the panel domain and the `\u002Fws` path. If the card says `ws:\u002F\u002F`, the panel is being opened over HTTP; use `https:\u002F\u002F` and a permanent domain. If the link shows `:443` but v2rayN returns `-1` on the real-delay test, the domain's certificate is not trusted — see [Enable HTTPS for the 443 Tunnel](#enable-https-for-the-443-tunnel).\n\n---\n\n## 8. Connect Through the Proxy\n\n### Option A: v2rayN (GUI)\n\nThe panel can generate two different links. Use the one that matches your network:\n\n| Link | Protocol | Endpoint | When to use it |\n| --- | --- | --- | --- |\n| **v2rayN share link** | SOCKS5 | NodePort `host:5-digit-port` | Direct path; simplest setup |\n| **v2rayN 443 tunnel** | VLESS + WebSocket + TLS | Panel domain on port `443` | When the SOCKS5 NodePort is throttled |\n\nImport the link directly:\n\n1. Open the panel and click **Copy** next to the link you want.\n2. In v2rayN, choose **Servers → Import Share Links from Clipboard** (`Ctrl+V`).\n3. Select the imported server in the list: `runflare` for SOCKS5, or `runflare-443` for the tunnel.\n4. Click **Enable Tun** (run v2rayN as Administrator if prompted).\n5. Open **Routing Setting** and add rules for the traffic you want to send through the relay. Set the outbound to the imported server, and add a final catch-all `direct` rule for everything else.\n\n> The share link is a password. Anyone who has it can use the relay. If you prefer manual entry for the direct path, use **Servers → Add [SOCKS]** and fill in the host, 5-digit port, username, and password from the panel. Do not add the 443 tunnel as SOCKS5; it must be imported as VLESS.\n\n> v2rayN's TUN mode captures all system traffic. Configure the routing rules so only the traffic you want uses the relay.\n\n> If the 443 tunnel connects but pages do not load, turn off **Mux** for the `runflare-443` server. This relay handles one TCP stream per WebSocket; VLESS multiplexing is not implemented.\n\n> **Sing-box users:** [`client\u002Fsing-box.vless.example.json`](client\u002Fsing-box.vless.example.json) contains the same 443 tunnel as a VLESS\u002FWebSocket\u002FTLS outbound. Replace `PANEL_DOMAIN` and `VLESS_UUID` with the values from the panel.\n\n---\n\n### How the 443 tunnel works\n\nThe panel domain's HTTPS ingress forwards WebSocket upgrades to the container on port `3000`. The container speaks VLESS over WebSocket and relays TCP. Because the client connects to the domain on port `443` with TLS, the traffic uses the same port as normal HTTPS instead of the random NodePort. The ingress terminates TLS, so the certificate must be valid for the panel domain; a self-signed certificate breaks the tunnel even if the panel itself loads after a warning. The SOCKS5 listener on `8000` remains unchanged.\n\n### Confirm it is working\n\nOpen the panel and check:\n\n- **Active connections** shows the destination hosts your client is opening.\n- **Traffic → Downloaded** climbs while data moves through the relay.\n- A request succeeds when the relay is live and fails when it is paused.\n\n---\n\n## 🛑 Stopping & Starting Your Service (Cost Saving)\n\nTo avoid charges while you are not using the relay, stop the Runflare service.\n\n### When you finish using the relay\n\n- Go to your **Runflare Dashboard**.\n- Open **Projects** and select your project.\n- Click the **Stop** button (⏻). The service stops billing while paused.\n\n### When you need it again\n\n- Return to the same project.\n- Click the **Start** button (▷).\n- Wait a few seconds for the container to boot.\n- If the NodePort address changed, update `PUBLIC_SOCKS_ENDPOINT` and your client config.\n\n---\n\n## Troubleshooting\n\n- **There is no panel URL, or Remote Access is empty.** ClusterIP is internal only. Create a temporary domain from the service list's **Domain** column, or attach your own domain in **Project → Domain Settings**. Make sure the domain points to `http:80 → 3000`, not the NodePort.\n- **The panel keeps returning to the sign-in page.** The domain is attached to the wrong network or the cookie is stale. Use the domain URL, not the NodePort, and confirm the ClusterIP target is `3000`.\n- **The temporary domain expired.** Create another one from the **Domain** column (3 per 24 hours). The SOCKS relay keeps working without the panel. The 443 tunnel stops with the domain; use a permanent HTTPS domain for it.\n- **The domain returns 503 \"Application Starting\", or the SOCKS port closes immediately.** The container is stopped or still booting. Start the service in Runflare and wait; the 503 page reloads itself. If it stays down, check the service logs.\n- **`curl` says the user was rejected.** The username or password is wrong. Use **Reveal current password** in the panel. Changes apply to new connections.\n- **`curl` cannot connect.** Confirm the NodePort is `Port 80 → Target 8000`, the service is running, and you are using the **Remote Access** `host:5-digit-port`, not port `8000`.\n- **The 443 tunnel link starts with `ws:\u002F\u002F`.** The tunnel needs HTTPS. Open the panel over `https:\u002F\u002F` with a permanent domain; a temporary Runflare domain may not provide TLS. If the site is HTTPS but the link is still `ws:\u002F\u002F`, the ingress is not sending `X-Forwarded-Proto: https`; set `PUBLIC_VLESS_ENDPOINT=https:\u002F\u002Fyour-domain:443` and redeploy.\n- **The 443 tunnel link contains an internal hostname, `localhost`, or the wrong port.** The ingress rewrote the `Host` header. Set `PUBLIC_VLESS_ENDPOINT=https:\u002F\u002Fyour-domain:443` explicitly and redeploy; the panel will use that value for the tunnel link.\n- **The 443 tunnel link does not connect.** Confirm the domain opens the panel over HTTPS, the ClusterIP target is `3000`, and the domain\u002Fingress forwards WebSocket upgrades for `\u002Fws`. The tunnel is VLESS, not SOCKS5; import the `vless:\u002F\u002F` link, not the `socks:\u002F\u002F` link. If the ingress cannot upgrade WebSocket, the tunnel cannot work on that service. If the panel opens over HTTPS but v2rayN shows `-1`, check the certificate first.\n- **The browser says the panel is \"Not secure\", or v2rayN shows `-1` on the real-delay test.** The ingress is serving a certificate that clients do not trust. Open the certificate details; if the subject is `TRAEFIK DEFAULT CERT` or the issuer is `cert-manager.local`, the domain is not using a public certificate. Follow [Enable HTTPS for the 443 Tunnel](#enable-https-for-the-443-tunnel).\n- **The 443 tunnel worked for a few minutes and then stopped.** The ingress restarted and reverted to its default certificate. Re-save the user certificate in Runflare SSL, then reload the panel. If it keeps happening, contact Runflare support; the SOCKS5 NodePort keeps working.\n- **The panel works intermittently, or v2rayN sometimes shows `-1`.** If the domain has more than one A record, the ingress replicas can disagree about the certificate or the domain route. Test each IP:\n  ```bash\n  curl -I --resolve your-domain:443:INGRESS_IP https:\u002F\u002Fyour-domain\n  ```\n  A healthy IP returns the panel (usually `303` to `\u002Flogin`) without a certificate error. If one IP returns `404`, a certificate error, or `TRAEFIK DEFAULT CERT`, remove that A record or ask Runflare to fix the ingress.\n- **ZeroSSL refuses the domain.** ZeroSSL blocks `.ir` and some other sanctioned ccTLDs. Use Let's Encrypt instead; it issues for ordinary `.ir` domains.\n- **The certificate expired.** Let's Encrypt certificates last 90 days. Renew about 30 days before expiry and upload the new files. The `_acme-challenge` TXT value changes on every renewal.\n- **The 443 tunnel is also slow.** If the direct SOCKS5 NodePort is throttled but the 443 tunnel is slow too, the limit is likely the Runflare ingress\u002Fplan or the upstream route, not the ISP's high-port shaping. Compare it with the Route test and contact Runflare support or upgrade.\n- **The 443 tunnel link changed after changing `ADMIN_PASSWORD`.** Set a fixed `VLESS_UUID` environment variable and redeploy. The link is derived from the admin password when `VLESS_UUID` is empty.\n- **Traffic is not going through the relay.** Confirm the client is using the NodePort `host:port` or the imported 443 tunnel, the relay is live, and the app or system proxy is actually pointed at it. In v2rayN, check that the active routing rule selects the imported server. If you use TUN mode, run v2rayN as Administrator and check **Active connections** in the panel.\n- **The Route test shows 502 or HTTP 403.** Cloudflare is rejecting the container's test download. This is not the proxy failing. Try `https:\u002F\u002Fspeed.hetzner.de\u002F100MB.bin` in the Route test, or ignore it.\n- **The password contains URL characters.** Use curl's `--proxy-user \"USER:PASS\"` instead of putting the password inside the proxy URL. Quote the value in your shell.\n- **The NodePort changed after a redeploy.** Update `PUBLIC_SOCKS_ENDPOINT` and the client config with the new `host:port`. The 443 tunnel does not depend on the NodePort; it depends on the panel domain.\n\n---\n\n## Limits & Notes\n\n- **No caching.** Every byte crosses the container twice: client → container, then container → destination. A 100 GB transfer moves roughly 200 GB through Runflare. Check Runflare's bandwidth quotas and pricing before large transfers.\n- **TCP only.** Both the SOCKS5 path and the 443 tunnel forward TCP. UDP-based traffic, including some voice, streaming, and QUIC flows, is not supported and may fail while routed.\n- **The 443 tunnel depends on the panel domain and its certificate.** It uses the domain's HTTPS certificate and WebSocket support. A self-signed or internal certificate (`TRAEFIK DEFAULT CERT`, `cert-manager.local`) breaks the tunnel even if the panel loads after a warning. A temporary domain expires after 1 hour; use a permanent domain for the tunnel. The SOCKS5 NodePort does not depend on the panel domain.\n- **Certificates expire.** Let's Encrypt certificates last 90 days. Renew about 30 days before expiry and upload the new files. Runflare can revert a custom certificate after an ingress restart; re-save it if the tunnel stops.\n- **In-memory state.** Panel changes, counters, and active sessions reset when the container restarts.\n- **Security.** The SOCKS port is public but requires a username and password. The 443 tunnel is public but requires the VLESS UUID; treat the `vless:\u002F\u002F` link like a password. Use a strong `ADMIN_PASSWORD` and a fixed `VLESS_UUID`. The panel is protected by `ADMIN_PASSWORD`; use HTTPS for the domain. A temporary domain may be HTTP-only, so avoid entering the admin password on an untrusted network.\n- **Acceptable use.** A public general-purpose proxy may violate the host's terms. Check Runflare's policy before committing to large transfers.\n\n---\n\n## Local Development (Optional)\n\nNo Docker is required; the app uses only Node's standard library.\n\n```powershell\n$env:ADMIN_PORT=\"3000\"\n$env:PROXY_PORT=\"8000\"\n$env:ADMIN_PASSWORD=\"testpass123\"\n$env:PROXY_USER=\"relay\"\n$env:PROXY_PASS=\"testpass123\"\nnode server.js\n```\n\nOpen \u003Chttp:\u002F\u002F127.0.0.1:3000>. The panel will show a local `ws:\u002F\u002F127.0.0.1:3000\u002Fws` tunnel link; for a real 443 test, put the app behind an HTTPS domain or a local TLS terminator. To build the image:\n\n```powershell\ndocker build -t relay-control .\ndocker run --rm -p 3000:3000 -p 8000:8000 `\n  -e ADMIN_PASSWORD=testpass123 `\n  -e PROXY_USER=relay `\n  -e PROXY_PASS=testpass123 `\n  relay-control\n```\n\nThe Dockerfile uses `node:22-alpine` and does not run `npm install`.\n","Runflare-Proxy 是一个基于 Runflare 平台部署的轻量级 SOCKS5 代理中继服务，附带密码保护的 Web 控制面板和可选的 VLESS-over-WebSocket（443 端口）隧道。核心功能包括：通过 NodePort 暴露 SOCKS5 代理（端口 8000）、通过 ClusterIP 域名提供 HTTPS 访问的管理面板（端口 3000）及复用同一域名的 `\u002Fws` 路径实现抗审查的 WebSocket 隧道。技术上采用 Docker 容器化部署，依赖 Runflare 的网络抽象能力，无需自管服务器。适用于需绕过区域网络限制、对代理链路有身份认证与可控性要求的个人或小团队场景，如跨境开发调试、安全研究中的受限环境访问。",2,"2026-11-24 04:34:54","CREATED_QUERY"]