Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Latest commit

 

History

History
19 lines (16 loc) · 1005 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 1005 Bytes

A shadowsocks client with squid as http(s) proxy server.

All requests to non Chinese IPs will be redirected to shadowsocks server, all requests to Chinese IPs will be sent out directly without any proxy.

How to run it.

  1. Install docker.
  2. Run command in terminal.
docker run -d --rm --privileged -p 3128:3128 -e SERVER="<SS Server IP>" -e SERVER_PORT="<SS Server Port>" -e ENCRYPT_METHOD="<encrypt method>" -e PASSWORD="<password>" haoruiqian/ss-client-with-squid
  1. Set proxy server to 127.0.0.1, and port to 3128.
  2. To use it in terminal, run command
export http_proxy=http://127.0.0.1:3128
export https_proxy=http://127.0.0.1:3128
export all_proxy=http://127.0.0.1:3128

This docker image uses IP ranges defined in http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest to determine IP ranges of China, to always use latest IP ranges, add an environment variable UPDATE_IP_RANGE and set it to 1 when start docker container in step 2.