This project provides a Dockerized Tor proxy server that routes your internet traffic through the Tor network using a SOCKS5 proxy with DNS support.
- SOCKS5 proxy with DNS resolution through Tor
- Runs inside a Docker container for easy deployment
- No need to install Tor or configure it manually on your host
- Supports both HTTP and HTTPS traffic routing via SOCKS5
- Docker installed on your system
- Basic knowledge of Docker commands
- Clone the repository:
git clone https://github.com/yourusername/tor-proxy.git
- Navigate to the project directory:
cd tor-proxy
docker build -t tor-proxy .
docker run -d --name tor-proxy -p 9150:9150 -p 8853:8853 tor-proxy
- Port
9150
is for the SOCKS5 proxy - Port
8853
is for DNS resolution through Tor
Alpine is a minimal alternative to the default Debian-based image.
docker build -t tor-proxy:alpine -f Dockerfile.alpine .
docker run -d --name tor-proxy-alpine -p 9150:9150 -p 8853:8853 tor-proxy:alpine
Set your application's SOCKS5 proxy to localhost:9150
. DNS requests will be routed through Tor automatically via port 8853
.
You can customize the Tor configuration by modifying the torrc
file inside the container or by extending the Docker image.
Contributions are welcome! Feel free to open issues or submit pull requests.
This project is licensed under the MIT License.