Skip to main content

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: 0 = no HTTP port; TCP-only mode with --tcp-ports)
-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 -k and --tcp-ports)
  • SSH ProxyCommand: Use aitun ssh-proxy host.t.aitun.cc 22 to wrap SSH in TLS for subdomain routing

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aitun-4.9.17.tar.gz (28.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aitun-4.9.17-py3-none-any.whl (28.5 MB view details)

Uploaded Python 3

File details

Details for the file aitun-4.9.17.tar.gz.

File metadata

  • Download URL: aitun-4.9.17.tar.gz
  • Upload date:
  • Size: 28.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for aitun-4.9.17.tar.gz
Algorithm Hash digest
SHA256 9ba094eca5e05d263d838c908485354d64d09398d53da6e0537e04c8de72cbf3
MD5 aba067e9c0bfd2f043a64e1c7fac386d
BLAKE2b-256 27c439aa9ff71d28fd5174319358c6fedf58f88f99629e137ce3e3307c593208

See more details on using hashes here.

File details

Details for the file aitun-4.9.17-py3-none-any.whl.

File metadata

  • Download URL: aitun-4.9.17-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.12.13

File hashes

Hashes for aitun-4.9.17-py3-none-any.whl
Algorithm Hash digest
SHA256 06b1028b763e70251c0ca6bad5b5951036d34abcc5573b75185177d995b56417
MD5 1f968d4bb492b9203291424ae0c4cb3c
BLAKE2b-256 b62b32b2b0e77b2e61bf52bc31d47d2e1f7869f2d65519fda9dd0c684164dc20

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page