Tunnel System V4 - Cloudflare Workers based tunnel system
Project description
Tunnel V4
A modern tunnel system built on Cloudflare Workers and Durable Objects.
Features
- 🚀 Remote Terminal - SSH-like terminal access to your servers
- 📡 SOCKS5 Proxy - Secure proxy through your nodes
- ⚡ Command Execution - Run commands remotely
- 🔒 Secure - End-to-end encrypted connections
- 🌍 Global - Powered by Cloudflare's edge network
Installation
pip install mp-tunnel
Quick Start
Start Agent on Your Server
# Basic usage
tunnel agent --id my-server @all
# With custom tags
tunnel agent --id my-server --tags env=prod,region=us @all
# Specific services only
tunnel agent --id my-server @term @socks5
Use CLI to Connect
# List nodes
tunnel list
# Remote terminal
tunnel term --node my-server
# Execute command
tunnel exec --node my-server "uptime"
# SOCKS5 proxy
tunnel socks5 --node my-server --port 1080
Configuration
Environment Variables
TUNNEL_WORKER_URL- Override default Worker URLTUNNEL_ENV- Environment (dev/prod)TUNNEL_DEBUG- Enable debug logging
Custom Worker URL
export TUNNEL_WORKER_URL="wss://your-worker.workers.dev"
tunnel agent --id my-server @all
Services
Built-in Services
@all- All services (exec, term, socks5)@exec- Remote command execution@term- Remote terminal@socks5- SOCKS5 proxy
Port Forwarding
# Forward local service
tunnel agent --id my-server myapi:8080
Development
# Clone repository
git clone https://github.com/yourusername/tunnel-v4.git
cd tunnel-v4
# Install in development mode
export TUNNEL_DEV=1
pip install -e .
# Run agent (development uses tunnel4 command)
tunnel4 agent --id test @all
License
MIT License
Links
- Documentation: https://github.com/yourusername/tunnel-v4/docs
- Issues: https://github.com/yourusername/tunnel-v4/issues
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mp_tunnel-4.0.12.tar.gz
(50.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mp_tunnel-4.0.12.tar.gz.
File metadata
- Download URL: mp_tunnel-4.0.12.tar.gz
- Upload date:
- Size: 50.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4821a0eeb2b401c26c91bba09a92d168b0b1622dfce4a41a942b5dd718d03b5
|
|
| MD5 |
e8949eb6e5d9fe7ff7194a332244b20b
|
|
| BLAKE2b-256 |
e9de46dd869976d5c0931973a25fefbfa3e2c2ffa95e7aa151b5c4582436dba1
|
File details
Details for the file mp_tunnel-4.0.12-py3-none-any.whl.
File metadata
- Download URL: mp_tunnel-4.0.12-py3-none-any.whl
- Upload date:
- Size: 67.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0380118f93455921a355467f75b76a6f890a36ffcec844d111f3ad568d1293a
|
|
| MD5 |
327843f1e1b208cbbcecad7c472f9750
|
|
| BLAKE2b-256 |
7be418bdb71b9a6e7131cfb3c7cb4a91c0a483bb4c56c275093f1d9fd66de2ae
|