Public Repository

Last pushed: 10 months ago
Short Description
A shadowsocks client with squid as http(s) proxy server
Full Description

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
    
  3. Set proxy server to 127.0.0.1, and port to 3128.
  4. 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.

Docker Pull Command
Owner
haoruiqian