Tiny utility for relaying TCP traffic. This tool is useful for proxying raw TCP traffic to navigate firewalls or bridge networks.
git clone https://github.com/oddity-ai/netrelay.git && \
cd netrelay && \
cargo build --release
The easiest way to install netrelay
is to put in your path somewhere, for example:
cp target/release/netrelay ~/.local/bin/netrelay
netrelay
accepts two arguments: the inbound address to bind to, and the outbound address to forward traffic to. For both, use the format: <address>:<port>
.
For example, if you want to relay all incoming traffic on port 8080 to a different host in the network with IP address 10.0.0.100:
netrelay 0.0.0.0:8080 10.0.0.100:8080
To have netrelay
run in the background, you can use screen
:
screen -dmS netrelay -- sh -c 'netrelay 0.0.0.0:8080 10.0.0.100:8080'
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.