AiTun - Secure tunnel service that exposes local servers to the public internet, supporting IPv6/IPv4 P2P and relay modes
Project description
AiTun
AiTun - Secure tunnel service that exposes local servers to the public internet, supporting IPv6/IPv4 P2P and relay modes.
Installation
pip install aitun
Usage
# Quick start - expose local port 8080 (free tunnel, no sign-up)
aitun -p 8080
# With explicit server
aitun -s aitun.cc:6639 -p 8080
# With auth token (registered subdomain)
aitun -k YOUR_TOKEN -p 8080
# With TCP forwarding (SSH + MySQL)
aitun -k YOUR_TOKEN -p 8080 --tcp-ports 22,3306
# Run as daemon
aitun -p 80 --daemon
# Stop daemon
aitun --stop
CLI Flags
| Flag | Description |
|---|---|
-p PORT |
Local service port (default: 8080) |
-k TOKEN |
Auth token for registered subdomain (omit for free tunnel) |
-s SERVER |
Server address (default: aitun.cc:6639) |
--host HOST |
Local service address (default: localhost) |
--tcp-ports PORTS |
TCP forwarding ports, comma-separated (requires -k) |
--p2p |
Enable P2P direct connection (default: enabled) |
--no-p2p |
Disable P2P, force server relay mode |
--daemon |
Run as background daemon |
--stop |
Stop running daemon |
Modes
- Free Tunnel: Instant proxy URL like
aitun.cc/abc123(no sign-up, 24h validity) - Subdomain: Custom subdomain like
myapp.t.aitun.cc(HTTPS, requires sign-in) - Short Domain: Short subdomain like
myapp.aitun.cc(requires sign-in) - TCP Forwarding: Forward SSH, MySQL, etc. via SNI routing (requires
-kand--tcp-ports)
License
MIT
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
aitunnel-4.9.16.tar.gz
(28.4 MB
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
aitunnel-4.9.16-py3-none-any.whl
(28.5 MB
view details)
File details
Details for the file aitunnel-4.9.16.tar.gz.
File metadata
- Download URL: aitunnel-4.9.16.tar.gz
- Upload date:
- Size: 28.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b903e1bd7b77b5bb05038a3b838a226ce3104aa5ff65833d9c6e69cefb13e93
|
|
| MD5 |
dd430f7c556b965ade09fac3a5fa313c
|
|
| BLAKE2b-256 |
151e8c0cbfe9c2ad7f64251eca45705edaf78a15199256dff952095fedf376a6
|
File details
Details for the file aitunnel-4.9.16-py3-none-any.whl.
File metadata
- Download URL: aitunnel-4.9.16-py3-none-any.whl
- Upload date:
- Size: 28.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80476731449d743555d561bf7e896298deaa8e168b6c44d492971a2ea867d673
|
|
| MD5 |
59eb1b9c11beb2f9f0015b2dfe2a6662
|
|
| BLAKE2b-256 |
4fa034685093e423a5843c44ae06e0cf3544cee3be2aefc0b0504a9e119818bb
|