Skip to content

beavailable/china-pac

Repository files navigation

china-pac

This is a fast PAC specifically designed for Chinese users.

It'll automatically sync all Chinese domains from dnsmasq-china-list and rebuild the package (if there's any updates) every one hour.

The PAC returns:

  • "DIRECT" if the host is a plain hostname
  • "DIRECT" if the host is an ipv4/ipv6 address
  • "DIRECT" if the host is a Chinese domain
  • a proxy (default SOCKS 127.0.0.1:1080) otherwise

Note that the chromium browser doesn't load the PAC if its file size is larger than 1M, while ungoogled-chromium has removed that limit.

Installation

Debian & Ubuntu

Install via the OBS repo (see obs-repo for setup).

Other Operating Systems

./generate.sh

Configuration

You can change the default proxy in proxy file, or add extra domains in extra.list file.

For Debian & Ubuntu users, all the configuration files are in /etc/china-pac/.
Be sure to run sudo dpkg-reconfigure china-pac after modifying any configuration files.
The generated PAC file is located at /var/lib/china-pac/proxy.pac.

Acknowledgements

This project uses data from dnsmasq-china-list. Thanks to its creators and contributors for making it available.

About

A fast PAC designed for Chinese users

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages