Skip to content

ahdark-services/layer4-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

[[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:

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 file for details.

About

A simple layer 4 proxy implemented in Rust

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages