-
Notifications
You must be signed in to change notification settings - Fork 58
Configuration Server
Item | Description | Default | Example |
---|---|---|---|
host | service host | 0.0.0.0 | "host": "0.0.0.0" |
port | service port | 9999 | "port": 9999 |
relayPort | relay port pool, to prevent closure of the port, all sent to the pool of data port will be forwarded to the main service port (this function is unstable, if you need port masquerade, please try the linux native iptables for port redirect iptables -t nat -A PREROUTING -p tcp --dport {relayPort} -j REDIRECT --to-port {port} ) |
[] | "relayPort": [] |
protocol | client and server agreement used by this item, currently only provide 'shadowsocks' and 'fakedhttp' | shadowsocks | "protocol": "fakedhttp" |
encryption | the algorithm name for encryption: aes-256-cfb、aes-192-cfb、aes-128-cfb、aes-256-ofb、aes-192-ofb、aes-128-ofb、bf-cfb | aes-256-cfb | "encryption": "aes-256-cfb" |
password | your password for encryption, keep secret | my_password | "password": "YuhJskF1128" |
process | the data processing procedures (execute from left to right, some processes might reduce the corresponding speed, so fill in as much as possible not more than 3): compress、encrypt、raw、zero-padding and random-padding | encrypt | "process": ["compress", "encrypt"] |
dnsCacheCapacity | dns lru-cache size, 0 to off | 1000 | "dnsCacheCapacity": 0 |
writeLimit | download speed limit in bytes, 0 to off | 0 | "writeLimit": 0 |
readLimit | upload speed limit in bytes, 0 to off | 0 | "readLimit": 0 |
The following is a pre-configured config.json template, copy and cover the text directly to the original configuration file:
Clear Data (for test only, you need to modify the port)
{
"port": 9999,
"process": ["raw"]
}
Shadowsocks (Encrypted by aes-256-cfb, you need to modify the port and password)
{
"port": 9999,
"protocol": "shadowsocks",
"encryption": "aes-256-cfb",
"password": "my_password",
"process": ["encrypt"]
}
Shadowsocks (Encrypted by aes-192-cfb, you need to modify the port and password)
{
"port": 9999,
"protocol": "shadowsocks",
"encryption": "aes-192-cfb",
"password": "my_password",
"process": ["encrypt"]
}
Shadowsocks (Encrypted by aes-128-cfb, you need to modify the port and password)
{
"port": 9999,
"protocol": "shadowsocks",
"encryption": "aes-128-cfb",
"password": "my_password",
"process": ["encrypt"]
}
Shadowsocks (Encrypted by aes-256-ofb, you need to modify the port and password)
{
"port": 9999,
"protocol": "shadowsocks",
"encryption": "aes-256-ofb",
"password": "my_password",
"process": ["encrypt"]
}
Shadowsocks (Encrypted by aes-192-ofb, you need to modify the port and password)
{
"port": 9999,
"protocol": "shadowsocks",
"encryption": "aes-192-ofb",
"password": "my_password",
"process": ["encrypt"]
}
Shadowsocks (Encrypted by aes-128-ofb, you need to modify the port and password)
{
"port": 9999,
"protocol": "shadowsocks",
"encryption": "aes-128-ofb",
"password": "my_password",
"process": ["encrypt"]
}
Shadowsocks (Encrypted by blowfish-cfb, you need to modify the port and password)
{
"port": 9999,
"protocol": "shadowsocks",
"encryption": "bf-cfb",
"password": "my_password",
"process": ["encrypt"]
}
Shadowsocks with Traffic Compress (Encrypted by aes-256-cfb, you need to modify the port and password)
{
"port": 9999,
"protocol": "shadowsocks",
"encryption": "aes-256-cfb",
"password": "my_password",
"process": ["compress", "encrypt"]
}
Shadowsocks with Zero-filled Traffic (Encrypted by blowfish-cfb, you need to modify the port and password)
{
"port": 9999,
"protocol": "shadowsocks",
"encryption": "bf-cfb",
"password": "my_password",
"process": ["zero-padding", "encrypt"]
}
Http Masquerade (Encrypted by aes-256-cfb, you need to modify the port and password)
{
"port": 9999,
"protocol": "fakedhttp",
"encryption": "aes-256-cfb",
"password": "my_password",
"process": ["encrypt"]
}
No Encryption with Http Masquerade (you need to modify the port)
{
"port": 9999,
"protocol": "fakedhttp",
"process": ["raw"]
}
No Encryption with Http Masquerade and Traffic Compress (you need to modify the port)
{
"port": [9999],
"protocol": "fakedhttp",
"process": ["compress"]
}
No Encryption with Random padding (you need to modify the port)
{
"port": [9999],
"process": ["random-padding"]
}
- Client
- Server