Skip to content
forked from qwj418/Flora_Pac

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

License

Notifications You must be signed in to change notification settings

usufu/Flora_Pac

This branch is 99 commits ahead of qwj418/Flora_Pac:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a10d404 · Aug 3, 2014
Oct 20, 2013
Aug 3, 2014
Apr 7, 2013
Jun 16, 2014
Aug 3, 2014
Aug 3, 2014
Aug 3, 2014
Jul 1, 2014
Aug 3, 2014
Mar 11, 2014
Mar 11, 2014
Aug 2, 2014
Mar 11, 2014

Repository files navigation

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/usufu/Flora_Pac.git

Uasge

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

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
  -i [PROXY], --iproxy [PROXY]
                        internal Proxy server, default is DIRECT, especially for company network if it need a internal proxy to access outside network.
  -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
  • Use test_build.sh to generate a pac file, replace the proxy address in the script before you launch it.
$./test_buils.sh

flora_pac.pac and flora_pac_min.pac will be generated, floar_pac_min.pac is samller than the flora_pac.pac, but hard for reading. you can edit the flora.pac to add safeDomain and dangerDomain.

PAC Server demo on Mac

Performance

Testing pac generated by FloraPac
total: 141.094597ms
avg: 2.03893926300578ns
total: 151.273405ms
avg: 2.18603186416185ns

Testing pac generated by FloraPacNJS
total: 10496.94823ms
avg: 151.69000332369941ns

Testing pac generated by gfwlist2pac
total: 43.744876ms
avg: 0.6321513872832369ns

Testing pac generated by switchysharp
total: 71023.601716ms
avg: 1026.3526259537573ns

Test end

Get help

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.0%
  • Python 6.9%
  • Other 0.1%