Code Monkey home page Code Monkey logo

flora_pac's Introduction

Flora PAC

A PAC(Proxy auto-config) file generator with fetched China IP range, which helps walk around GFW.

Inspired by https://github.com/fivesheep/chnroutes .

Installation

$ git clone https://github.com/Leask/Flora_Pac.git

Usage

$ ./flora_pac -h
usage: flora_pac [-h] [-x [PROXY]] [-p [PORT]]

Generate proxy auto-config rules.

optional arguments:
  -h, --help            show this help message and exit
  -x [PROXY], --proxy [PROXY]
                        Proxy Server, examples:
                            SOCKS5 127.0.0.1:8964;
                            SOCKS 127.0.0.1:8964;
                            PROXY 127.0.0.1:6489
  -p [PORT], --port [PORT]
                        Pac Server Port [OPTIONAL], examples: 8970
  • Run as a HTTP PAC server:
$ ./flora_pac -x 'SOCKS5 127.0.0.1:8964; SOCKS 127.0.0.1:8964; DIRECT' -p 8970

PAC Server demo on Mac

  • [NEW] Use it directly from official host:
@ Get PAC file for proxy 'SOCKS 127.0.0.1:8964':
$ curl http://flora.leaskh.com/pac?proxy=SOCKS%20127.0.0.1%3A8964
--- --- --- --- --- --- ---
@ Get PAC file for proxy 'SOCKS5 127.0.0.1:8964':
$ curl http://flora.leaskh.com/pac?proxy=SOCKS5%20127.0.0.1%3A8964
--- --- --- --- --- --- ---
@ Get PAC file for proxy 'HTTP 127.0.0.1:6489':
$ curl http://flora.leaskh.com/pac?proxy=PROXY%20127.0.0.1%3A6489
--- --- --- --- --- --- ---
@ A fallback demo from 'SOCKS5 127.0.0.1:8964' to 'SOCKS 127.0.0.1:8964':
$ curl http://flora.leaskh.com/pac?proxy=SOCKS5%20127.0.0.1%3A8964%3B%20SOCKS%20127.0.0.1%3A8964

More help: http://www.leaskh.com/blog/2013/10/30/测试为-flora_pac-提供-http-host/

Get help

See also

flora_pac's People

Contributors

leask avatar forresty avatar googollee avatar yalehuang avatar 013231 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.