Last active
July 1, 2022 19:54
-
-
Save avin/ec3a2d562e5581f2ba87162230aaa528 to your computer and use it in GitHub Desktop.
Shadowsocks quick setup
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
{ | |
"server": "myserver.com", | |
"server_port": 10777, | |
"password": "ZMv5HNQ77SEkekvLJd8WYf8sRd4Z2", | |
"method": "chacha20-ietf-poly1305", | |
"local_address": "127.0.0.1", | |
"local_port": 15080 | |
} |
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
{ | |
"server":"0.0.0.0", | |
"server_port":10777, | |
"password":"ZMv5HNQ77SEkekvLJd8WYf8sRd4Z2", | |
"timeout":300, | |
"method":"chacha20-ietf-poly1305", | |
"nameserver":"8.8.8.8", | |
"mode":"tcp_and_udp" | |
} |
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
version: "3.8" | |
services: | |
shadowsocks-server: | |
image: ghcr.io/shadowsocks/ssserver-rust:latest | |
ports: | |
- 10777:10777 | |
- 10777:10777/udp | |
volumes: | |
- ./config.json:/etc/shadowsocks-rust/config.json | |
restart: always | |
container_name: ssserver |
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
[Unit] | |
Description=shadowsocks-docker | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
Restart=always | |
WorkingDirectory=/opt/shadowsocks/ | |
# Remove old containers, network and volumes | |
ExecStartPre=/usr/local/bin/docker-compose -f docker-compose.yml down -v | |
#ExecStartPre=-/bin/bash -c 'docker network rm docker_jfrog_net' | |
#ExecStartPre=-/bin/bash -c 'docker ps -aqf "name=3proxy-main" | xargs docker rm' | |
# Compose up | |
ExecStart=/usr/local/bin/docker-compose -f docker-compose.yml up | |
# Compose down, remove containers | |
ExecStop=/usr/local/bin/docker-compose -f docker-compose.yml down | |
[Install] | |
WantedBy=multi-user.target |
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
Quiet.exe "c:\utils\shadowsocks\sslocal.exe -c c:\utils\shadowsocks\client-config.json" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment