Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahdark-services/layer4-proxy
A simple layer 4 proxy implemented in Rust
https://github.com/ahdark-services/layer4-proxy
Last synced: about 1 month ago
JSON representation
A simple layer 4 proxy implemented in Rust
- Host: GitHub
- URL: https://github.com/ahdark-services/layer4-proxy
- Owner: ahdark-services
- License: mit
- Created: 2024-09-06T16:43:31.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-08T14:35:30.000Z (4 months ago)
- Last Synced: 2024-09-08T16:41:17.257Z (4 months ago)
- Language: Rust
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Layer 4 Proxy
A simple layer 4 proxy that forwards TCP & UDP connections to a remote server.
## Usage
Create a `config.toml` file in the root directory of the project with the following content:
```toml
[[forward]]
listen_host = "0.0.0.0"
listen_port = 8080
remote_host = "0.0.0.0"
remote_port = 8081[[forward]]
listen_host = "0.0.0.0"
listen_port = 8082
remote_host = "1.1.1.1"
remote_port = 80
```Run the proxy:
```sh
cargo build --release
chmod +x target/release/layer-4-proxy
./target/release/layer-4-proxy
```## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.