Skip to content

kami2k1/tunnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kami Tunnel

TCP/UDP Tunnel - Không giới hạn traffic
Zero-copy & KCP UDP tunnel

Telegram


📖 Giới thiệu

Kami Tunnel là công cụ tạo đường hầm (tunnel) giúp bạn public port nội bộ ra Internet nhanh chóng, an toàn và đơn giản — tương tự ngrok nhưng gọn nhẹ hơn.

✨ Tính năng chính

  • 🚀 TCP/UDP Tunneling - Hỗ trợ cả hai giao thức
  • 📁 File Server - Chia sẻ file qua web với upload/download
  • 🔐 Xác thực bảo mật - Mật khẩu bảo vệ File Server
  • 📊 Giao diện TUI - Dashboard đẹp mắt với thống kê real-time
  • Zero-copy - Tối ưu hiệu suất với splice/KCP
  • 🔄 Auto reconnect - Tự động kết nối lại khi mất kết nối

📦 Tải xuống

Hệ điều hành Kiến trúc Download
Linux amd64 kami-tunnel-linux-amd64.tar.gz
Linux arm64 kami-tunnel-linux-arm64.tar.gz
Windows amd64 kami-tunnel-windows-amd64.tar.gz
Windows arm64 kami-tunnel-windows-arm64.tar.gz
macOS amd64 kami-tunnel-darwin-amd64.tar.gz
macOS arm64 kami-tunnel-darwin-arm64.tar.gz
Android arm64 kami-tunnel-android-arm64.tar.gz

🚀 Cài đặt nhanh

Linux / macOS

tar -xzf kami-tunnel-linux-amd64.tar.gz
chmod +x kami-tunnel
./kami-tunnel 80

Windows

tar -xzf kami-tunnel-windows-amd64.tar.gz
kami-tunnel.exe 80

Android (Termux)

tar -xzf kami-tunnel-android-arm64.tar.gz
chmod +x kami-tunnel
./kami-tunnel 80

⚙️ Các tùy chọn (Flags)

Flag Mô tả Mặc định
--port Port nội bộ cần tunnel 80
--host Host nội bộ 127.0.0.1
--proto Giao thức (tcp/udp) tcp
--key Key tunnel (giữ nguyên port remote) random
--server Địa chỉ server mặc định
--files Bật chế độ File Server false
--upload Cho phép upload file (cần --files) false
--delete Cho phép xóa file (cần --files) false
--pass Mật khẩu File Server kami123

📁 Chế độ File Server

Chia sẻ file qua web với giao diện đẹp và bảo mật.

Bật File Server

./kami-tunnel --files

Bật với Upload + Delete

./kami-tunnel --files --upload --delete

Đặt mật khẩu tùy chỉnh

./kami-tunnel --files --upload --pass "matkhaucuaban"

Tính năng File Server

  • 📂 Duyệt thư mục - Navigate qua các folder
  • ⬆️ Upload file - Kéo thả hoặc chọn file (chunked upload)
  • ⬇️ Download - Tải file đơn lẻ hoặc nhiều file (ZIP)
  • 🗑️ Xóa file - Xóa an toàn với xác nhận
  • 📁 Tạo thư mục - Tạo folder mới
  • 🔐 Bảo mật - Yêu cầu đăng nhập với mật khẩu

Mật khẩu mặc định: kami123


🎮 Ví dụ sử dụng

Tunnel port 80 (Web server)

./kami-tunnel 80

Tunnel port 22 (SSH)

./kami-tunnel 22

Tunnel UDP (Minecraft PE)

./kami-tunnel --proto udp --host 127.0.0.1 19132

Giữ nguyên port với key

./kami-tunnel --key mykey123 80

File Server đầy đủ tính năng

./kami-tunnel --files --upload --delete --pass "secret123"

📊 Giao diện TUI

Khi chạy, bạn sẽ thấy giao diện dashboard với:

  • Status - Trạng thái kết nối
  • Public - URL public để truy cập
  • Traffic - Thống kê upload/download real-time
  • Ping - Độ trễ TCP/UDP
  • Logs - Log hoạt động

Phím tắt:

  • q hoặc Ctrl+C - Thoát
  • Esc - Thoát

⚠️ Lưu ý quan trọng

  1. Minecraft PE: Bắt buộc thêm --host 127.0.0.1 --proto udp
  2. Rate limit: Vui lòng tắt rate limit cho 127.0.0.1
  3. Firewall: Đảm bảo port không bị chặn bởi firewall

🔗 Liên hệ & Hỗ trợ


📜 Giấy phép

MIT License © 2025 - Kami2k1 (Quang Dev)