logo NodeSeekbeta

[已解决]电脑tg如何通过ipv6连接

12
  • 看了几遍,都不知道你说的啥意思。没有点具体的东西

  • 系。

  • @dora2 #12
    起初socks的地址确实填的是127.0.0.1:port,经9楼指点后,浏览器和tg代理服务器地址改为了::1,端口1080,IPv6 状况评分依然 10/10,test-ipv6显示的ip也确实是小鸡IP,浏览器依然正常使用,tg依然一直正在连接。下面是我xray现在的配置,大佬帮我看一下有啥问题吗

    {
      "dns": {
        "servers": [
          // 2.1 国外域名使用国外DNS查询 cloudflare dns
          {
            "address": "2606:4700::1111",
            "domains": ["geosite:geolocation-!cn"]
          },
         //google dns
          {
            "address": "2001:4860:4860::8888",
            "domains": ["geosite:geolocation-!cn"]
          },
          // 2.2 国内域名使用国内DNS查询 阿里dns
          {
            "address": "2400:3200::1",
            "domains": ["geosite:cn"],
            "expectIPs": ["geoip:cn"]
          },
          // 2.3 作为2.2的备份,对国内网站进行二次查询 百度dns
          {
            "address": "2400:da00::6666",
            "domains": ["geosite:cn"]
          },
          // 2.4 最后的备份,上面全部失败时,用本机DNS查询
          "localhost"
        ]
      },
      "routing": {
        "domainStrategy": "AsIs",
        "rules": [
          // 1.1  广告域名集屏蔽
          {
            "type": "field",
            "domain": ["geosite:category-ads-all"],
            "outboundTag": "block"
          },
          // 2.1 国内域名集、指定子域名直连
          {
            "type": "field",
            "domain": ["geosite:cn"],
            "outboundTag": "direct"
          },
          // 2.2 本机内部地址+局域网、国内IP、指定IP直连
          {
            "type": "field",
            "ip": ["geoip:private", "geoip:cn"],
            "outboundTag": "direct"
          },
          // 2.3 BT协议流量直连
          {
            "type": "field",
            "protocol": ["bittorrent"],
            "outboundTag": "direct"
          },
          // 3.1 国外域名集、指定子域名、指定泛域名转发VPS
          {
            "type": "field",
            "domain": [
              "geosite:geolocation-!cn",
              "domain:ipv6-test.com",
              "domain:test-ipv6.com"
            ],
            "outboundTag": "proxy"
          },
          // 3.2 指定IP转发VPS
          {
            "type": "field",
            "ip": ["2606:4700::1111"],
            "outboundTag": "proxy"
          }
        ]
      },
      "inbounds": [
        {
          "tag": "socks-in",
          "protocol": "socks",
          "listen": "::1", // 这个是通过socks5协议做本地转发的地址
          "port": 1080, // 这个是通过socks5协议做本地转发的端口
          "settings": {
            "udp": true,
            "allowTransparent": false
          },
          "sniffing": {
            "enabled": true,
            "destOverride": [ "http", "tls" ]
          }
        },
        {
          "tag": "http-in",
          "protocol": "http",
          "listen": "::1", // 这个是通过http协议做本地转发的地址
          "port": 1081, // 这个是通过http协议做本地转发的端口
          "settings": {
            "udp": true,
            "allowTransparent": false //当为 true 时,会转发所有 HTTP 请求,而非只是代理请求。
          },
          "sniffing": {
            "enabled": true,
            "destOverride": [ "http", "tls" ]
          }
        }
      ],
      "outbounds": [
        {
          "tag": "direct",
          "protocol": "freedom"
        },
        {
          "tag": "proxy",
          "protocol": "vless",
          "settings": {
            "vnext": [
              {
                "address": "xxx", // 替换成你的真实域名
                "port": 443,
                "users": [
                  {
                    "id": "xxx", // 和服务器端的一致
                    "flow": "xtls-rprx-vision",
                    "encryption": "none",
                    "level": 0
                  }
                ]
              }
            ]
          },
          "streamSettings": {
            "network": "tcp",
            "security": "tls",
            "tlsSettings": {
              "serverName": "xxx", // 替换成你的真实域名
              "allowInsecure": false, // 禁止不安全证书
              "fingerprint": "chrome",
              "alpn": ["h2"]
            }
          }
        },
        {
          "tag": "block",
          "protocol": "blackhole"
        }
      ]
    }
    
  • 1

  • @dora2 #14
    我跟你的设置一模一样,我刚刚升级了一下软件,啥都没改,发现突然就可以用了,太奇怪了

  • 笑自己。

12

你好啊,陌生人!

我的朋友,看起来你是新来的,如果想参与到讨论中,点击下面的按钮!

📈用户数目📈

目前论坛共有14984位seeker

🎉欢迎新用户🎉