Linux command
zrok 命令
趣味
复制后可按需替换文件名、目录或参数。
常用示例
Share local HTTP service publicly
zrok share public localhost:[port]
Share with reserved subdomain
zrok reserve public localhost:[port] --unique-name [subdomain]
Share privately (requires zrok access)
zrok share private localhost:[port]
Access private share
zrok access private [share_token]
Copy files to share
zrok copy [file] [share_token]:[remote_path]
说明
zrok is a next-generation sharing platform built on OpenZiti, providing secure tunneling for HTTP services, files, and arbitrary TCP/UDP traffic. Public shares create internet-accessible URLs pointing to local services. Private shares require an access token and go through encrypted Ziti network overlay, providing zero-trust security. zrok can share: - HTTP/HTTPS services (web apps, APIs) - Static files (file server mode) - Raw TCP/UDP endpoints Unlike simple tunnels, zrok's private shares never expose traffic to the public internet - all traffic stays within the zero-trust overlay network.
FAQ
What is the zrok command used for?
zrok is a next-generation sharing platform built on OpenZiti, providing secure tunneling for HTTP services, files, and arbitrary TCP/UDP traffic. Public shares create internet-accessible URLs pointing to local services. Private shares require an access token and go through encrypted Ziti network overlay, providing zero-trust security. zrok can share: - HTTP/HTTPS services (web apps, APIs) - Static files (file server mode) - Raw TCP/UDP endpoints Unlike simple tunnels, zrok's private shares never expose traffic to the public internet - all traffic stays within the zero-trust overlay network.
How do I run a basic zrok example?
Run `zrok share public localhost:[port]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more zrok examples?
This page includes 5 examples for zrok, plus related commands for nearby Linux tasks.