Sign inSign up

noma4i/rotating-proxy-ng-plus

By noma4i

•Updated 3 months ago

Tor proxy

Image
0

478

noma4i/rotating-proxy-ng-plus repository overview

⁠rotating-proxy-ng-plus

Docker Pulls

A lightweight, fully automated rotating Tor proxy solution with intelligent load balancing and automatic failover.

This is a completely rewritten fork of the original repo https://github.com/hackera10/rotating-proxy-ng-plus⁠, designed to solve issues with old dependencies, memory leaks, and unreliable process management.

⁠Quick Start

# Clone and start
git clone https://github.com/noma4i/rotating-proxy-ng-plus.git
cd rotating-proxy-ng-plus
docker-compose up -d

# Test the proxy
curl --proxy 127.0.0.1:5566 https://api.my-ip.io/v2/ip.json

# View HAProxy statistics
open http://127.0.0.1:4444/haproxy?stats
⁠Using Docker Run
# Start with default 10 Tor instances
docker run -d -p 5566:5566 -p 4444:4444 noma4i/rotating-proxy-ng-plus

# Start with custom number of instances
docker run -d -p 5566:5566 -p 4444:4444 --env tors=20 noma4i/rotating-proxy-ng-plus

# With debug logging
docker run -d -p 5566:5566 -p 4444:4444 --env DEBUG=1 noma4i/rotating-proxy-ng-plus
⁠Build from Source
# Build the container
docker build -t rotating-proxy-ng-plus .

# Run it
docker run -d -p 5566:5566 -p 4444:4444 rotating-proxy-ng-plus

⁠Configurationdd

⁠Environment Variables
VariableDefaultDescription
tors10Number of Tor instances to run
DEBUG0Enable debug logging (1 to enable)
TEST_URLhttps://icanhazip.comURL for proxy health checks
PROXY_TIMEOUT5Timeout for proxy tests (seconds)
⁠Example with Custom Settings
docker run -d \
  -p 5566:5566 \
  -p 4444:4444 \
  --env tors=15 \
  --env DEBUG=1 \
  --env PROXY_TIMEOUT=10 \
  noma4i/rotating-proxy-ng-plus
⁠HAProxy Web Statistics

Access the HAProxy statistics dashboard at: http://127.0.0.1:4444/haproxy?stats⁠

⁠Testing Proxy Rotation
# Test multiple requests to see different IPs
for i in {1..5}; do
  curl --proxy 127.0.0.1:5566 -s https://api.my-ip.io/v2/ip.json | jq '.ip'
done

Tag summary

Content type

Image

Digest

sha256:51fa118ef…

Size

34.6 MB

Last updated

3 months ago

docker pull noma4i/rotating-proxy-ng-plus