Skip to content

示例配置 ​

json
{
  "PidFile": "amy4.pid",
  "AmyIns": [{
    "ProxyType": "Dns",
    "DnsSettings": {
      "ListenAddr": ":10530"
    }
  }, {
    "ProxyType": "Socks5",
    "Socks5Settings": {
      "ListenAddr": ":10800"
    }
  }],
  "Log": {
    "FilePath": "amy4.log"
  },
  "//": "以上内容不能修改",
  "AmyOuts": [{
    "Tag": "http",
    "ProxyType": "http",
    "HttpSettings": {
      "DestAddrsStrategy": "IP",
      "HttpAddrs": ["10.0.0.200:80"],
      "//": "HTTP模块",
      "HttpModify": {
        "DelLine": ["x-online-host", "host"],
        "SetFirst": "[M] [U] [V]\r\nX-Online-Host:\t\t[H]\r\nHost:a.189.cn\r\n"
      },
      "//": "HTTPS地址",
      "TunnelAddrs": ["180.97.104.168:443"],
      "//": "HTTPS模块",
      "TunnelModify": {
        "DelLine": ["host"],
        "SetFirst": "[M] [H]/amdc.alipay.com [V]\r\n"
      },
      "//": "Http TCP连接池, Net模式下不支持(不设置DestAddrs)",
      "HttpTCPPool": {
        "MaxConn": 20,
        "MinConn": 3,
        "DialSpeed": 9,
        "IdleSec": 57
      },
      "//": "Tunnel TCP连接池, 不设置则不开启",
      "TunnelTCPPool": {
        "MaxConn": 30,
        "MinConn": 5,
        "DialSpeed": 9,
        "IdleSec": 57
      }
    }
  }, {
    "Tag": "ANet",
    "ProxyType": "ANet",
    "ANetSettings": {
      "DestAddrsStrategy": "IP",
      "//": "可改为服务器地址,这样可以不经过百度直连减少一层代理,但是这样需要用host免",
      "DestAddrs": ["180.97.104.168:443"],
      "FFHost": "amdc.alipay.com",
      "HTTPRequest": "CONNECT 服务器IP:服务器端口/amdc.alipay.com HTTP/1.1\r\nUser-Agent: baiduboxapp\r\nX-T5-Auth: 1967948331\r\n\r\n",
      "ServerKey": "服务器密码",
      "//": "TCP连接池, 不设置则不开启",
      "TCPPool": {
        "MaxConn": 30,
        "MinConn": 5,
        "DialSpeed": 9,
        "IdleSec": 57
      }
    }
  }],
  "Routers": [{
    "OutTags": ["http"],
    "Rules": {
      "DNSQType": ["A", "AAAA"]
    }
  }, {
    "OutTags": ["http"],
    "Rules": {
      "Network": ["tcp"],
      "DPort": ["65", "80", "443", "2020", "4949", "6447", "8080", "8081", "8443", "9443", "11762", "14000", "21762", "31762", "33445", "41762", "49156", "51762", "61762"]
    }
  }, {
    "OutTags": ["ANet"],
    "Rules": {
      "!Protocol": ["http"]
    }
  }]
}