全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 2816|回复: 3

关于singbox 用在v2rayN上面的速度问题

[复制链接]
发表于 2023-4-28 21:52:44 | 显示全部楼层 |阅读模式
本帖最后由 log 于 2023-4-29 13:05 编辑

在容器上部署的singbox协议

部署了2个不同的方案, 1是只分流openai的流量到warp  2是所有的流量都走warp

方案1是正常的网页视频4K都能播放 (全部都容器本身流量,只有openai 走warp)

方案2全部流量走warp  但是打开网页都特别的卡     这是为啥?  客户端是v2rayN

方案2 只把下面的删掉了 其余的同方案1

  1.                                 "domain_keyword": [
  2.                                         "openai.com",
  3.                                         "ai.com"
  4.                                 ],
复制代码



方案1的源代码如下,

  1. {
  2.         "log": {
  3.                 "disabled": false,
  4.                 "level": "info",
  5.                 "output": "/dev/null",
  6.                 "timestamp": true
  7.         },
  8.         "dns": {
  9.                 "servers": [
  10.                         {
  11.                                 "tag": "google-tls",
  12.                                 "address": "local",
  13.                                 "address_strategy": "prefer_ipv4",
  14.                                 "strategy": "ipv4_only",
  15.                                 "detour": "direct"
  16.                         },
  17.                         {
  18.                                 "tag": "google-udp",
  19.                                 "address": "8.8.8.8",
  20.                                 "address_strategy": "prefer_ipv4",
  21.                                 "strategy": "prefer_ipv4",
  22.                                 "detour": "direct"
  23.                         }
  24.                 ],
  25.                 "strategy": "prefer_ipv4",
  26.                 "disable_cache": false,
  27.                 "disable_expire": false
  28.         },
  29.         "inbounds": [
  30.                 {
  31.                         "type": "vmess",
  32.                         "tag": "vmess-in",
  33.                         "listen": "0.0.0.0",
  34.                         "listen_port": 10000,
  35.                         "tcp_fast_open": false,
  36.                         "sniff": false,
  37.                         "sniff_override_destination": false,
  38.                         "domain_strategy": "prefer_ipv4",
  39.                         "proxy_protocol": false,
  40.                         "users": [
  41.                                 {
  42.                                         "name": "Misaka-blog",
  43.                                         "uuid": "UUID",
  44.                                         "alterId": 0
  45.                                 }
  46.                         ],
  47.                         "transport": {
  48.                                 "type": "ws",
  49.                                 "path": "VMESS_WSPATH"
  50.                         }
  51.                 },
  52.                 {
  53.                         "type": "vless",
  54.                         "tag": "vless-in",
  55.                         "listen": "0.0.0.0",
  56.                         "listen_port": 20000,
  57.                         "tcp_fast_open": false,
  58.                         "sniff": false,
  59.                         "sniff_override_destination": false,
  60.                         "domain_strategy": "prefer_ipv4",
  61.                         "proxy_protocol": false,
  62.                         "users": [
  63.                                 {
  64.                                         "name": "Misaka-blog",
  65.                                         "uuid": "UUID"
  66.                                 }
  67.                         ],
  68.                         "transport": {
  69.                                 "type": "ws",
  70.                                 "path": "VLESS_WSPATH"
  71.                         }
  72.                 },
  73.                 {
  74.                         "type": "trojan",
  75.                         "tag": "trojan-in",
  76.                         "listen": "0.0.0.0",
  77.                         "listen_port": 30000,
  78.                         "tcp_fast_open": false,
  79.                         "sniff": false,
  80.                         "sniff_override_destination": false,
  81.                         "domain_strategy": "prefer_ipv4",
  82.                         "proxy_protocol": false,
  83.                         "users": [
  84.                                 {
  85.                                         "name": "Misaka-blog",
  86.                                         "password": "UUID"
  87.                                 }
  88.                         ],
  89.                         "transport": {
  90.                                 "type": "ws",
  91.                                 "path": "TROJAN_WSPATH"
  92.                         }
  93.                 }
  94.         ],
  95.         "outbounds": [
  96.                 {
  97.                         "type": "direct",
  98.                         "tag": "direct"
  99.                 },
  100.                 {
  101.                         "type": "block",
  102.                         "tag": "block"
  103.                 },
  104.                 {
  105.                         "type": "dns",
  106.                         "tag": "dns-out"
  107.                 },
  108.                 {
  109.                         "tag": "wireguard-out",
  110.                         "type": "wireguard",
  111.                         "interface_name": "wgcf",
  112.                         "local_address": [
  113.                                 "172.16.0.2/32",
  114.                                 "2606:4700:110:8f0a:fcdb:db2f:3b3:4d49/128"
  115.                         ],
  116.                         "mtu": 1408,
  117.                         "peer_public_key": "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=",
  118.                         "private_key": "GAl2z55U2UzNU5FG+LW3kowK+BA/WGMi1dWYwx20pWk=",
  119.                         "server": "engage.cloudflareclient.com",
  120.                         "server_port": 1701,
  121.                         "system_interface": false
  122.                 }
  123.         ],
  124.         "route": {
  125.                 "rules": [
  126.                         {
  127.                                 "protocol": "dns",
  128.                                 "outbound": "dns-out"
  129.                         },
  130.                         {
  131.                                 "inbound": [
  132.                                         "vmess-in",
  133.                                         "vless-in",
  134.                                         "trojan-in"
  135.                                 ],
  136.                                 "domain_keyword": [
  137.                                         "openai.com",
  138.                                         "ai.com"
  139.                                 ],
  140.                                 "outbound": "wireguard-out"
  141.                         },
  142.                         {
  143.                                 "inbound": [
  144.                                         "vmess-in",
  145.                                         "vless-in",
  146.                                         "trojan-in"
  147.                                 ],
  148.                                 "geosite": [
  149.                                         "cn",
  150.                                         "category-ads-all"
  151.                                 ],
  152.                                 "geoip": "cn",
  153.                                 "outbound": "block"
  154.                         }
  155.                 ],
  156.                 "geoip": {
  157.                         "path": "geoip.db",
  158.                         "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db",
  159.                         "download_detour": "direct"
  160.                 },
  161.                 "geosite": {
  162.                         "path": "geosite.db",
  163.                         "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db",
  164.                         "download_detour": "direct"
  165.                 },
  166.                 "final": "direct",
  167.                 "auto_detect_interface": true
  168.         }
  169. }

复制代码
发表于 2023-4-28 22:27:20 | 显示全部楼层
检查一下dns设置, "address": "local", 这个怎么看都不像正确的
 楼主| 发表于 2023-4-29 09:03:04 | 显示全部楼层
nebulabox 发表于 2023-4-28 22:27
检查一下dns设置, "address": "local", 这个怎么看都不像正确的

完整的配置是正确的 方案1 是可以上网并且4K视频能跑的
 楼主| 发表于 2023-4-29 13:02:57 | 显示全部楼层
有么有大佬指点下的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-5-14 22:21 , Processed in 0.066383 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表