Last active
March 2, 2024 01:20
-
-
Save crazygit/e4105dedc1487a2ff3779c3eea46b00f to your computer and use it in GitHub Desktop.
run shadowsocks-libev client with docker
This file contains 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 | |
# 配置参考: | |
# https://github.com/shadowsocks/shadowsocks-libev/blob/master/docker/alpine/README.md | |
SERVER_ADDR="your_server_ip" | |
SERVER_PORT="your_server_port" | |
PASSWORD="your_password" | |
METHOD="aes-256-cfb" | |
TIMEOUT=300 | |
# 绑定到本机的端口 | |
LOCAL_PORT=1080 | |
docker pull shadowsocks/shadowsocks-libev | |
docker run -p $LOCAL_PORT:1080 --name ss-client shadowsocks/shadowsocks-libev \ | |
ss-local -s $SERVER_ADDR \ | |
-p $SERVER_PORT \ | |
-l 1080 \ | |
-k $PASSWORD \ | |
-m $METHOD \ | |
-b "0.0.0.0" \ | |
-t $TIMEOUT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment