├── entrypoint.sh ├── README.md └── Dockerfile /entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #start net speeder 3 | ETH=$(eval "ifconfig | grep 'eth0'| wc -l") 4 | if [ "$ETH" == '1' ] ; then 5 | nohup /usr/local/bin/net_speeder eth0 "ip" >/dev/null 2>&1 & 6 | fi 7 | if [ "$ETH" == '0' ] ; then 8 | nohup /usr/local/bin/net_speeder venet0 "ip" >/dev/null 2>&1 & 9 | fi 10 | 11 | /etc/init.d/ssh restart 12 | 13 | /usr/bin/python /ssr/shadowsocks/server.py "$@" 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # shadowsocksR with net-speeder 2 | 这是一个ShadowsocksR Docker 3 | ## 启动方式 4 | 5 | ``` 6 | docker run -d --name ssr-with-net-speeder -p 8989:8989 jialezi/ssr-with-net-speeder -s 0.0.0.0 -p 8989 -k jaz -m rc4-md5 -o http_simple -O auth_sha1 7 | 8 | ``` 9 | 10 | 11 | ## Arukas.io 启动 12 | 13 | ``` 14 | 镜像 : jialezi/ssr-with-net-speeder 15 | 启动命令(CMD) :-s 0.0.0.0 -p 8989 -k jaz -m rc4-md5 -o http_simple -O auth_sha1 16 | ``` 17 | 18 | 19 | 20 | ## SS镜像 21 | https://github.com/jialezi/ss-with-net-speeder 22 | 23 | 24 | 25 | ## 感谢 26 | https://github.com/malaohu/ssr-with-net-speeder 27 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # ssr-with-net-speeder 2 | FROM ubuntu:14.04.3 3 | MAINTAINER jaz 4 | 5 | RUN apt-get update && \ 6 | apt-get clean 7 | 8 | RUN apt-get install -y openssh-server python python-pip python-m2crypto libnet1-dev libpcap0.8-dev git gcc && \ 9 | apt-get clean 10 | 11 | RUN echo "root:password"|chpasswd 12 | RUN sed -ri 's/^PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config && \ 13 | sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config 14 | 15 | RUN git clone -b manyuser https://github.com/shadowsocksr/shadowsocksr.git ssr 16 | RUN git clone https://github.com/snooda/net-speeder.git net-speeder 17 | WORKDIR net-speeder 18 | RUN sh build.sh 19 | 20 | RUN mv net_speeder /usr/local/bin/ 21 | COPY entrypoint.sh /usr/local/bin/ 22 | RUN chmod +x /usr/local/bin/entrypoint.sh 23 | RUN chmod +x /usr/local/bin/net_speeder 24 | 25 | # Configure container to run as an executable 26 | ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] 27 | --------------------------------------------------------------------------------