Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robberphex/sockfwd
Forward between sockets
https://github.com/robberphex/sockfwd
Last synced: 3 months ago
JSON representation
Forward between sockets
- Host: GitHub
- URL: https://github.com/robberphex/sockfwd
- Owner: robberphex
- Created: 2021-10-18T04:52:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-09T16:43:54.000Z (about 3 years ago)
- Last Synced: 2024-10-31T04:50:33.840Z (3 months ago)
- Language: Go
- Size: 24.4 KB
- Stars: 8
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.en.md
Awesome Lists containing this project
README
# sockfwd
Forward data between sockets.
i.e. sockfwd can export unix socket via tcp port, and can export tcp socket which listen 127.0.0.1 via 0.0.0.0 host.
## Usage
```
Usage:
sockfwd [flags]Flags:
-d, --destination string destination address, data will send to this address.
-s, --source string source address, which will accept connection at this address.
-q, --quiet quiet mode.
```## Example
Export local docker to network:`./sockfwd -s tcp://127.0.0.1:8090 -d unix:///var/run/docker.sock`.
Export `127.0.0.1:8080` to `0.0.0.0:8090`: `./sockfwd -s tcp://127.0.0.1:8090 -d unix://127.0.0.1:8090`.