Skip to content

A docker image of shadowsocks for bypassing firewalls.

Notifications You must be signed in to change notification settings

Uphie/Docker-shadowsocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Docker-shadowsocks

科学上网工具 shadowsocks docker 镜像。

前提:一台境外 Linux 服务器,比如 VPS。

使用方法:

  1. 下载
$ git clone https://github.com/Uphie/Docker-shadowsocks.git

或者

$ wget https://github.com/Uphie/Docker-shadowsocks/archive/master.zip

$ uzip Docker-shadowsocks.zip
  1. 编辑 shadowsocks.json 文件,添加端口和密码。 配置方法详见 shadowsocks wiki

如多用户配置:

{
    "server": "0.0.0.0",
    "port_password": {
        "8500": "abcdef",
        "8501": "ABCDEF",
        "8502": "123456"
    },
    "timeout": 300,
    "method": "aes-256-cfb"
}
  1. 构建 docker 镜像
$ cd Docker-shadowsocks

$ docker build -t my_image_name .
  1. 启动 docker 镜像
$ docker run -itd -p port1:port1 -p port2:port2 --name your_container_name .

其中 -p port1:port1 -p port2:port2 是要将 shadowsocks 配置文件中用的端口从容器映射到宿主机,配了几个端口就映射几个端口。

以 1 中的配置范例为例,启动命令为:

$ docker run -itd -p 8500:8500 -p 8501:8501 -p 8502:8502 --name my_container_name my_image_name
  1. 可以科学上网了 ^_^

相关软件

Shadowsocks Android 端

Google Play: https://play.google.com/store/apps/details?id=com.github.shadowsocks

百度云:链接: https://pan.baidu.com/s/1miOExde 密码: 5c9j

Shadowsocks MacOS 端

SourceForge: https://sourceforge.net/projects/shadowsocksgui/

百度云:链接: https://pan.baidu.com/s/1qY0jGDI 密码: f1qd

Shadowsocks Windows 端

百度云:链接: https://pan.baidu.com/s/1nvjuQeP 密码: urur

About

A docker image of shadowsocks for bypassing firewalls.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published