Giter Site home page Giter Site logo

jinzaizhichi / shadowsocks-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from guolin/shadowsocks-docker

1.0 3.0 0.0 6 KB

docker for shadowsocks

Home Page: https://registry.hub.docker.com/u/guolin/shadowsocks/

License: MIT License

Shell 100.00%

shadowsocks-docker's Introduction

guolin/shadowsocks-docker

中文简介

docker image to run a shadowsocks server

Setting a specific configration

If you want to use a preset configration instead of a default, you can set the environment variable, eg

  • server address: $SS_SERVER_ADDR default 0.0.0.0
  • server port: $SS_SERVER_PORT default 8388
  • password: $SS_PASSWORD default password
  • encryption method: $SS_METHOD default aes-256-cfb others
  • timeout: $SS_TIMEOUT default 300

Usage

To create the image guolin/shadowsocks, execute the following command on the guolin/shadowsocks folder:

    docker build -t guolin/shadowsocks .

Running the shadowsocks server

Run the following command to start shadowsocks:

    docker run -d -p 8838:8838 guolin/shadowsocks

The first time that you run your container, a default password(password) will be set. You can get the password, check the logs of the container by running:

    docker logs <CONTAINER_ID>

You will see an output like the following:

    ========================================================================
    You can now connect to this ShadowSocks server:"

    server: 0.0.0.0  port: 8838 password: password

    Please remember the password!!
    ========================================================================

Done!

中文简介

shadowsocks 主要是用于翻墙。 我的实际使用方法是直接在tutum上创建一个digitalocean的docker主机,然后运行这个image,通过ENV的方式进行基本的配置,然后就可以轻松翻墙了。

具体的配置如下:

通过环境变量的方式实现

  • server address: $SS_SERVER_ADDR 默认 0.0.0.0
  • server port: $SS_SERVER_PORT 默认 8388
  • password: $SS_PASSWORD 默认 password
  • encryption method: $SS_METHOD 默认 aes-256-cfb others
  • timeout: $SS_TIMEOUT 默认 300

一般情况只需要改密码就可以了。

TUTUM 使用方法

  1. 设置环境变量的密码。
  2. 设置对外端口。

通过日志可以查看具体的配置情况。

Docker 使用方法

docker run -d -p 8838:8838 -e SS_PASSWORD=[替换成自己的密码] guolin/shadowsocks

shadowsocks-docker's People

Contributors

guolin avatar

Stargazers

jinzaizhichi avatar

Watchers

James Cloos avatar jinzaizhichi avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.