Last active
December 15, 2018 14:13
-
-
Save crazygit/6575c0b5e8f35f7fffdbc4b52ce37dce to your computer and use it in GitHub Desktop.
run shadowsocks-libev client with docker, enable socket5 and http protocol
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
SERVER_ADDR="your_server_ip" | |
SERVER_PORT="your_server_port" | |
PASSWORD="your_password" | |
METHOD="your_encrption_method" | |
TIMEOUT=300 | |
# socket5 协议端口1080 | |
LOCAL_SCOKET_PORT=1080 | |
# http协议端口1087 | |
LOCAL_HTTP_PORT=1087 | |
docker pull crazygit/ss-client:latest | |
docker run \ | |
-e SERVER_ADDR=${SERVER_ADDR} \ | |
-e SERVER_PORT=${SERVER_PORT} \ | |
-e PASSWORD=${PASSWORD} \ | |
-e METHOD=${METHOD} \ | |
-e TIMEOUT=${TIMEOUT} \ | |
-p $LOCAL_SCOKET_PORT:1080 \ | |
-p $LOCAL_HTTP_PORT:1087 \ | |
--name ss-client crazygit/ss-client:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment