GithubHelp home page GithubHelp logo

easypi / docker-shadowsocks-libev Goto Github PK

View Code? Open in Web Editor NEW
204.0 14.0 57.0 69 KB

:airplane: Dockerfiles for shadowsocks-libev server and client (on x86 and arm)

Home Page: https://hub.docker.com/r/easypi/shadowsocks-libev/

License: GNU General Public License v3.0

Dockerfile 100.00%
shadowsocks-libev docker raspberry-pi docker-compose shadowsocks-rust

docker-shadowsocks-libev's Introduction

docker-shadowsocks-libev

release

我们**人需要管的

——— Jackie Chan

不需要政府造墙,网民也会自发造墙

——— clowwindy

What is shadowsocks-libev

Shadowsocks-libev is a lightweight secured SOCKS5 proxy for embedded devices and low-end boxes.

It is a port of Shadowsocks created by @clowwindy, which is maintained by @madeye and @linusyang.

Current version: release

How to use these images

  • Get docker-compose.yml, then change SERVER_ADDR and PASSWORD.

  • Run these commands:

      # On server (1.2.3.4)
      $ docker-compose up -d server
    
      # On client (192.168.1.234)
      $ docker-compose up -d client
    
      # On any LAN PC (192.168.1.XXX)
      $ curl -x socks5h://192.168.1.234:1080 https://www.youtube.com/
    
  • Set socks5 proxy in your favorite web browser.

Deploy without docker

sudo apt-get update
sudo apt-get install shadowsocks-libev

Config file format: config.json

License

View license information for the software contained in this image.

User Feedback

If you find a bug, please create an issue. Feel free to send me pull requests. Thank you!

docker-shadowsocks-libev's People

Contributors

vimagick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-shadowsocks-libev's Issues

Failed to build Dockerfile.debian

when I try to docker build the debian version, it shows error as below.

 dh-systemd : Depends: debhelper but it is not going to be installed
 libssl-dev : Depends: libssl1.0.0 (= 1.0.1t-1+deb8u6) but 1.0.2k-1~bpo8+1 is to be installed
              Recommends: libssl-doc but it is not going to be installed
E: Unable to correct problems, you have held broken packages. 

Which results the following output: returned a non-zero code: 100

Wrong link at "Deploy without docker" section

On Deploy without docker section
The download link now is /releases/download/v3.0.3/shadowsocks-libev_3.0.3-1_amd64.deb
But the right link should be /releases/download/v3.0.3/shadowsocks-libev_3.0.3.ds-1.exp1_amd64.deb

Dockerfile.debian.arm build 失败

到了 dpkg-buildpackage -b -us -uc -i 这步的时候报错:

+ dpkg-buildpackage -b -us -uc -i
dpkg-buildpackage: source package shadowsocks-libev
dpkg-buildpackage: source version 3.0.8-1
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Max Lv <[email protected]>
dpkg-buildpackage: host architecture armhf
 dpkg-source -i --before-build shadowsocks-libev-3.0.8
dpkg-checkbuilddeps: Unmet build dependencies: libmbedtls-dev libsodium-dev (>= 1.0.8~)
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)

有点奇怪为什么会出错,看前面步骤按理说之前分别编译安装了 libsodium-1.0.11mbedtls-2.4.0,版本号应该是够的

Wanna to add workers and fast_open variable

I wanna to add workers and fast_open variable, Docker file as follows:
CMD ss-server -s "$SERVER_ADDR"
-p "$SERVER_PORT"
-m "$METHOD"
-k "$PASSWORD"
-t "$TIMEOUT"
-d "$DNS_ADDR"
-u
--fast_open "$OPTIONS"
--workers "$NUM"
Docker-compose file as follows:
environment:
- OPTIONS=true
-NUM=1

But still not work,Please help me,Thanks.

Dockerfile line 28

line 28: && apk del --virtual TMP
will output:
apk: unrecognized option: virtual

add package with --virtual, del do not need this option, just:
apk del TMP
will be ok.

add optional verbose ENV

any chance of enabling verbose as part of the Dockerfile ?

CMD ss-server -s "$SERVER_ADDR" \
              -p "$SERVER_PORT" \
              -m "$METHOD" \
              -k "$PASSWORD" \
              -t "$TIMEOUT" \
              -d "$DNS_ADDR" \
              -u \
              -A \
              --fast-open "$VERBOSE" 

to then enable if required in compose

environment:
      - VERBOSE=-v

thanks

Connect to the server docker instance via sslocal command

I get connection reset by peer error when try connect to the server instance via sslocal command. When is use docker-compose up -d client it works fine but not when I use the sslocal with the same options as the ones in the docker-compose.yml file. The server I used docker-compose up -d server to run.

$ sslocal -s 82.102.10.137 -p 8388 -m aes-256-cfb -k Pa$$_17 -b 127.0.0.1 -t 600 --fast-open -v
2017-11-24 18:58:31 INFO     loading libcrypto from libcrypto.so.1.1
2017-11-24 18:58:31 INFO     starting local at 127.0.0.1:1080
2017-11-24 18:58:31 DEBUG    using event model: epoll
2017-11-24 18:58:46 DEBUG    accept
2017-11-24 18:58:46 DEBUG    chosen server: 82.102.10.137:8388
2017-11-24 18:58:46 INFO     connecting twitter.com:443 from 127.0.0.1:49610
2017-11-24 18:58:46 DEBUG    got remote error
2017-11-24 18:58:46 ERROR    [Errno 104] Connection reset by peer
2017-11-24 18:58:46 DEBUG    destroy: twitter.com:443
2017-11-24 18:58:46 DEBUG    destroying remote
2017-11-24 18:58:46 DEBUG    destroying local

archive path has changed

In the Dockerfile line 9
The path https://github.com/shadowsocks/shadowsocks-libev/archive/v$SS_VER.tar.gz has changed, which makes it impossible to build a new docker image.
You may need to edit it.

Edit: It seems my DNS problem. Sorry :(

Can't change the server side port.

I try to follow the default guide to get docker-compose.yml, then run docker-compose up -d server .
But the default server listen port is 8388.

I've tried to modify the ports part on docker-compose.yml. However, the easypi/shadowsocks-libev image defines the EXPOSE port in 8388.
Is it possible to change the port via docker-compose.yml? Or I have to build it without using docker-compose.yml ?

v3.0.0 not working.

I was using this docker-compose.yml below. It's broken after I deployed it on Ubuntu 16.04.

version: '2'
services:
  shadowsocks:
    image: easypi/shadowsocks-libev
    ports:
      - '8388:8388'
    environment:
      - PASSWORD=**********
    restart: always

Getting back to the version 2.6.3 works for me.

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.