跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 求教V2ray配置
未分類
22 8 月 2021

求教V2ray配置

Dwight 大佬有话说 :

求教V2ray配置

:'(   VPS本地有一个Socks5服务端端口1081
想要在手机V2让访问的数据都是首先经过1081得到的 也就是落地

但是因为Socks5没得办法转发DNS      

就想通过 " 任意门 " 然后再再路由里拦截53端口流量发送到freedom

V2ray配置鼓捣了两三个晚上也没弄好
不知道哪里写的不对

MJJ们救命这感觉太难受了

{

"inbounds": [

{
      "tag":"transparent",
      "port": 52888,
      "protocol": "dokodemo-door",
      "settings": {
      "network": "tcp,udp",
      "followRedirect": true
      },
      "sniffing": {
      "enabled": true,
      "destOverride": [
          "http",
          "tls"
      ]
      },
      "streamSettings": {
      "sockopt": {
          "tproxy": "tproxy" // 透明代理使用 TPROXY 方式
      }
      }
    },

{
    "port": 52666, // 服务器监听端口,必须和上面的一样
    "protocol": "vmess",
    "settings": {
      "clients": [{ "id": "c61f0b55-1d44-bd65-2568-dc4208d05466" }]
    }
}

],

"outbounds": [{
    "tag": "proxy",
    "protocol": "socks",
    "settings": {
"servers": [
    {
      "address": "0.0.0.0",
      "port": 1081,
      "users": [
      ]
    }
]
}
},
      {
      "tag": "direct",
      "protocol": "freedom",
      "settings": {
      "domainStrategy": "UseIP"
      },
      "streamSettings": {
      "sockopt": {
          "mark": 255
      }
      }      
    }

]

    "routing": {
    "domainStrategy": "IPOnDemand",
    "rules": [
      { // 劫持 53 端口 UDP 流量转发到直连
      "type": "field",
      "inboundTag": [
          "transparent"
      ],
      "port": 53,
      "network": "udp",
      "outboundTag": "direct"
      }

    ]
}

}

如果有其它更简单的方法也愿闻其详

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具