A PAC(Proxy auto-config) file generator with fetched China IP range, which helps walk around GFW.
Inspired by https://github.com/fivesheep/chnroutes .
$ git clone https://github.com/Leask/Flora_Pac.git
$ ./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
- [NEW] Use it directly from official host:
@ Get PAC file for proxy 'SOCKS 127.0.0.1:8964': $ curl https://flora.leaskh.com/pac?proxy=SOCKS%20127.0.0.1%3A8964 --- --- --- --- --- --- --- @ Get PAC file for proxy 'SOCKS5 127.0.0.1:8964': $ curl https://flora.leaskh.com/pac?proxy=SOCKS5%20127.0.0.1%3A8964 --- --- --- --- --- --- --- @ Get PAC file for proxy 'HTTP 127.0.0.1:6489': $ curl https://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 https://flora.leaskh.com/pac?proxy=SOCKS5%20127.0.0.1%3A8964%3B%20SOCKS%20127.0.0.1%3A8964
More help: https://www.leaskh.com/blog/2013/10/30/测试为-flora_pac-提供-http-host/
- Email/iMsg/GTalk: [email protected]
- A powerful fork: https://github.com/yaleh/Flora_Pac