Skip to content

divinenickname/ss-pac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shadowsocks with .pac (ss-pac)

A simple, home-ready solution for traffic routing using the Shadowsocks protocol. If you don't want to switch proxies just to access certain sites, this solution can help you.

You can configure the list of sites that you want to open through the proxy. The server returns a .pac file which you can use in your system settings.

Getting starting

Prerequisites: You need to have Docker and Docker Compose installed. If you are not familiar with these tools, please refer to this link.

Step-by-Step Installation

  1. Install Docker and Docker Compose.
  2. Fork the repository or download it to your PC.
  3. Configure the ./outline/config.json file with your specific parameters. Explanation of this file here
  4. Add sites that you want to open through the proxy:
    1. Open the file./pac-server/localproxy.pac
    2. Find the line const hosts = [ "place urls here" ]
    3. Add the URLs you need. For example, if you want add google.com and bing.com the hosts variable should look like this: const hosts = ["google.com", "bing.com"];
  5. Run the following command in the terminal: docker compose up -d.
  6. Add link http://localhost:8999/localproxy.pac to your system settings. See more
  7. Enjoy!

How to configure config.json?

JSON param Description
server Outline server address. You have to provide it.
server_port Outline server port. You have to provide it.
password Outline server password. You have to provide it.
method Outline server crypt method. You have to provide it.
local_address Outline client host. Leave "0.0.0.0"
local_port Outline client port. Leave 1080
timeout Leave 300

If you have outline link like ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTpRd2VydHkxMjM@192.168.0.35:123456/?outline=1. You need to decode base64 string between ss:// and symbol @. You can use web decoder. Example ss link contains information: chacha20-ietf-poly1305:Qwerty123.

chacha20-ietf-poly1305 - method
Qwerty123 - password
192.168.0.35 - server
123456 - password

Where should I place pac link?

The service generates a .pac file which you should place in the system settings field. Note that the procedure may vary across different systems.

PAC URL: http://localhost:8999/localproxy.pac

Windows

Start -> Settings -> Network & Internet -> Proxy -> Use Setup Script -> URL
Microsoft documentation

Mac OS

System Settings -> Network -> Details - Proxies -> Automatic proxy configuration -> URL Apple documentation

About

Shadowsocks with pac distribution to local usage.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published