免费搭 Remnawave,最难的居然不是部署 | Remnawave for Free, Deployment Isn’t the Hard Part
Remnawave 和 Xboard,都是帮你管节点的“数字管家”:一个清爽,一个全能。但管家也得有房子——服务器、域名还是得自己准备。AWS EC2 有 Free Tier,Oracle Cloud、Google Cloud 也能找到免费资源,白嫖虽香,账单还是要盯紧。(Amazon Web Services, Inc.)
Remnawave and Xboard are digital butlers for proxy nodes: one is minimalist, the other is feature-packed. But even a butler needs a house—you still need a server and domain. AWS EC2 offers Free Tier options, while Oracle Cloud and Google Cloud are also worth checking.
1. 开 AWS EC2 / Launch AWS EC2
选择符合当前 Free Tier 资格的实例,Ubuntu 24.04,记下公网 IP;Security Group 放行 80/443 和 Node 端口。AWS 免费额度有条件,超出可能收费。(Amazon Web Services, Inc.)
2. 装 Docker / Install Docker
curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker $USER
3. 配域名 / Set Up Domain
用 DuckDNS 等免费动态域名,把 A 记录指向 EC2 公网 IP。
4. 部署 Remnawave / Deploy Remnawave
按官方 Quick Start 用 Docker 部署 Panel + Reverse Proxy,在 .env 填:
FRONT_END_DOMAIN
SUB_PUBLIC_DOMAIN
Remnawave Panel 本身负责用户、节点、订阅管理,并以 Docker 方式安装。(Remnawave)
5. 加 Node / Add a Node
部署 Node,在面板创建 Reality / XHTTP / VLESS 入站,生成订阅链接。
面板管人,Node 管入口,EC2 提供“房子”。如此而已。
6. Python 自检 / Python Health Check
别急着怪面板,先查 DNS、端口、HTTPS。
import socket
import subprocess
import urllib.request
import ssl
def check_dns(domain: str) -> str | None:
"""检查域名是否已解析到某个 IP"""
try:
return socket.gethostbyname(domain)
except socket.gaierror:
return None
def check_port(host: str, port: int, timeout: float = 3.0) -> bool:
"""检查服务器端口是否可连通"""
try:
with socket.create_connection((host, port), timeout=timeout):
return True
except OSError:
return False
def check_https(domain: str, timeout: float = 5.0) -> int | None:
"""检查面板 HTTPS 是否已经能响应,返回状态码"""
try:
ctx = ssl.create_default_context()
req = urllib.request.Request(f"https://{domain}", method="HEAD")
with urllib.request.urlopen(req, timeout=timeout, context=ctx) as r:
return r.status
except Exception:
return None
if __name__ == "__main__":
domain = input("输入你给面板配的域名(如 mypanel.duckdns.org):").strip()
ip = check_dns(domain)
print(f"[DNS] {domain} → {ip if ip else '❌ 未解析,去检查 A 记录'}")
if ip:
for port in (80, 443):
ok = check_port(ip, port)
print(f"[端口 {port}] {'✅ 通' if ok else '❌ 不通,检查 AWS Security Group/防火墙'}")
code = check_https(domain)
print(f"[HTTPS] {'✅ 面板已响应,状态码 ' + str(code) if code else '❌ 还没起来或证书没配好,等一会儿再试'}")
7. 导入订阅 / Import Subscription
把订阅导入 Happ / Clash / sing-box,测试多协议入口。
到此,面板、节点、订阅、多协议,一锅端。善哉,能跑就是硬道理。
相关链接 (Related Links):
https://docs.rw/
https://docs.rw/overview/quick-start/
https://github.com/remnawave
https://github.com/remnawave/panel
https://f.docs.rw/
https://github.com/slobys/npm.git
https://github.com/cedar2025/Xboard
https://github.com/XTLS/Xray-core
https://aws.amazon.com/ec2/
https://aws.amazon.com/free/
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-free-tier-usage.html
https://get.docker.com/
https://www.duckdns.org/
https://www.oracle.com/cloud/free/
https://brew.sh/
评论
发表评论