Skip to content

Commit

Permalink
doc: README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AH-dark committed Sep 6, 2024
1 parent 9a5598c commit 1b8847a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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.

0 comments on commit 1b8847a

Please sign in to comment.