Linux command
chisel 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start server
chisel server --port [8080]
Start server with authentication
chisel server --authfile [users.json]
Connect client with port forward
chisel client [server:8080] [local:3000:remote:80]
Reverse tunnel
chisel client [server:8080] R:[remote:8001:local:80]
SOCKS5 proxy
chisel client [server:8080] socks
Connect via HTTPS
chisel client https://[server] [8080:localhost:80]
说明
chisel is a fast TCP/UDP tunnel transported over HTTP and secured via SSH. A single executable contains both client and server functionality. It uses WebSockets to multiplex connections, allowing multiple tunnels through a single HTTP connection. The tool is useful for traversing firewalls, accessing services behind NAT, and creating reverse tunnels. It supports forward and reverse port forwarding as well as SOCKS5 proxy mode. Authentication can be configured with username/password pairs or an authentication file. Written in Go.
FAQ
What is the chisel command used for?
chisel is a fast TCP/UDP tunnel transported over HTTP and secured via SSH. A single executable contains both client and server functionality. It uses WebSockets to multiplex connections, allowing multiple tunnels through a single HTTP connection. The tool is useful for traversing firewalls, accessing services behind NAT, and creating reverse tunnels. It supports forward and reverse port forwarding as well as SOCKS5 proxy mode. Authentication can be configured with username/password pairs or an authentication file. Written in Go.
How do I run a basic chisel example?
Run `chisel server --port [8080]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more chisel examples?
This page includes 6 examples for chisel, plus related commands for nearby Linux tasks.