GithubHelp home page GithubHelp logo

proxy_2_http_proxy's Introduction

proxy_2_http_proxy

usage: proxy_2_http_proxy.py [-h] [-l LOCAL_IP_PORT] -c CLIENT_IP -p PROXY_IP_PORT

proxy_2_http_proxy: forward http(s) to http_proxy server. [email protected]

  Client_PC ---->  Laptop     ---->     HTTP_PROXY    ---->   Internet
   10.0.0.2        20.0.0.2             30.0.0.2:8888
-c 10.0.0.2      -l 0.0.0.0:1234     -p 30.0.0.2:8888

EXAMPLE: python proxy_2_http_proxy.py -c 10.0.0.2 -p 30.0.0.2:8888
On client_PC:
export http_proxy=http://20.0.0.2:1234
If HTTP_PROXY need password authentication, please put your password on client_PC as example:
export http_proxy=http://username:[email protected]:1234

HTTPS cert issue, please visit https://github.com/qin-neo/proxy_2_http_proxy

optional arguments:
  -h, --help        show this help message and exit
  -l LOCAL_IP_PORT  local IP Port for client visit, default 0.0.0.0:1234
  -c CLIENT_IP      client IP, example: 10.0.0.2,10.0.0.3
  -p PROXY_IP_PORT  The Real HTTP_PROXY IP:PORT, example:30.0.0.2:8888

HTTPS cert issue, please visit https://github.com/qin-neo/proxy_2_http_proxy

On Client, if met SSL: CERTIFICATE_VERIFY_FAILED or simular error,

Please import HTTP_PROXY certificate into client OS.

  1. Find root ca. On Windows, the root path is:

iexplore -> Internet选项 -> 内容 -> 证书 -> 受信任的根证书颁发机构 -> (your http_proxy cert)

  1. Export it, then copy to Client.
  2. Import Client. On Linux, the cert should be .crt format.
openssl x509 -inform DER -in http_proxy_cert.cer -out http_proxy_cert.crt
yum install ca-certificates -y
cp http_proxy_cert.crt /etc/pki/ca-trust/source/anchors/
update-ca-trust

proxy_2_http_proxy's People

Contributors

qin-neo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.