https://github.com/alshdavid-graveyard/simple-port-forward
https://github.com/alshdavid-graveyard/simple-port-forward
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/alshdavid-graveyard/simple-port-forward
- Owner: alshdavid
- License: mit
- Created: 2025-01-29T09:24:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-29T10:23:36.000Z (over 1 year ago)
- Last Synced: 2025-01-29T10:28:14.021Z (over 1 year ago)
- Language: Rust
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-port-forward:
Simple port forward service
## Usage
Add a config `spf.toml`
```toml
[[TCP]]
target = "192.168.1.10:8080" # Target service
bind = "0.0.0.0:8081" # Local address to forward from
# TODO
[[UDP]]
target = "localhost:8080"
bind = "0.0.0.0:8081"
# TODO
[[HTTP]]
target = "http://192.168.1.10:3000"
bind = "0.0.0.0:3000"
request_path = "/foo/*"
destination_path = "/*"
# TODO
[[HTTP]]
domains = ["foo.localhost"]
target = "http://192.168.1.10:3000"
bind = "0.0.0.0:3000"
```
```
simple-port-forward -c ./spf.toml
```