Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arunk140/zipline
Quick TCP (..and UDP) Forwarding using Go Lang
https://github.com/arunk140/zipline
go golang network proxy self-hosted server tcp
Last synced: about 2 months ago
JSON representation
Quick TCP (..and UDP) Forwarding using Go Lang
- Host: GitHub
- URL: https://github.com/arunk140/zipline
- Owner: arunk140
- License: apache-2.0
- Created: 2023-07-13T07:58:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-13T08:19:21.000Z (over 1 year ago)
- Last Synced: 2023-08-01T22:16:29.164Z (over 1 year ago)
- Topics: go, golang, network, proxy, self-hosted, server, tcp
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zipline
## Quick TCP (...and UDP) Forwarding using Go LangTry
```sh
go run . -config example.json -vars example.vars.json
```Output
```
2023/07/13 20:07:57 SSH Server 1 Proxy Running on :2222 Forwarding to 10.144.2.3:22 Type:tcp
2023/07/13 20:07:57 Secure Web Server X Proxy Running on :443 Forwarding to 10.144.2.4:3002 Type:tcp
```example.json
```json
{
"silent": false,
"disable": false,
"forward": [
{
"disable": false,
"src": ":2222",
"label": "SSH Server 1",
"dst": "{{serverip}}:22"
},
{
"type": "https",
"label": "Secure Web Server X",
"dst": "10.144.2.4:3002"
}
]
}
```example.vars.json
```json
{
"serverip": "10.144.2.3"
}
```---
Build
``` sh
go build .
```Usage
```sh
❯ ./zipline -h
Usage of ./zipline:
-config string
Path to JSON config for Proxies.
See example.json for format. (default "proxy.json")
-vars string
Path to JSON config for Variables, (Optional)
File Format { "key1": "value1", "key2": "value2" ...}
See example.vars.json for format.```