Turn a messy list of authenticated proxies into clean local ports with no auth needed.
user:pass@1.2.3.4:8080 → 127.0.0.1:20000
A fast proxy bridge and rotator written in Rust, with a desktop GUI, a terminal UI, and a CLI.
Many tools can't send proxy credentials, or only understand one protocol. ProxyLine sits in the middle. You give it any mix of HTTP, HTTPS, SOCKS4 and SOCKS5 proxies, with or without a username and password. It gives you plain local ports that every app can use.
- 1:1 mode: every upstream gets its own local port (
127.0.0.1:20000,20001, …). - Rotating mode: one local port spreads connections over a pool of upstreams.
| 🔌 Auth bridge | Local ports need no auth; ProxyLine logs in to the upstream for you |
| 🧩 Any protocol in | Upstreams: HTTP, HTTPS (TLS), SOCKS4, SOCKS4a, SOCKS5, SOCKS5h, or auto detect |
| 🔀 Any protocol out | Each local port speaks HTTP, SOCKS4/4a and SOCKS5, picked by the first byte |
| 📋 Paste anything | ip:port, ip:port:user:pass, user:pass@ip:port, user:pass:ip:port, scheme://user:pass@host:port, IPv6 |
| 🔁 Rotating pools | Round-robin, random, timed, sticky (by client, process, domain or SOCKS5 user), or manual |
| ❤️ Health checks | Active and passive checks; dead upstreams are skipped and come back when they recover |
| 📊 Live dashboard | Up/down speed, data used, uptime, connections, latency, pool status |
| 🧹 Bulk actions | Filter by text, protocol or status; change protocol or delete many at once (with a confirm step) |
| 📎 Copy local list | One click copies every bound local proxy as 127.0.0.1:port, one per line |
| 🛣️ Split tunnel (optional) | Send chosen apps, domains or IP ranges through a proxy without app settings (admin/root) |
| 🔒 No secret leaks | Passwords never appear in logs, errors or panics; config is owner-only |
| Proxies | Delete with confirmation |
|---|---|
![]() |
![]() |
Get ProxyLine-v0.1.0-windows-x64.zip from Releases.
Unzip it and run proxyline-gui.exe. No installer and no VC++ runtime needed.
You need Rust 1.85 or newer (edition 2024).
git clone https://github.com/ChinJow/ProxyLine.git
cd ProxyLine
cargo build --releaseThis builds two programs in target/release/:
proxyline-gui: the desktop appproxyline: the CLI and terminal UI
On Linux the GUI also needs the usual desktop libraries (fontconfig, xkbcommon, Wayland or X11 headers).
-
Put your proxies in a text file, one per line, in any supported format:
1.2.3.4:8080 1.2.3.5:8080:alice:secret bob:secret@1.2.3.6:1080 socks5://carol:secret@proxy.example.com:1080 -
Import them and start the engine:
proxyline import proxies.txt proxyline run
-
Point any app at a local port. No auth needed:
curl -x http://127.0.0.1:20000 https://api.ipify.org curl -x socks5h://127.0.0.1:20001 https://api.ipify.org
Prefer clicks? Open proxyline-gui, paste the list on the Proxies page and press Import pasted.
The GUI, TUI and CLI share one config and one engine. Start the engine in one, then control it from another.
Dashboard, Proxies, Ports & Pools, Rules, Logs and Settings. If an engine is already running, the GUI attaches to it.
An htop-style terminal UI. Each page shows its keys at the bottom.
| Page | Keys |
|---|---|
| Proxies | i import · a add · d remove · p protocol (socks5, or socks5 all) |
| Ports/Pools | a new pool · t strategy · r rotate · d remove |
| Rules | a add · e edit · [ ] move · d delete · m include/exclude · g default target · c capture |
| Settings | c capture · h health · a accent · b bind address |
| Command | What it does |
|---|---|
proxyline run [--capture] |
Run the engine until Ctrl-C or proxyline stop |
proxyline import <file|-> |
Import upstreams from a file or stdin |
proxyline list [--json] |
Show upstreams and pools |
proxyline rotate <pool> |
Move a pool to its next member |
proxyline stop [--cleanup] |
Stop the engine; --cleanup removes leftover capture state |
proxyline tui |
Open the terminal UI |
Every command accepts --config-dir <dir>. You can also set PROXYLINE_CONFIG_DIR.
Settings live in config.toml in the per-user config directory (for example %APPDATA%\proxyline\config on Windows).
The GUI and TUI edit it for you. Here is a hand-written example:
bind_addr = "127.0.0.1"
port_range = [20000, 29999] # 1:1 local ports are taken from here
[[upstreams]]
id = 1
protocol = "auto" # auto | http | https | socks4 | socks4a | socks5 | socks5h
host = "1.2.3.4"
port = 8080
user = "alice"
pass = "secret"
[[pools]]
name = "rotate"
members = [1, 2, 3]
strategy = "round_robin" # round_robin | random | timed | sticky | manual
ttl_secs = 600 # for timed and sticky
listen_port = 21100 # the rotating local port
[health]
mode = "handshake" # handshake (CONNECT to target) | url
target = "www.google.com:443"
interval_secs = 60
fail_threshold = 3 # failures in a row before an upstream is marked dead
# Only used with capture (split tunnel). First match wins.
[capture]
enabled = false
mode = "include" # include: only matches are proxied | exclude: matches go direct
[[rules]]
match = { app = "chrome.exe" } # app | domain ("*.example.com") | cidr | any
target = { pool = "rotate" } # { upstream = 1 } | { pool = "..." } | "direct"With proxyline run --capture, ProxyLine catches traffic from chosen apps, domains or IP ranges and sends it through a proxy.
The apps need no proxy settings.
| OS | How | Needs |
|---|---|---|
| Windows | WinDivert. The signed driver is built into the exe | Administrator |
| Linux | nftables redirect + SO_ORIGINAL_DST |
root, nft |
| macOS | utun + userspace TCP stack | root |
If the process is killed hard, run proxyline stop --cleanup to remove leftover redirect state.
Capture is still in testing. See MANUAL_TESTS.md for limits and checks.
app ──▶ 127.0.0.1:20000 ──▶ ProxyLine ──(auth, TLS, SOCKS/HTTP)──▶ upstream proxy ──▶ internet
no auth picks a member, health-checks, counts bytes
| Crate | Role |
|---|---|
proxyline-core |
Engine: parser, protocol probe, local listeners, upstream dialers, pools, health, stats, control plane |
proxyline-capture |
OS traffic capture (WinDivert / nftables / utun). Does not depend on core |
proxyline |
CLI and ratatui TUI |
proxyline-gui |
Slint desktop GUI |
One engine runs per user. It serves a small token-protected control channel on 127.0.0.1, recorded in control.json.
That is how the GUI, TUI and CLI attach to the same running engine.
cargo test --workspace
cargo clippy --workspace --all-targets -- -D warningsTwo tests make sure every engine operation has both a GUI control and a TUI key, so the front ends stay in sync.
- WinDivert 2.2.2 by basil00, under LGPLv3 / GPLv2. It is statically linked on Windows, and its signed
WinDivert64.sysdriver is embedded in the exe. The license is incrates/proxyline-capture/driver/WinDivert-LICENSE. The patched source is inthird_party/windivert-sys. - UI built with Slint and ratatui.
ProxyLine is a networking tool. Use it only with proxies and networks you are allowed to use.
MIT. Third-party parts keep their own licenses (see above).
🇹🇭 ภาษาไทย (สรุปสั้น)
ProxyLine เป็นโปรแกรมทำสะพาน proxy เขียนด้วย Rust ใส่ proxy ที่มี user:pass (หรือไม่มี) แบบผสมกี่ตัวก็ได้ แล้วโปรแกรมจะสร้าง proxy local ที่ใช้ได้เลยโดยไม่ต้องใส่ auth
- เลือกได้ว่าจะให้ proxy แต่ละตัวมี port ของตัวเอง หรือรวมเป็น port เดียวแล้วหมุน proxy ข้างใน
- รับ proxy ได้ทุกแบบ ทั้ง HTTP, HTTPS, SOCKS4/4a, SOCKS5/5h หรือให้ตรวจจับเอง วางได้หลายรูปแบบ
- มี GUI สวยพร้อม dashboard กราฟ, TUI ใน terminal และ CLI
- เช็กสถานะ proxy อัตโนมัติ ตัวที่ตายจะถูกข้ามไปเอง
- filter, เปลี่ยน protocol หรือลบทีละหลายตัวได้ และกดปุ่มเดียวเพื่อก็อปลิสต์ proxy local ทั้งหมด
- (ทางเลือก) ส่งเฉพาะบางแอป, โดเมน หรือ IP ผ่าน proxy ได้โดยไม่ต้องตั้งค่าในแอป ต้องรันแบบ admin/root
เริ่มใช้: โหลด zip จากหน้า Releases หรือ cargo build --release จากนั้นเปิด proxyline-gui หรือใช้ proxyline import proxies.txt แล้ว proxyline run

