v2ray / v2ray-core

A platform for building proxies to bypass network restrictions.
https://www.v2ray.com/
MIT License
45.01k stars 8.95k forks source link

V2ray在Steam社区不工作 #1255

Closed Mr-Sheep closed 5 years ago

Mr-Sheep commented 5 years ago

提交 Issue 之前请先阅读 Issue 指引,然后回答下面的问题,谢谢。 除非特殊情况,请完整填写所有问题。不按模板发的 issue 将直接被关闭。

1) 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明) v3.38 2) 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。 使用v2ray访问steam社区 3) 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等) 返回-102错误 4) 你期待看到的正确表现是怎样的? 正常访问steam社区 5) 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。

服务器端配置:
{
  "inbound": {
    "streamSettings": {
      "network": "ws", 
      "wsSettings": { 
        "headers": {
          "host": "domain"
        },
      "path": "/ws/"
      }
    }, 
    "protocol": "vmess", 
    "port": port, 
    "settings": {
      "clients": [
        {
          "alterId": 100, 
          "security": "auto", 
          "id": "id", 
          "level": 1
        }
      ]
    }
  }, 
  "outboundDetour": [
    {
      "tag": "blocked", 
      "protocol": "blackhole", 
      "settings": {}
    }
  ], 
  "outbound": {
    "protocol": "freedom", 
    "settings": {}
  }, 
  "log": {
    "access": "/var/log/v2ray/access.log", 
    "loglevel": "info", 
    "error": "/var/log/v2ray/error.log"
  }, 
  "routing": {
    "settings": {
      "rules": [
        {
          "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"
          ], 
          "type": "field", 
          "outboundTag": "blocked"
        }
      ]
    }, 
    "strategy": "rules"
  }
}
客户端配置:
{
  "policy" : {
    "levels" : {
      "0" : {
        "uplinkOnly" : 0
      }
    }
  },
  "dns" : {
    "servers" : [
      "localhost",
      "8.8.8.8"
    ]
  },
  "outboundDetour" : [
    {
      "protocol" : "freedom",
      "tag" : "direct",
      "settings" : {

      }
    }
  ],
  "inbound" : {
    "listen" : "0.0.0.0",
    "port" : 1081,
    "protocol" : "socks",
    "settings" : {
      "auth" : "noauth",
      "udp" : false,
      "ip" : "127.0.0.1"
    }
  },
  "inboundDetour" : [
    {
      "listen" : "0.0.0.0",
      "allocate" : {
        "strategy" : "always",
        "refresh" : 5,
        "concurrency" : 3
      },
      "port" : 8001,
      "protocol" : "http",
      "tag" : "httpDetour",
      "domainOverride" : [
        "http",
        "tls"
      ],
      "streamSettings" : {

      },
      "settings" : {
        "timeout" : 0
      }
    }
  ],
  "log" : {
    "error" : "\/var\/folders\/jt\/dc88j3317917cz1n8mxqj8jc0000gn\/T\/cenmrev.v2rayx.log.C12987B5-A40F-49D5-AD84-82984F1BF42C\/error.log",
    "loglevel" : "debug",
    "access" : "\/var\/folders\/jt\/dc88j3317917cz1n8mxqj8jc0000gn\/T\/cenmrev.v2rayx.log.C12987B5-A40F-49D5-AD84-82984F1BF42C\/access.log"
  },
  "routing" : {
    "strategy" : "rules",
    "settings" : {
      "domainStrategy" : "IPIfNonMatch",
      "rules" : [
        {
          "domain" : [
            "localhost"
          ],
          "type" : "field",
          "outboundTag" : "direct"
        },
        {
          "type" : "field",
          "outboundTag" : "direct",
          "ip" : [
            "geoip:private"
          ]
        }
      ]
    }
  },
  "outbound" : {
    "sendThrough" : "0.0.0.0",
    "mux" : {
      "enabled" : true,
      "concurrency" : 8
    },
    "protocol" : "vmess",
    "settings" : {
      "vnext" : [
        {
          "address" : "domain",
          "port" : 443,
          "users" : [
            {
              "id" : "id",
              "alterId" : 100,
              "security" : "auto",
              "level" : 0
            }
          ],
          "remark" : "JP"
        }
      ]
    },
    "streamSettings" : {
      "wsSettings" : {
        "path" : "\/ws\/",
        "headers" : {
          "Host" : "server.cc"
        }
      },
      "tlsSettings" : {
        "serverName" : "domain",
        "allowInsecure" : false
      },
      "httpSettings" : {
        "path" : "",
        "host" : [
          ""
        ]
      },
      "tcpSettings" : {
        "header" : {
          "type" : "none"
        }
      },
      "kcpSettings" : {
        "header" : {
          "type" : "none"
        },
        "mtu" : 1350,
        "congestion" : false,
        "tti" : 20,
        "uplinkCapacity" : 5,
        "writeBufferSize" : 1,
        "readBufferSize" : 1,
        "downlinkCapacity" : 20
      },
      "network" : "ws",
      "security" : "tls"
    }
  }
}

6) 请附上出错时软件输出的错误日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。

服务器端错误日志:

服务端找不到关于访问steam的信息 客户端错误日志: 2018/09/06 15:55:59 [Info] [1399730783] Proxy|Freedom: opening connection to tcp:steamcommunity.com:443 2018/09/06 15:55:59 [Info] [1399730783] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:55:59 [Info] [1399730783] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:55:59 [Info] [1399730783] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:56:00 [Info] [1399730783] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:56:00 [Info] [1399730783] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:56:00 [Info] [1399730783] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|Freedom: failed to open connection to tcp:steamcommunity.com:443 > Retry: [dial tcp 127.0.0.1:443: connect: connection refused] > Retry: all retry attempts failed 2018/09/06 15:56:17 [Info] [3194170681] Proxy|Socks: TCP Connect request to tcp:steamcommunity.com:443 2018/09/06 15:56:17 [Info] App|Router: looking for IP for domain: steamcommunity.com 2018/09/06 15:56:17 [Info] [3194170681] App|Dispatcher: taking detour [direct] for [tcp:steamcommunity.com:443] 2018/09/06 15:56:17 [Info] [3194170681] Proxy|Freedom: opening connection to tcp:steamcommunity.com:443 2018/09/06 15:56:17 [Info] [3194170681] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:56:17 [Info] [3194170681] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:56:17 [Info] [525315466] Proxy|Socks: TCP Connect request to tcp:steamcommunity.com:443 2018/09/06 15:56:17 [Info] App|Router: looking for IP for domain: steamcommunity.com 2018/09/06 15:56:17 [Info] [525315466] App|Dispatcher: taking detour [direct] for [tcp:steamcommunity.com:443] 2018/09/06 15:56:17 [Info] [525315466] Proxy|Freedom: opening connection to tcp:steamcommunity.com:443 2018/09/06 15:56:17 [Info] [525315466] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:56:17 [Info] [525315466] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:56:17 [Info] [3194170681] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:56:17 [Info] [525315466] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:56:17 [Info] [3194170681] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:56:17 [Info] [525315466] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:56:18 [Info] [525315466] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:56:18 [Info] [3194170681] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:56:18 [Info] [3194170681] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|Freedom: failed to open connection to tcp:steamcommunity.com:443 > Retry: [dial tcp 127.0.0.1:443: connect: connection refused] > Retry: all retry attempts failed 2018/09/06 15:56:18 [Info] [525315466] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|Freedom: failed to open connection to tcp:steamcommunity.com:443 > Retry: [dial tcp 127.0.0.1:443: connect: connection refused] > Retry: all retry attempts failed 2018/09/06 15:56:18 [Info] [2560500398] Proxy|Socks: TCP Connect request to tcp:steamcommunity.com:443 2018/09/06 15:56:18 [Info] App|Router: looking for IP for domain: steamcommunity.com 2018/09/06 15:56:18 [Info] [2560500398] App|Dispatcher: taking detour [direct] for [tcp:steamcommunity.com:443] 2018/09/06 15:56:18 [Info] [2560500398] Proxy|Freedom: opening connection to tcp:steamcommunity.com:443 2018/09/06 15:56:18 [Info] [2560500398] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:56:18 [Info] [2560500398] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:56:18 [Info] [2560500398] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:56:19 [Info] [2560500398] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:56:19 [Info] [2560500398] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:56:19 [Info] [2560500398] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|Freedom: failed to open connection to tcp:steamcommunity.com:443 > Retry: [dial tcp 127.0.0.1:443: connect: connection refused] > Retry: all retry attempts failed 2018/09/06 15:57:21 [Info] [2870346624] Proxy|Socks: TCP Connect request to tcp:steamcommunity.com:443 2018/09/06 15:57:21 [Info] App|Router: looking for IP for domain: steamcommunity.com 2018/09/06 15:57:21 [Info] [2870346624] App|Dispatcher: taking detour [direct] for [tcp:steamcommunity.com:443] 2018/09/06 15:57:21 [Info] [2870346624] Proxy|Freedom: opening connection to tcp:steamcommunity.com:443 2018/09/06 15:57:21 [Info] [2870346624] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:57:21 [Info] [2870346624] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:57:21 [Info] [2688533281] Proxy|Socks: TCP Connect request to tcp:steamcommunity.com:443 2018/09/06 15:57:21 [Info] App|Router: looking for IP for domain: steamcommunity.com 2018/09/06 15:57:21 [Info] [2688533281] App|Dispatcher: taking detour [direct] for [tcp:steamcommunity.com:443] 2018/09/06 15:57:21 [Info] [2688533281] Proxy|Freedom: opening connection to tcp:steamcommunity.com:443 2018/09/06 15:57:21 [Info] [2688533281] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:57:21 [Info] [2688533281] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:57:21 [Info] [2870346624] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:57:21 [Info] [2688533281] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:57:21 [Info] [2870346624] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:57:21 [Info] [2688533281] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:57:21 [Info] [2688533281] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:57:21 [Info] [2870346624] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:57:22 [Info] [2870346624] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|Freedom: failed to open connection to tcp:steamcommunity.com:443 > Retry: [dial tcp 127.0.0.1:443: connect: connection refused] > Retry: all retry attempts failed 2018/09/06 15:57:22 [Info] [2688533281] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|Freedom: failed to open connection to tcp:steamcommunity.com:443 > Retry: [dial tcp 127.0.0.1:443: connect: connection refused] > Retry: all retry attempts failed 2018/09/06 15:57:22 [Info] [3612696064] Proxy|Socks: TCP Connect request to tcp:steamcommunity.com:443 2018/09/06 15:57:22 [Info] App|Router: looking for IP for domain: steamcommunity.com 2018/09/06 15:57:22 [Info] [3612696064] App|Dispatcher: taking detour [direct] for [tcp:steamcommunity.com:443] 2018/09/06 15:57:22 [Info] [3612696064] Proxy|Freedom: opening connection to tcp:steamcommunity.com:443 2018/09/06 15:57:22 [Info] [3612696064] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:57:22 [Info] [3612696064] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:57:22 [Info] [3612696064] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:57:22 [Info] [3612696064] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:57:22 [Info] [3612696064] Transport|Internet|TCP: dialing TCP to tcp:steamcommunity.com:443 2018/09/06 15:57:23 [Info] [3612696064] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|Freedom: failed to open connection to tcp:steamcommunity.com:443 > Retry: [dial tcp 127.0.0.1:443: connect: connection refused] > Retry: all retry attempts failed

7) 请附上访问日志。在 Linux 中,日志通常在 /var/log/v2ray/access.log 文件中。 找不到相关信息

8) 其它相关的配置文件(如 Nginx)和相关日志。 server { listen 80; listen 443 ssl http2; server_name 你的域名 *.你的域名; index index.php index.html index.htm default.php default.htm default.html; root /www/wwwroot/你的域名;

#SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则
#error_page 404/404.html;
#HTTP_TO_HTTPS_START
if ($server_port !~ 443){
    rewrite ^(/.*)$ https://$host$1 permanent;
}
#HTTP_TO_HTTPS_END
ssl_certificate    /etc/letsencrypt/live/你的域名/fullchain.pem;
ssl_certificate_key    /etc/letsencrypt/live/你的域名/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
error_page 497  https://$host$request_uri;

#SSL-END

#ERROR-PAGE-START  错误页配置,可以注释、删除或修改
error_page 404 /404.html;
error_page 502 /502.html;
#ERROR-PAGE-END

#PHP-INFO-START  PHP引用配置,可以注释或修改
include enable-php-72.conf;
#PHP-INFO-END

#REWRITE-START URL重写规则引用,修改后将导致面板设置的伪静态规则失效
include /www/server/panel/vhost/rewrite/你的域名.conf;
#REWRITE-END

#禁止访问的文件或目录
location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)
{
    return 404;
}

#一键申请SSL证书验证目录相关设置
location ~ \.well-known{
    allow all;
}

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
    expires      30d;
    error_log off;
    access_log off;
}

location ~ .*\.(js|css)?$
{
    expires      12h;
    error_log off;
    access_log off; 
}
access_log  /www/wwwlogs/你的域名.log;
error_log  /www/wwwlogs/你的域名.error.log;
         location /ws/ {   
         proxy_redirect off;
         proxy_pass http://127.0.0.1:你的端口; 
         proxy_http_version 1.1;
         proxy_set_header Upgrade $http_upgrade;
         proxy_set_header Connection "upgrade";
         proxy_set_header Host $http_host;            
      }

}

VictoriaRaymond commented 5 years ago

2018/09/06 15:57:22 [Info] [2870346624] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|Freedom: failed to open connection to tcp:steamcommunity.com:443 > Retry: [dial tcp 127.0.0.1:443: connect: connection refused] > Retry: all retry attempts failed

看上去你把 steamcommunity.com 解析到了 127.0.0.1,请检查你的本地DNS配置。