Skip to content

详细配置 客户端

张九鹏 edited this page Oct 19, 2017 · 3 revisions

配置清单及使用介绍

配置项 说明 默认值 示例
localHost 本地主机 0.0.0.0 "localHost": "0.0.0.0"
localPort 本地端口 1080 "localPort": 1080
mode 程序的运行模式,分为agentx模式和本地socks5模式,其中socks5模式无需服务端程序 agentx "mode": "agentx"
serverHost 服务端程序地址 0.0.0.0 123.123.123.123
serverPort 服务端端口池,可填写多项,程序将随机选择池中端口进行连接 [9999] "serverPort": [21, 22, 23]
protocol 客户端与服务端协商所使用的协议,目前仅提供shadowsocks和fakedhttp两种协议 shadowsocks "protocol": "fakedhttp"
encryption 数据加密方式,目前提供7种: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 密码,与encryption配合使用 my_password "password": "YuhJskF1128"
process 数据加工流程(可填写多项,将从左至右依次执行,加密仅可出现在末位流程;字符填充等流程需要时间成本,请根据当前网络环境灵活调整),目前提供compress、encrypt、raw、zero-padding和random-padding共5种流程 encrypt "process": ["compress", "encrypt"]

快速配置模板

以下是预配置的config.json模板,直接将文本拷贝覆盖掉原配置文件内容即可,请确保您使用的配置模板与服务端对应:

本地Socks5代理(无需服务端)

{
  "localPort": 1080,
  "mode": "socks5"
}

明文模式 (适用于测试环境,请谨慎使用,需自行修改serverHost、serverPort)

{
  "localHost": "0.0.0.0",
  "localPort": 1080,
  "serverHost": "0.0.0.0",
  "serverPort": [9999],
  "process": ["raw"]
}

Shadowsocks (采用aes-256-cfb加密,需自行修改serverHost、serverPort、password)

{
  "localPort": 1080,
  "serverHost": "0.0.0.0",
  "serverPort": [9999],
  "protocol": "shadowsocks",
  "encryption": "aes-256-cfb",
  "password": "my_password",
  "process": ["encrypt"]
}

Shadowsocks (采用aes-192-cfb加密,需自行修改serverHost、serverPort、password)

{
  "localPort": 1080,
  "serverHost": "0.0.0.0",
  "serverPort": [9999],
  "protocol": "shadowsocks",
  "encryption": "aes-192-cfb",
  "password": "my_password",
  "process": ["encrypt"]
}

Shadowsocks (采用aes-128-cfb加密,需自行修改serverHost、serverPort、password)

{
  "localPort": 1080,
  "serverHost": "0.0.0.0",
  "serverPort": [9999],
  "protocol": "shadowsocks",
  "encryption": "aes-128-cfb",
  "password": "my_password",
  "process": ["encrypt"]
}

Shadowsocks (采用aes-256-ofb加密,需自行修改serverHost、serverPort、password)

{
  "localPort": 1080,
  "serverHost": "0.0.0.0",
  "serverPort": [9999],
  "protocol": "shadowsocks",
  "encryption": "aes-256-ofb",
  "password": "my_password",
  "process": ["encrypt"]
}

Shadowsocks (采用aes-192-ofb加密,需自行修改serverHost、serverPort、password)

{
  "localPort": 1080,
  "serverHost": "0.0.0.0",
  "serverPort": [9999],
  "protocol": "shadowsocks",
  "encryption": "aes-192-ofb",
  "password": "my_password",
  "process": ["encrypt"]
}

Shadowsocks (采用aes-128-ofb加密,需自行修改serverHost、serverPort、password)

{
  "localPort": 1080,
  "serverHost": "0.0.0.0",
  "serverPort": [9999],
  "protocol": "shadowsocks",
  "encryption": "aes-128-ofb",
  "password": "my_password",
  "process": ["encrypt"]
}

Shadowsocks (采用blowfish-cfb加密,需自行修改serverHost、serverPort、password)

{
  "localPort": 1080,
  "serverHost": "0.0.0.0",
  "serverPort": [9999],
  "protocol": "shadowsocks",
  "encryption": "bf-cfb",
  "password": "my_password",
  "process": ["encrypt"]
}

Shadowsocks+流量压缩 (采用aes-256-cfb加密,需自行修改serverHost、serverPort、password)

{
  "localPort": 1080,
  "serverHost": "0.0.0.0",
  "serverPort": [9999],
  "protocol": "shadowsocks",
  "encryption": "aes-256-cfb",
  "password": "my_password",
  "process": ["compress", "encrypt"]
}

Shadowsocks+零字节填充 (采用blowfish-cfb加密, 需自行修改serverHost、serverPort、password)

{
  "localPort": 1080,
  "serverHost": "0.0.0.0",
  "serverPort": [9999],
  "protocol": "shadowsocks",
  "encryption": "bf-cfb",
  "password": "my_password",
  "process": ["zero-padding", "encrypt"]
}

Http伪装 (采用aes-256-cfb加密,需自行修改serverHost、serverPort、password)

{
  "localPort": 1080,
  "serverHost": "0.0.0.0",
  "serverPort": [9999],
  "protocol": "fakedhttp",
  "encryption": "aes-256-cfb",
  "password": "my_password",
  "process": ["encrypt"]
}

Http伪装 (采用aes-256-cfb加密,需自行修改serverHost、serverPort、password)

{
  "localPort": 1080,
  "serverHost": "0.0.0.0",
  "serverPort": [9999],
  "protocol": "fakedhttp",
  "encryption": "aes-256-cfb",
  "password": "my_password",
  "process": ["encrypt"]
}

无加密+Http伪装 (需自行修改serverHost、serverPort)

{
  "localPort": 1080,
  "serverHost": "0.0.0.0",
  "serverPort": [9999],
  "protocol": "fakedhttp",
  "process": ["raw"]
}

无加密+Http伪装+流量压缩 (需自行修改serverHost、serverPort)

{
  "localPort": 1080,
  "serverHost": "0.0.0.0",
  "serverPort": [9999],
  "protocol": "fakedhttp",
  "process": ["compress"]
}

无加密+随机字节填充 (需自行修改serverHost、serverPort)

{
  "localPort": 1080,
  "serverHost": "0.0.0.0",
  "serverPort": [9999],
  "process": ["random-padding"]
}