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

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

License

Notifications You must be signed in to change notification settings

haoruiqian/ss-client-with-squid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages