Skip to content
generate PAC file by region
Branch: master
Clone or download
Latest commit 616b9e5 Nov 30, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Aug 5, 2014
LICENSE
README.md fix readme Aug 6, 2014
config.json update config & version Aug 6, 2014
main.coffee
main.js
package.json

README.md

chalkPAC

NPM IMAGE

chalkPAC is a PAC(Proxy Auto Config) file generator

Usage

  1. Install Node.js

  2. Install chalkPAC and get into its directory with

     npm install chalk-pac
     cd node_modules/chalkPAC
    

    or

     git clone https://github.com/SEIAROTg/chalkPAC.git
     cd chalkPAC
    
  3. Edit config.json

  4. Run chalkPAC with

     node main
    
  5. proxy.pac is now generated

Configuration

chalkPAC configuration is stored in config.json like the following:

{
	"proxy": {
		"direct": "DIRECT",
		"socks5": "SOCKS5 127.0.0.1:1080"
	},
	"route": {
		"special": "direct",
		"CN": "direct",
		"default": "socks5"
	}
}

This example configuration

proxy

proxy defines a list of PAC proxy with key & value

the key is proxy name

the value is PAC proxy string

route

route defines a list of proxy rule with key & value

the key can be "special", "default" or region code

the value is a proxy name defined in proxy

"special"

"special" stands for special use IP addresses (RFC 5375)

"default"

If no route is matched, this will be used

It's necessary

region code

A region code stands for its IP Address

Note

  • Only Asia Pacific regions are supported currently
You can’t perform that action at this time.