tldr/pages/common/chisel.md

29 lines
985 B
Markdown
Raw Normal View History

2019-10-08 07:16:02 +01:00
# chisel
> Create TCP tunnels. Includes both client and server.
2019-10-08 07:16:02 +01:00
> More information: <https://github.com/jpillora/chisel>.
- Run a Chisel server:
2019-10-08 07:16:02 +01:00
`chisel server`
- Run a Chisel server listening to a specific port:
2019-10-08 07:16:02 +01:00
`chisel server -p {{server_port}}`
- Run a chisel server that accepts authenticated connections using username and password:
2019-10-08 07:16:02 +01:00
`chisel server --auth {{username}}:{{password}}`
- Connect to a Chisel server and tunnel a specific port to a remote server and port:
2019-10-08 07:16:02 +01:00
`chisel client {{server_ip}}:{{server_port}} {{local_port}}:{{remote_server}}:{{remote_port}}`
- Connect to a Chisel server and tunnel a specific host and port to a remote server and port:
2019-10-08 07:16:02 +01:00
`chisel client {{server_ip}}:{{server_port}} {{local_host}}:{{local_port}}:{{remote_server}}:{{remote_port}}`
- Connect to a Chisel server using username and password authentication:
2019-10-08 07:16:02 +01:00
`chisel client --auth {{username}}:{{password}} {{server_ip}}:{{server_port}} {{local_port}}:{{remote_server}}:{{remote_port}}`