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.
Prerequisites: You need to have Docker and Docker Compose installed. If you are not familiar with these tools, please refer to this link.
- Install Docker and Docker Compose.
- Fork the repository or download it to your PC.
- Configure the
./outline/config.json
file with your specific parameters. Explanation of this file here - Add sites that you want to open through the proxy:
- Open the file
./pac-server/localproxy.pac
- Find the line
const hosts = [ "place urls here" ]
- Add the URLs you need. For example, if you want add
google.com
andbing.com
thehosts
variable should look like this:const hosts = ["google.com", "bing.com"];
- Open the file
- Run the following command in the terminal:
docker compose up -d
. - Add link
http://localhost:8999/localproxy.pac
to your system settings. See more - Enjoy!
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
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
Start -> Settings -> Network & Internet -> Proxy -> Use Setup Script -> URL
Microsoft documentation
System Settings -> Network -> Details - Proxies -> Automatic proxy configuration -> URL Apple documentation