配置文件例子1
{
"inbounds": [
{
"port": 10001,
"tag": "in1",
"listen": "1.1.1.1",
"protocol":"shadowsocks",
"settings":{
"method": "aes-256-gcm",
"password": "password"
}
},
{
"port": 10001,
"tag": "in2",
"listen": "2.2.2.2",
"protocol":"shadowsocks",
"settings":{
"method": "aes-256-gcm",
"password": "password"
}
}
],
"outbounds": [
{
"tag":"out1",
"protocol": "freedom",
"sendThrough":"1.1.1.1"
},
{
"tag":"out2",
"protocol": "freedom",
"sendThrough":"2.2.2.2"
}
],
"routing": {
"rules": [
{
"type": "field",
"inboundTag": "in1",
"outboundTag": "out1"
},
{
"type": "field",
"inboundTag": "in2",
"outboundTag": "out2"
}
]
}
}
配置文件例子2
{
"inbounds": [
{
"port": 10001,
"tag": "in",
"listen": "1.1.1.1",
"protocol":"shadowsocks",
"settings":{
"method": "aes-256-gcm",
"password": "password"
}
}
],
"outbounds": [
{
"tag":"out",
"protocol": "freedom",
"sendThrough":"1.1.1.1"
}
],
"routing": {
"rules": [
{
"type": "field",
"inboundTag": "in",
"outboundTag": "out"
}
]
}
}