v2ray / v2ray-core

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

多个代理使用问题 #2713

Closed ghost closed 4 years ago

ghost commented 4 years ago

您好 我在PC端使用v2ray 4.27.0客户端, 客户端在火狐浏览器上配合SwitchyOmega插件. 然后我PC连接的家庭路由器上有我朋友搭的SSR客户端. 我在浏览器上进入www.ip111.cn网页时显示的国外地址是显示路由器上的SSR地址, 但是我v2ray远端确实有收到这浏览器请求. 然后我在SwitchyOmega上调整为全部用v2ray的方式时, 也是显示的是路由器的SSR地址, 请问这是说明只要我在路由器下, 就都会走那SSR地址嘛?

服务器端配置:

{
  "inbounds": [{
    "port": 11808,
    "protocol": "vmess",
    "settings": {
      "clients": [
        {
          "id": "f4f5288b-adb1-42c6-bc41-5cebeefe3c48",
          "level": 1,
          "alterId": 64
        }
      ]
    }
  }],
  "outbounds": [{
    "protocol": "freedom",
    "settings": {}
  },{
    "protocol": "blackhole",
    "settings": {},
    "tag": "blocked"
  }],
  "routing": {
    "rules": [
      {
        "type": "field",
        "ip": ["geoip:private"],
        "outboundTag": "blocked"
      }
    ]
  }
}

客户端配置:

        {
      "log": {
        "access": "",
        "error": "",
        "loglevel": "warning"
      },
      "inbounds": [
        {
          "port": 10804,
          "listen": "127.0.0.1",
          "protocol": "socks",
          "settings": 
          {
            "auth": "noauth",
            "udp": true,
            "ip": "127.0.0.1",
            "clients": null
          },
          "streamSettings": null
        },
        {
          "port": 10805,
          "listen": "127.0.0.1",
          "protocol": "http",
          "settings": {
            "auth": "noauth",
            "udp": true,
            "ip": "127.0.0.1",
            "clients": null
          },
          "streamSettings": null
      }],
      "outbounds": [{
        "tag": "agentout",
        "protocol": "vmess",
        "settings": {
          "vnext": [
            {
              "address": "X.X.X.X", 
              "port": 11808, 
              "users": [
                {
                  "id": "f4fXXX-XXX-XXX-XXX-XXX3c48", 
                  "alterId": 64, 
                  "email": "t@t.tt",
                  "security": "aes-128-gcm"
                }
              ]
            }
          ],
          "servers": null
        },
        "streamSettings": {
          "network": "tcp", 
          "security": "",
          "tlsSettings": null,
          "tcpSettings": null,
          "kcpSettings": null,
          "wsSettings": null,
          "httpSettings": null
        },
        "mux": {
          "enabled": true
        }
      }],
      "inboundDetour": null,
      "outboundDetour": [
        {
          "protocol": "freedom",
          "settings": {
            "response": null
          },
          "tag": "direct"
        },
        {
          "protocol": "blackhole",
          "settings": {
            "response": {
              "type": "http"
            }
          },
          "tag": "blockout"
        }
      ],
      "dns": {
        "servers": [
          "8.8.8.8",
          "8.8.4.4",
          "localhost"
        ]
      },
      "routing": {
        "strategy": "rules",
        "settings": {
          "domainStrategy": "IPIfNonMatch",
          "rules": [
            {
              "type": "field",
              "port": null,
              "outboundTag": "direct",
              "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"
              ],
              "domain": null
            }
          ]
        }
      }
    }

这是我SwitchyOmega插件代理的配置: image

v2ray服务器日志: image

ghost commented 4 years ago

I found a problem with my configuration file, which has now been corrected.