Giter Site home page Giter Site logo

s5proxy-1's Introduction

Socks5 proxy

Intro

Illustrate

+------------+            +--------------+          
| local app  |  <=======> | proxy client | <#######
+------------+            +--------------+        #
                                                  #
                                                  #
                                                  # encrypted data(ssl)
                                                  #
                                                  #
+-------------+            +--------------+       #
| target host |  <=======> | proxy server |  <#####
+-------------+            +--------------+         
  1. proxy client is running at your local computer.

    It receive your app (like a browser) request, encrypt the data, send to proxy server

  2. proxy server receive the request from proxy client, decrypt it, and sent to the target host.

  3. proxy server got the response from target host, then encrypt response, send back to proxy client.

  4. proxy client decrypt response received from proxy server, and send to local app.

  5. the circle done.

Usage

Server side

  1. cp config.ini.example config.ini,

    config.ini

    • openssl genrsa -out privkey.pem 2048
    • openssl req -new -x509 -key privkey.pem -out cacert.pem -days 1095
    • server. Server ip
    • server_port. Default 7070
    • local. Client ip, default 127.0.0.1
    • local_port. Defalut 1080
    • certfile. Default cacert.pem
    • keyfile. Defalut privkey.pem
  2. python server.py

Local side

  1. use same of server config file

  2. python client.py

  3. Done

Now, you can set your apps (e.g. Browser) Using socks5 proxy.

IP = 127.0.0.1 PORT = 1080 (if not changed in the config.cfg)

TODO

  • Use SSL encrypt the data

s5proxy-1's People

Contributors

lyncir avatar

Watchers

 avatar  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.