Crates.io | tor_proxy |
lib.rs | tor_proxy |
version | 0.1.2 |
source | src |
created_at | 2024-02-23 13:27:40.846929 |
updated_at | 2024-02-23 13:32:55.953741 |
description | Tor Proxy is a simple proxy server implemented in Rust, designed to act as a middleman between clients and the Tor network. It allows users to route their network traffic through the Tor network for increased privacy and anonymity. |
homepage | |
repository | |
max_upload_size | |
id | 1150566 |
size | 7,365 |
Tor Proxy is a simple proxy server implemented in Rust, designed to act as a middleman between clients and the Tor network. It allows users to route their network traffic through the Tor network for increased privacy and anonymity.
To use the Tor Proxy crate in your Rust project, add it as a dependency in your Cargo.toml
file:
[dependencies]
proxy_tor = "0.1.2"
use proxy_tor::run_proxy_server;
fn main() {
// Run the proxy server with default configuration
run_proxy_server("127.0.0.1:8080", "your_target_server_address:port");
}
If you don't have a server to proxy requests to, you can still use the Tor proxy locally for testing purposes. You can specify a local address and port for testing and demonstration purposes:
use proxy_tor::run_proxy_server;
fn main() {
// Run the proxy server with default configuration
run_proxy_server("127.0.0.1:8080", "127.0.0.1:8000");
}
If you have an Amazon Virtual Private Server (VPS), you can use it as the target server for your Tor proxy:
use proxy_tor::run_proxy_server;
fn main() {
// Run the proxy server with default configuration
run_proxy_server("127.0.0.1:8080", "your_vps_address:port");
}