Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.11 KB

README.md

File metadata and controls

59 lines (41 loc) · 1.11 KB

yamux-cli

CI

Install for macOS

brew install nwtgck/yamux-cli/yamux

Install for Ubuntu

wget https://github.com/nwtgck/yamux-cli/releases/download/v0.5.0/yamux-0.5.0-linux-amd64.deb
sudo dpkg -i yamux-0.5.0-linux-amd64.deb

Get more executables in the releases for you environment.

Usage

TCP

... | yamux localhost 80 | ...
... | yamux -l 8080 | ...

Unix-domain socket

... | yamux -U /unix/domain/socket/path | ...
... | yamux -U -l /unix/domain/socket/path | ...

UDP

... | yamux -u 1.1.1.1 53 | ...
... | yamux -ul 1053 | ...

Complete example

Here is a complete example, but not useful. This is forwarding local 80 port to local 8080 port.

mkfifo my_pipe
cat my_pipe | yamux localhost 80 | yamux -l 8080 > ./my_pipe 

An expected usage of this CLI is to combine network tools and transport a remote port.