This is a dynamic network address translation (DNAT) tool based on Rust and Tokio asynchronous runtime library.
Clone the repository and build the project:
git clone https://github.com/crafcat7/rdnat.git
cd rdnat
cargo build --release
rdnat [options] <username> <password>
Based on the HTTP, the function will start a proxy server. It is to monitor the port specified.
- Start the proxy with a specified username and password, using the default port (8000):
./rdnat -a user password
- Start the proxy, specifying port 8001 with a username and password:
./rdnat -p 8001 -a user password
- Start the proxy, specifying port 8001 with a username and default password (anonymous):
./rdnat -p 8001 -a user
- Start the proxy with no username and no password, using the default port (8000):
./rdnat
- Start the proxy and log output to rdnat.log:
./rdnat -d