8000 GitHub - fy0/proxy-hub: 简单易用的代理节点转换工具 / 代理池管理工具。 Import common proxy links and turn them into ready-to-use local SOCKS5/HTTP endpoints · GitHub
[go: up one dir, main page]

Skip to content
fy0Public

About

简单易用的代理节点转换工具 / 代理池管理工具。 Import common proxy links and turn them into ready-to-use local SOCKS5/HTTP endpoints

Resources

Stars

34 stars

Watchers

1 watching

Forks

Latest commit

 

History

141 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProxyHub

ProxyHub proxy format flow

Turn your proxy nodes into HTTP/SOCKS5 proxies your apps can use.

Use VLESS, Hysteria2, or even an SSH server through one local proxy port.

English · 简体中文 · Install · Screenshots

What It Solves

Your server apps only support HTTP or SOCKS proxies, but all you have are a few VLESS or Hysteria2 nodes—or just an SSH login. ProxyHub turns them into local HTTP/SOCKS5 proxies, so your apps can use them.

Run multiple local proxy ports at the same time, each connected to one or more proxy nodes. Powered by sing-box.

Features

Feature What it does
Proxy conversion VLESS, VMess, Trojan, Shadowsocks, Hysteria/Hysteria2, TUIC, SSH, SOCKS5, HTTP → local HTTP/SOCKS5 proxies.
Load balancing / Random Distribute new connections across nodes in turn, or pick a node at random for each new connection.
Node selection Prefer the lowest latency or select a node manually. Health checks and failover help handle unavailable nodes.
Chain nodes Forward traffic through several nodes in order.
Bulk import Paste proxy links or subscriptions, preview, and import.
Backup Export and restore your setup with one JSON file.

Quick Start

npm

npm install -g pxhub
pxhub

Open http://127.0.0.1:3020. The proxy-hub command is also available as a compatibility alias.

To update: npm install -g pxhub@latest.

Docker

docker run -d --name proxyhub -p 3020:3020 -v proxyhub-data:/app/data ghcr.io/fy0/proxy-hub:latest

Open http://127.0.0.1:3020. To use a proxy port from outside the container, publish that port too (for example, -p 8080:8080) and set its listen address to 0.0.0.0 in ProxyHub.

Binary

Download the latest archive from GitHub Releases, extract it, then run proxy-hub or proxy-hub.exe.

Examples: from a node to an app

In the web UI, add a node or paste links into batch import. Replace the example addresses and credentials with your own; URL-encode special characters in usernames and passwords.

SSH — with a server address, username, and password:

ssh://alice:your-password@ssh.example.com:22#My-SSH

Hysteria2 (HY2) — with your node's password and TLS server name:

hy2://your-password@hy2.example.com:443?sni=hy2.example.com#My-HY2

VLESS — a basic TLS node (use your provider's full link for Reality or other transports):

vless://00000000-0000-4000-8000-000000000001@vless.example.com:443?security=tls&sni=vless.example.com&type=tcp#My-VLESS

Create a local HTTP or SOCKS5 port and select the node. For several nodes, create a group and choose Load balancing (round-robin) or Random, then select that group for the port.

For example, if you create an HTTP port on 127.0.0.1:8080, an app on the same machine can use it like this:

curl --proxy http://127.0.0.1:8080 https://example.com

For a SOCKS5 port at the same address, use socks5h://127.0.0.1:8080 instead.

Screenshots

Local Ports

Local ports

Add Node Chain Node Batch Import
Add node Add chain node Batch import nodes

Click a thumbnail to view the full image.

Configuration

ProxyHub reads runtime settings from the active data directory:

  • npm global install: ~/.proxy-hub/config.yaml
  • source/local binary direct run: ./data/config.yaml

Common keys:

Key Purpose
serveAt Service listen address, default :3020.
dbUrl Database DSN, default data.db under the active data directory.
logLevel Service log level.

Only SQLite DSNs are supported.

Disclaimer

This project was developed for learning purposes and is only used by the author for mutual access between two machines in the living room and bedroom at home. It is open sourced to comply with GPL requirements. Users are responsible for any consequences of their own use.

Acknowledgements

License

ProxyHub is distributed under GPL-3.0-or-later because the released application links against SagerNet sing/sing-box.

About

简单易用的代理节点转换工具 / 代理池管理工具。 Import common proxy links and turn them into ready-to-use local SOCKS5/HTTP endpoints

Resources

Stars

34 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0