nwtgck / yamux-cli

Multiplexing TCP and UDP using yamux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Multiplexing TCP and UDP using yamux

License:MIT License


Languages

Language:Go 100.0%