Giter Club home page Giter Club logo

shadowsocks-dockerize's Introduction

Run

server side: (with obfsproxy)

sudo docker run -d --ulimit nofile=4096:8192 -p 8090:8080 \
  --restart=always --memory="256m" --memory-swap="-1" --name=obfsserver_8090 \
    -e OBFS_PASSWORD={32_base64_char} \
    -e SS_PASSWORD={some_rand_str} \
    ssserver;

server side: (without obfsproxy)

sudo docker run -d --ulimit nofile=4096:8192 -p 8096:8080 \
  --restart=always --memory="256m" --memory-swap="-1" --name=ssserver_8096 \
    -e SS_PASSWORD={some_rand_str} \
    ssserver;

client side : (with obfsproxy)

sudo docker run -d -p 7070:7000 --ulimit nofile=8192:8192 \
  --restart=always --memory="256m" --memory-swap="-1" --name=obfsclient_lato \
  -e OBFS_PASSWORD={32_base64_char} \
  -e OBFS_INHOST=x.x.x.x \
  -e OBFS_INPORT=8090 \
  -e SS_PASSWORD={some_rand_str}  ssclient

client side: (without obfsproxy)

sudo docker run -d -p 7071:7000 --ulimit nofile=8192:8192 \
  --restart=always --memory="256m" --memory-swap="-1" --name=ssclient_lato \
  -e SS_HOST=x.x.x.x \
  -e SS_PORT=8096 \
  -e SS_PASSWORD={some_rand_str}  ssclient

test

while true;do
  for port in 7070 7071
  do
    curl --progress-bar -f -q --connect-timeout 3 --max-time 10 \
    --socks5-hostname 127.0.0.1:$port   https://twitter.com/ >/dev/null
    echo $((c++)):$?
  done
done



true>/tmp/proxytest.txt
true>/tmp/proxytest.result

for i in {1..100}
do
  curl -f -q --connect-timeout 3 --max-time 8 --socks5-hostname 127.0.0.1:7090  https://twitter.com/   >/dev/null  2>/tmp/proxytest.txt
  echo $? >> /tmp/proxytest.result
done
sort /tmp/proxytest.result | uniq -c

shadowsocks-dockerize's People

Contributors

jesset avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

shadowsocks-dockerize's Issues

how can i to pull it

i try

-> % sudo docker pull https://hub.docker.com/r/vimagick/obfsproxy/

but

Invalid repository name (ex: "registry.domain.tld/myrepos")

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.