Hashem — GRE + FRP + Backhaul tunnel manager for Iran with a secure Go web panel (per-peer traffic ledger, self-signed/custom TLS, multi-carrier failover)
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Tunnels between an Iran server and foreign servers, managed from one web panel.
Users connect to the Iran server's public IP; their traffic reaches services on your foreign servers through GRE, FRP, Backhaul, Xray, SSH or a spoofed pipe, with health checks, failover and safe updates built in.
English · فارسی · Website · Telegram · YouTube
flowchart LR
U([Users]) --> HUB
subgraph IR["Iran server"]
HUB["Public ports<br/>frps · Backhaul · Xray"]
P["Panel :7777"]
end
HUB <== "GRE · 6to4 · 4in6 · WSS" ==> A["Foreign server A<br/>FRP over GRE"]
HUB <-- "Backhaul, no GRE" --> B["Foreign server B"]
HUB <-- "Xray / SSH" --> C["Foreign server C"]
The Iran server owns the public ports users connect to. Each foreign server runs your services (for example an Xray panel) and is linked to the Iran server by a tunnel. The same panel runs on both sides: you set up the Iran server, copy one setup bundle, and paste it on the foreign server.
| Tunnel | How it travels | Pick it when |
|---|---|---|
| GRE + FRP | FRP over a GRE link (tcp, kcp, quic, websocket, wss) | the default: most options, free |
| Backhaul | with or without GRE (tcpmux, ws, wss, udp, …) | GRE is blocked, or you want Backhaul's transports |
| Xray | VLESS with Reality, XHTTP, gRPC, mKCP or a CDN | the path needs to look like normal HTTPS |
| Bagher | FRP inside a pool of SSH connections | only SSH gets through |
| Spoof | spoofed-source pipe with WireGuard on top | the firewall whitelists source IPs |
The GRE link itself can be wrapped four ways: Direct (protocol 47), WSS (TLS on a web port), 6to4 (protocol 41) and 4in6 (over IPv6). Not sure what gets through? Path test (Benchmark tab) checks every transport between your two servers before you build anything. Details: docs/ENGINES.md.
hashem doctor), with Quick Repair.hashem opens a terminal app with the same menus as the panel.Run on both servers:
bash <(curl -fsSL https://raw.githubusercontent.com/pdnczone/hashem-panel/main/install.sh)
1, pick the tunnel and ports, and copy the bundle it prints (hsh1_…).2 and paste the bundle.http://<server-ip>:7777/<secret>). Lost it? hashem show-panel-url; new password: hashem reset-password.More foreign servers are added from the panel's Setup tab. To read the installer first, or pin it to a release's checksums.txt, see Installing safely.
[!IMPORTANT] The panel uses plain HTTP on a long random path by default. Before exposing it, add TLS with
hashem tls issue <domain>or a reverse proxy (docs/DEPLOYMENT.md).
amd64 or arm64 (developed on Ubuntu), and root on both servers. The installer adds missing packages.| Tunnel or wrap | Open |
|---|---|
| Direct GRE · 4in6 | IP protocol 47 (over IPv4 · over IPv6) |
| 6to4 | IP protocol 41 |
| WSS wrap | TCP 8443 (default) |
| FRP · Backhaul · Xray | the control port you choose (UDP too for kcp, quic, udp) |
| Panel | TCP 7777, or 7443 once HTTPS is on |
GRE + FRP, the panel and updates are free. A Pro license unlocks Backhaul setup, Xray, Bagher, Spoof, limits, the cluster, the path test, diagnostics, performance tuning, the watchdog and the benchmark. Every Pro key opens every Pro feature, including ones added later, and tunnels and settings that already run keep running without one. pdnczone.ir
| Start | Choosing a tunnel · Troubleshooting · Secure deployment |
| Guides | IPv6 · Xray tunnel · Cluster · Cluster tutorial · Nodes · Customers · FRP transports |
| Reference | Operations: health model, updates, CLI, uninstall · HTTP API · Error codes · Changelog |
| Project | Contributing · · · |
Persian versions exist for the README and the IPv6, Xray, cluster and FRP guides.
Issues and pull requests are welcome; read CONTRIBUTING.md and branch from dev. Report vulnerabilities privately (SECURITY.md).
Licensed under the GNU AGPL-3.0: if you run a modified version as a network service, publish your changes under the same license. The Pro features need a license from the author.