Skip to content
ChinJowPublic

About

Proxy bridge & rotator in Rust: turn authenticated HTTP/SOCKS5 proxies (user:pass@ip:port) into local no-auth ports, 1:1 or rotating. GUI + TUI + CLI, health checks, live dashboard, split tunnel.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

ProxyLine

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.

Rust License: MIT Platforms GUI TUI Release Downloads

ProxyLine dashboard: live traffic graph, data used, uptime, upstream health

Why

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.

Features

🔌 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

Screenshots

Proxies Delete with confirmation
Proxies page with filters, Set protocol, Copy local and Delete all Confirm dialog before deleting all upstreams

Quick start

Download (Windows)

Get ProxyLine-v0.1.0-windows-x64.zip from Releases. Unzip it and run proxyline-gui.exe. No installer and no VC++ runtime needed.

Build from source (Windows, Linux, macOS)

You need Rust 1.85 or newer (edition 2024).

git clone https://github.com/ChinJow/ProxyLine.git
cd ProxyLine
cargo build --release

This builds two programs in target/release/:

  • proxyline-gui: the desktop app
  • proxyline: the CLI and terminal UI

On Linux the GUI also needs the usual desktop libraries (fontconfig, xkbcommon, Wayland or X11 headers).

Use it

  1. 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
    
  2. Import them and start the engine:

    proxyline import proxies.txt
    proxyline run
  3. 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.

Three ways to drive it

The GUI, TUI and CLI share one config and one engine. Start the engine in one, then control it from another.

GUI: proxyline-gui

Dashboard, Proxies, Ports & Pools, Rules, Logs and Settings. If an engine is already running, the GUI attaches to it.

TUI: proxyline tui

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

CLI: proxyline

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.

Configuration

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"

Split tunnel (optional)

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.

How it works

 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.

Development

cargo test --workspace
cargo clippy --workspace --all-targets -- -D warnings

Two tests make sure every engine operation has both a GUI control and a TUI key, so the front ends stay in sync.

Third-party

Disclaimer

ProxyLine is a networking tool. Use it only with proxies and networks you are allowed to use.

License

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

About

Proxy bridge & rotator in Rust: turn authenticated HTTP/SOCKS5 proxies (user:pass@ip:port) into local no-auth ports, 1:1 or rotating. GUI + TUI + CLI, health checks, live dashboard, split tunnel.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages