Giter Site home page Giter Site logo

ozgurctk / proxytor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dmitry575/proxytor

0.0 0.0 0.0 35 KB

HTTP proxy using only one port and request moved through the many tors instants

Shell 9.36% C# 87.98% Batchfile 0.77% Dockerfile 1.89%

proxytor's Introduction

Http proxy server via Tors

The Tor server uses socks 5 as type of proxy, and if you want to use it as http-proxy you need to camber the request. ProxyTor just receives an http request and redirects it through the tors instances. At what a lot of tor servers are raised and each new request coming to the http proxy is redirected through different tor instances

Setting example

All settings can be made through the docker-compose.yml file

  tor_servers:
    image: tors_image:latest
    build:
      context: tors/
      dockerfile: Dockerfile
    environment:
      - TOR_INSTANCES=30
      - TOR_PORT_BASE=9000
    ports:
      - 9000-9029:9000-9029

  proxy_tor:
    build:
      context: src/
      dockerfile: Dockerfile
    environment:
      - ASPNETCORE_Logging__LogLevel__Default=Debug
      - ASPNETCORE_ENVIRONMENT=Development
      - ASPNETCORE_Port=5008
      - ASPNETCORE_Tor__hostname=tor_servers
      - ASPNETCORE_portFrom=9000
      - ASPNETCORE_portTo=9029
    depends_on:
      - tor_servers
    ports:
      - 5008:5008

TOR_INSTANCES - number of instances to start TOR_PORT_BASE - port number from which the launch starts

When changing the TOR_INSTANCES and TOR_PORT_BASE parameters, don't forget to fix the section:

    ports:
      - 9000-9029:9000-9029

ASPNETCORE_Port - port number on which the HTTP proxy will work ASPNETCORE_portFrom - initial server port ASPNETCORE_portTo - destination port of servers

Run in docker

If you are running on windows, you only need to run the docker-proxy.cmd file, for other operating systems using docker-compose:

docker-compose -f docker-compose.yml build proxy_tor
docker-compose -f docker-compose.yml up -d

You can use curl to check if it works

curl -k -x http://localhost:5008 https://api.ipify.org?format=json

The result will be tor IP address. If you run it several times, then the IP addresses will change.

proxytor's People

Contributors

dmitry575 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.