Appearance
示例配置
json
{
"//": "百度直连3: UDP直接连接到amy4Server(不经过百度,需要免流混淆), 其他流量经过百度直连代理, 脚本版不能与其他模式一起使用",
"PidFile": "amy4.pid",
"AmyIns": [{
"ProxyType": "Dns",
"DnsSettings": {
"ListenAddr": ":10530"
}
}, {
"ProxyType": "Socks5",
"Socks5Settings": {
"ListenAddr": ":10800"
}
}],
"Log": {
"FilePath": "amy4.log"
},
"//": "以上内容不能修改",
"AmyOuts": [{
"Tag": "baidu",
"//": "百度",
"ProxyType": "baidu",
"BaiduSettings": {
"Secret": "kyy_free",
"DestAddrs": ["157.0.148.53:443"],
"TunnelFirst": true,
"TCPPool": {
"MaxConn": 30,
"MinConn": 5,
"DialSpeed": 15,
"IdleSec": 295
}
}
}, {
"Tag": "ANet",
"ProxyType": "ANet",
"ANetSettings": {
"DestAddrsStrategy": "IP",
"DestAddrs": ["服务器IP:服务器端口"],
"ServerKey": "服务器密码",
"//": "需要将以下个host改为免流host",
"FFHost": "vd3.bdstatis.com",
"HTTPRequest": "GET / HTTP/1.1\r\nHost: vd3.bdstatis.com\r\nConnection: Upgrade\r\nUpgrade: websocket\r\nSec-Websocket-Protocol: chat, superchat\r\nSec-Websocket-Key: x3JJHMbDL1EzLkh9GBhxDw==\r\nSec-Websocket-Version: 13\r\n\r\n",
"TCPPool": {
"MaxConn": 20,
"MinConn": 5,
"DialSpeed": 9,
"IdleSec": 57
}
}
}],
"Routers": [{
"OutTags": ["baidu"],
"Rules": {
"DNSQType": ["A"]
}
}, {
"OutTags": ["baidu"],
"Rules": {
"Network": ["tcp"],
"IPVersion": [4],
"DPort": ["65", "80", "443", "1025-4443", "4445-5553", "5555-65535"]
}
}, {
"OutTags": ["ANet"],
"Rules": {
"IPVersion": [6]
}
}, {
"OutTags": ["ANet"],
"Rules": {
"!Protocol": ["http"]
}
}]
}