chalkPAC is a PAC(Proxy Auto Config) file generator
-
Install Node.js
-
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
-
Edit
config.json
-
Run chalkPAC with
node main
-
proxy.pac
is now generated
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
defines a list of PAC proxy with key & value
the key is proxy name
the value is PAC proxy string
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"
stands for special use IP addresses (RFC 5375)
If no route is matched, this will be used
It's necessary
A region code stands for its IP Address
- Only Asia Pacific regions are supported currently