Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同一配置文件中,填入多个服务器会导致连接超时 #56

Open
KazamaSion opened this issue Dec 14, 2017 · 0 comments
Open

Comments

@KazamaSion
Copy link

KazamaSion commented Dec 14, 2017

症状:所有连接均超时(无论是否直连)。

版本:0.10.4
Andorid: 6.0.1
处理器:高通 MSM8953 八核
内存:4G

Logcat: https://paste.ee/p/wvtoq#VFHNMu4WpKf9uKz3mESRiGAI23fgAM7c
配置文件如下:(已知在 Windows 端此配置文件没有运行问题)

{
  "log": {
    "loglevel": "warning"
  },
  "inbound": {
    "port": 3120,
    "listen": "127.0.0.1",
    "protocol": "socks",
    "settings": {
      "auth": "noauth",
      "udp": false,
      "ip": "127.0.0.1"
    }
  },
  "inboundDetour": [{
    "listen": "127.0.0.1",
    "protocol": "http",
    "port": 3121,
    "settings": {}
  }],
  "outbound": {
    "protocol": "vmess",
    "settings": {
      "vnext": [{
        "address": "address",
        "port": 443,
        "users": [{
          "id": "uuid",
          "alterId": 1,
          "security": "auto"
        }]
      }]
    },
    "mux": {
      "enabled": true
    },
    "streamSettings": {
      "network": "tcp",
      "security": "tls",
      "tlsSettings": {
        "serverName": "sth.host.test",
        "allowInsecure": true
      },
      "tcpSettings": {
        "connectionReuse": true,
        "header": {
          "type": "http",
          "request": {
            "version": "1",
            "method": "GET",
            "path": ["/path1/"],
            "headers": {
              "Host": ["sth.host.test"],
              "User-Agent": [
                "UA"
              ],
              "Accept-Encoding": ["gzip, deflate"],
              "Connection": ["keep-alive"],
              "Pragma": "no-cache"
            }
          }
        }
      }
    },
    "tag": "sth.tag.1"
  },
  "outboundDetour": [{
      "protocol": "freedom",
      "settings": {},
      "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    },
    {
      "protocol": "shadowsocks",
      "settings": {
        "servers": [{
          "email": "email.3",
          "address": "address",
          "port": 1234,
          "method": "method",
          "password": "pw",
          "ota": false,
          "level": 0
        }]
      },
      "tag": "sth.tag.3"
    },
    {
      "protocol": "shadowsocks",
      "settings": {
        "servers": [{
            "email": "email.2",
            "address": "address",
            "port": 1234,
            "method": "method",
            "password": "pw",
            "ota": false,
            "level": 0
          },
          {
            "email": "email.2",
            "address": "address",
            "port": 1234,
            "method": "method",
            "password": "pw",
            "ota": false,
            "level": 0
          }
        ]
      },
      "tag": "sth.tag.2"
    },
    {
      "protocol": "shadowsocks",
      "settings": {
        "servers": [{
            "email": "email.1",
            "address": "address",
            "port": 1234,
            "method": "method",
            "password": "pw",
            "ota": false,
            "level": 0
          },
          {
            "email": "email.1",
            "address": "address",
            "port": 1234,
            "method": "method",
            "password": "pw",
            "ota": false,
            "level": 0
          }
        ]
      },
      "tag": "sth.tag.4"
    }
  ],
  "dns": {
    "hosts": {
      "t.cn": "114.134.80.138",
      "weibo.com": "114.134.80.162"
    },
    "servers": [
      "localhost",
      "8.8.8.8",
      "8.8.4.4",
      "9.9.9.9"
    ]
  },
  "routing": {
    "strategy": "rules",
    "settings": {
      "domainStrategy": "IPOnDemand",
      "rules": [{
          "type": "field",
          "domain": [
            "regexp:\\\\([^\\s]+map\\.baidu\\.com|ulog\\.imap\\.baidu\\.com|newloc\\.map\\.n\\.shifen.com)"
          ],
          "outboundTag": "blocked"
        },
        {
          "type": "field",
          "domain": [
            "geosite:cn"
          ],
          "ip": [
            "0.0.0.0/8",
            "10.0.0.0/8",
            "100.64.0.0/10",
            "127.0.0.0/8",
            "169.254.0.0/16",
            "172.16.0.0/12",
            "192.0.0.0/24",
            "192.0.2.0/24",
            "192.168.0.0/16",
            "198.18.0.0/15",
            "198.51.100.0/24",
            "203.0.113.0/24",
            "::1/128",
            "fc00::/7",
            "fe80::/10",
            "221.181.103.51",
            "geoip:cn"
          ],
          "outboundTag": "direct"
        },
        {
          "type": "field",
          "domain": [
            "domain:weibo.com",
            "domain:weibo.cn"
          ],
          "ip": [
            "geoip:hk"
          ],
          "outboundTag": "sth.tag.1"
        },
        {
          "type": "field",
          "ip": [
            "geoip:jp"
          ],
          "outboundTag": "sth.tag.2"
        },
        {
          "type": "field",
          "ip": [
            "geoip:us"
          ],
          "outboundTag": "sth.tag.3"
        },
        {
          "type": "field",
          "ip": [
            "149.154.168.0/22", // Telegram SG
            "91.108.16.0/22",
            "91.108.56.0/22",
            "geoip:sg"
          ],
          "outboundTag": "sth.tag.4"
        }
      ]
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant