Page:
Configuration via Config File
Pages
Ban Brute Force Crackers
Block Connection to localhost
Change Server on the Fly
Configuration via Config File
Configure Multiple Users
Configure Shadowsocks with Supervisor
Connect to OpenVPN over Shadowsocks
Convert Shadowsocks into an HTTP proxy
Encryption
Feature Comparison across Different Versions
Forcing Chrome to Use Socks5 Proxy
Generate QR Code for Android or iOS Clients
Gentoo overlay
Graceful shutdown and restart
Home
Install Shadowsocks Server on Windows
Manage Multiple Users
Objective
Optimizing Shadowsocks
Ports and Clients
Salsa20
Securing Public Shadowsocks Server
Setting Up Shadowsocks on Linode
Setup a Shadowsocks relay
Shadowsocks 使用说明
TCP Fast Open
Troubleshooting
Using Shadowsocks with Command Line Tools
Workers
优化 Shadowsocks
回复模版
在 Linode 上快速搭建 Shadowsocks
用 Supervisor 运行 Shadowsocks
No results
2
Configuration via Config File
clowwindy edited this page 2015-01-04 07:35:31 -08:00
You can use a configuration file instead of command line arguments.
Create a config file /etc/shadowsocks.json
.
Example:
{
"server":"my_server_ip",
"server_port":8388,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"mypassword",
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}
Explanation of the fields:
Name | Explanation |
---|---|
server | the address your server listens |
server_port | server port |
local_address | the address your local listens |
local_port | local port |
password | password used for encryption |
timeout | in seconds |
method | default: "aes-256-cfb", see Encryption |
fast_open | use TCP_FASTOPEN, true / false |
workers | number of workers, available on Unix/Linux |
To run in the foreground:
ssserver -c /etc/shadowsocks.json
To run in the background:
ssserver -c /etc/shadowsocks.json -d start
ssserver -c /etc/shadowsocks.json -d stop