eycorsican / kitsunebi-android

A fully-featured V2Ray client for Android.
MIT License
1.78k stars 317 forks source link

源码中的软件使用时导入ss配置连接不上服务器 #161

Open Diuyon opened 4 years ago

Diuyon commented 4 years ago

你正在使用哪个版本?

源码

使用最新版本是否还遇到同样的问题?

你的手机型号和手机操作系统版本是多少?

你遇到了什么问题?

使用 Vmess 当做 outbound,可以连接服务器,使用 shadowsocks 连接不上服务器。

你遇到的问题可以用固定步骤重现吗?

能,直接填入配置即可。

你正使用的配置


<!-- 请把你的配置文件复制至此 (建议把服务器和用户信息去掉) -->
{
  "dns": {
    "clientIp": "172.17.100.15",
    "hosts": {
      "localhost": "127.0.0.1"
    },
    "servers": [
      "114.114.114.114",
      {
        "address": "8.8.8.8",
        "domains": [
          "google",
          "android",
          "fbcdn",
          "facebook",
          "domain:fb.com",
          "instagram",
          "whatsapp",
          "akamai",
          "domain:line-scdn.net",
          "domain:line.me",
          "domain:naver.jp"
        ],
        "port": 53
      }
    ]
  },
  "log": {
    "loglevel": "warning"
  },
  "outbounds": [
    {
      "protocol": "shadowsocks",
      "settings": {
      "servers": [
                {
                    "address": "180.101.193.164",
                    "method": "aes-128-gcm",
                    "ota": true,
                    "password": "sspasswd",
                    "port": 10087  
                }
              ]
      },
      "streamSettings": {
        "network": "tcp"
      },
      "tag": "proxy"
    },
    {
      "protocol": "freedom",
      "settings": {
        "domainStrategy": "UseIP"
      },
      "streamSettings": {},
      "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "block"
    },
    {
      "protocol": "dns",
      "tag": "dns-out"
    }
  ],
  "policy": {
    "levels": {
      "0": {
        "bufferSize": 4096,
        "connIdle": 30,
        "downlinkOnly": 0,
        "handshake": 4,
        "uplinkOnly": 0
      }
    }
  },
  "routing": {
    "domainStrategy": "IPIfNonMatch",
    "rules": [
      {
        "inboundTag": [
          "tun2socks"
        ],
        "network": "udp",
        "port": 53,
        "outboundTag": "dns-out",
        "type": "field"
      },
      {
        "domain": [
          "domain:setup.icloud.com"
        ],
        "outboundTag": "proxy",
        "type": "field"
      },
      {
        "ip": [
          "8.8.8.8\/32",
          "8.8.4.4\/32",
          "1.1.1.1\/32",
          "1.0.0.1\/32",
          "9.9.9.9\/32",
          "149.112.112.112\/32",
          "208.67.222.222\/32",
          "208.67.220.220\/32"
        ],
        "outboundTag": "proxy",
        "type": "field"
      },
      {
        "ip": [
          "geoip:cn",
          "geoip:private"
        ],
        "outboundTag": "proxy",
        "type": "field"
      },
      {
        "outboundTag": "proxy",
        "port": "123",
        "type": "field"
      },
      {
        "domain": [
          "domain:pstatp.com",
          "domain:snssdk.com",
          "domain:toutiao.com",
          "domain:ixigua.com",
          "domain:apple.com",
          "domain:crashlytics.com",
          "domain:icloud.com",
          "cctv",
          "umeng",
          "domain:weico.cc",
          "domain:jd.com",
          "domain:360buy.com",
          "domain:360buyimg.com",
          "domain:douyu.tv",
          "domain:douyu.com",
          "domain:douyucdn.cn",
          "geosite:cn"
        ],
        "outboundTag": "proxy",
        "type": "field"
      },
      {
        "ip": [
          "149.154.167.0\/24",
          "149.154.175.0\/24",
          "91.108.56.0\/24",
          "125.209.222.0\/24"
        ],
        "outboundTag": "proxy",
        "type": "field"
      },
      {
        "domain": [
          "twitter",
          "domain:twimg.com",
          "domain:t.co",
          "google",
          "domain:ggpht.com",
          "domain:gstatic.com",
          "domain:youtube.com",
          "domain:ytimg.com",
          "pixiv",
          "domain:pximg.net",
          "tumblr",
          "instagram",
          "domain:line-scdn.net",
          "domain:line.me",
          "domain:naver.jp",
          "domain:facebook.com",
          "domain:fbcdn.net",
          "pinterest",
          "github",
          "dropbox",
          "netflix",
          "domain:medium.com",
          "domain:fivecdm.com"
        ],
        "outboundTag": "proxy",
        "type": "field"
      }
    ],
    "strategy": "rules"
  }
}