| macOS / Linux | curl -fsSL https://vnrok.com/install.sh | sh |
| Windows (trình cài đặt .exe) | Tải vnrok-setup_windows_amd64.exe (ARM: arm64) và chạy — không cần quyền Administrator, tự thêm vnrok vào PATH. Mở CMD hoặc PowerShell mới rồi gõ vnrok. Gỡ cài đặt: chạy lại với tham số /uninstall. |
| Windows (PowerShell) | irm https://vnrok.com/install.ps1 | iex |
| Server tự host | curl -fsSL https://vnrok.com/install.sh | sh -s -- --server |
$ vnrok login # prints a link, approve it in the browser $ vnrok http 3000 # https://<name>.<node>.vnrok.com → localhost:3000 $ vnrok tcp 22 # tcp://host:port → localhost:22
vnrok | Không tham số: hỏi từng bước giao thức, địa chỉ/cổng và tên công khai (gói trả phí chọn từ danh sách subdomain/tên miền của bạn). Cùng địa chỉ local sẽ được giữ cùng subdomain; thêm --new-subdomain để cấp tên mới. |
vnrok http <cổng> | Tunnel HTTP. Cờ: --subdomain --auth user:pass|@bí-mật --ip-policy tên --url --allow-ip --ttl --domain --tls-passthrough --node --region |
vnrok tcp <cổng> | Tunnel TCP (SSH, cơ sở dữ liệu…) |
vnrok nodes | Danh sách node, ping đo được, tải và node sẽ được chọn |
vnrok authtoken <token> | Dùng authtoken tạo trên web (CI/CD) |
vnrok remote add|list|test | Quản lý server tự host |
vnrok telemetry | Xem/tắt sự kiện kết nối gửi về tài khoản của bạn |
vnrok update | Cập nhật CLI (xác minh chữ ký Ed25519 và SHA-256) |
$ vnrokserver init --domain tunnel.example.com $ vnrokserver token add --name laptop --expires 90d $ vnrokserver run # on your machine $ vnrok remote add home --server tunnel.example.com:7000 --token <token> $ vnrok http 3000 --remote home
Chỉ có IP, không có domain? Dùng --mode port khi init. Muốn xem số liệu trên web: vnrokserver link (tùy chọn, bạn kiểm soát mức dữ liệu gửi đi).
Token chỉ lưu dạng băm; mọi kết nối dùng TLS 1.3; vnrok không lưu nội dung lưu lượng. Báo cáo lỗ hổng: security.txt.