Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nwtgck/yamux-cli
TCP and UDP multiplexer using yamux
https://github.com/nwtgck/yamux-cli
cli multiplexer tcp udp unix-socket yamux
Last synced: 2 months ago
JSON representation
TCP and UDP multiplexer using yamux
- Host: GitHub
- URL: https://github.com/nwtgck/yamux-cli
- Owner: nwtgck
- License: mit
- Created: 2021-05-03T04:47:12.000Z (over 3 years ago)
- Default Branch: develop
- Last Pushed: 2024-10-18T00:39:25.000Z (3 months ago)
- Last Synced: 2024-10-20T11:59:45.697Z (3 months ago)
- Topics: cli, multiplexer, tcp, udp, unix-socket, yamux
- Language: Go
- Homepage:
- Size: 101 KB
- Stars: 17
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# yamux-cli
[![CI](https://github.com/nwtgck/yamux-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/nwtgck/yamux-cli/actions/workflows/ci.yml)## Install for macOS
```bash
brew install nwtgck/yamux-cli/yamux
```## Install for Ubuntu
```bash
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](https://github.com/nwtgck/yamux-cli/releases) for you environment.
## Usage
### TCP
```bash
... | yamux localhost 80 | ...
``````bash
... | yamux -l 8080 | ...
```### Unix-domain socket
```bash
... | yamux -U /unix/domain/socket/path | ...
``````bash
... | yamux -U -l /unix/domain/socket/path | ...
```### UDP
```bash
... | yamux -u 1.1.1.1 53 | ...
``````bash
... | yamux -ul 1053 | ...
```## Complete example
Here is a complete example, but not useful. This is forwarding local 80 port to local 8080 port.```bash
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.