V2rayU
Edited: Saturday 7 June 2025

账号网址:

1 年 200 元 100MB 带宽不限流量。2 年 360.

SecureService -登录

当前这个服务商的有些域名服务器,比如美国和英国的,必须得用这个旧版本:v2.3.1

我的 pac 文件备份

! Put user rules line by line in this file.
! See https://adblockplus.org/en/filter-cheatsheet
||yt1s.com
||githubusercontent.com
||mcr.microsoft.com
||1drv.ms
|https://istio.io
||msauth.net
|https://tampermonkey
204.79.197.219

! ### MacWk.com Start

! BetterTouchTool
@@||folivora.ai
@@||www.folivora.ai
@@||updates.boastr.net
@@||updates.folivora.ai

! Keyboard Maestro
@@||www.keyboardmaestro.com

! ### MacWk.com End

使用 geoip 和 geosite,格式和手机客户端不一样,需要去掉逗号,每个地址用空行分割。这2个文件,和routing配置相关。

备份配置文件夹

USER="cdd"
sudo cp -r ~/.V2rayU/ /Users/$USER/Documents/软件配置云同步/v2rayU/bak
sudo cp -r ~/Library/LaunchAgents/yanue.v2rayu.v2ray-core.plist /Users/$USER/Documents/软件配置云同步/v2rayU
sudo cp -r ~/Library/Preferences/net.yanue.V2rayU.plist /Users/$USER/Documents/软件配置云同步/v2rayU

自建服务器

服务端配置 example:

{
  "log" : {
    "access": "/var/log/v2ray/access.log",
    "error": "/var/log/v2ray/error.log",
    "loglevel": "warning"
  },
  "inbounds": [{
    "port": 8899,
    "protocol": "vmess",
    "settings": {
      "clients": [
        {
          "id": "60ca58e9-003e-4c01-98de-c2223ae49153",
          "level": 1,
          "alterId": 64
        }
      ]
    }
  }],
  "outbounds": [{
    "protocol": "freedom",
    "settings": {}
  }]
}

客户端配置 example,即config.json文件:

  1{
  2  "log": {
  3    "error": "",
  4    "loglevel": "info",
  5    "access": ""
  6  },
  7  "inbounds": [
  8    {
  9      "sniffing": {
 10        "enabled": true,
 11        "destOverride": [
 12          "tls",
 13          "http"
 14        ]
 15      },
 16      "listen": "127.0.0.1",
 17      "protocol": "socks",
 18      "settings": {
 19        "udp": true,
 20        "auth": "noauth"
 21      },
 22      "port": "1080"
 23    },
 24    {
 25      "sniffing": {
 26        "enabled": true,
 27        "destOverride": [
 28          "tls",
 29          "http"
 30        ]
 31      },
 32      "listen": "127.0.0.1",
 33      "protocol": "http",
 34      "settings": {
 35        "timeout": 360
 36      },
 37      "port": "1087"
 38    }
 39  ],
 40  "outbounds": [
 41    {
 42      "mux": {
 43        "enabled": true,
 44        "concurrency": 8
 45      },
 46      "protocol": "vmess",
 47      "streamSettings": {
 48        "network": "ws",
 49        "wsSettings": {
 50          "path": "",
 51          "headers": {
 52            "host": ""
 53          }
 54        },
 55        "security": "none"
 56      },
 57      "tag": "proxy",
 58      "settings": {
 59        "vnext": [
 60          {
 61            "address": "35.77.211.36",
 62            "users": [
 63              {
 64                "id": "b831381d-6324-4d53-ad4f-8cda48b30823",
 65                "alterId": 0,
 66                "level": 0,
 67                "security": "auto"
 68              }
 69            ],
 70            "port": 443
 71          }
 72        ]
 73      }
 74    },
 75    {
 76      "tag": "direct",
 77      "protocol": "freedom",
 78      "settings": {
 79        "domainStrategy": "UseIP",
 80        "userLevel": 0
 81      }
 82    },
 83    {
 84      "tag": "block",
 85      "protocol": "blackhole",
 86      "settings": {
 87        "response": {
 88          "type": "none"
 89        }
 90      }
 91    }
 92  ],
 93  "dns": {},
 94  "routing": {
 95    "settings": {
 96      "domainStrategy": "IPIfNonMatch",
 97      "rules": [
 98        {
 99          "type": "field",
100          "outboundTag": "proxy",
101          "domain": [
102            "geosite:google",
103            "geosite:github",
104            "geosite:netflix",
105            "geosite:steam",
106            "geosite:telegram",
107            "geosite:tumblr",
108            "geosite:speedtest",
109            "geosite:bbc",
110            "geosite:tiktok",
111            "geosite:gfw",
112            "geosite:greatfire"
113          ]
114        },
115        {
116          "type": "field",
117          "ip": [
118            "geoip:us",
119            "geoip:ca",
120            "geoip:telegram"
121          ],
122          "outboundTag": "proxy"
123        },
124        {
125          "type": "field",
126          "outboundTag": "direct",
127          "domain": [
128            "geosite:cn",
129            "geosite:private",
130            "geosite:apple-cn",
131            "geosite:google-cn",
132            "geosite:tld-cn",
133            "geosite:category-games@cn",
134            "localhost",
135            "geosite:cn"
136          ]
137        },
138        {
139          "type": "field",
140          "ip": [
141            "geoip:cn",
142            "geoip:private"
143          ],
144          "outboundTag": "direct"
145        },
146        {
147          "type": "field",
148          "outboundTag": "block",
149          "domain": [
150            "geosite:category-ads-all"
151          ]
152        }
153      ]
154    }
155  },
156  "transport": {}
157}

代理模式

DNS 配置

不配置也可,基本主流网站不会被服务商 dns 污染。但配上以后,会更顺畅。

{
  "hosts": {
    "dns.google": "8.8.8.8",
    "dns.pub": "119.29.29.29",
    "dns.alidns.com": "223.5.5.5",
    "geosite:category-ads-all": "127.0.0.1"
  },
  "servers": [
    {
      "address": "https://1.1.1.1/dns-query",
      "domains": ["geosite:geolocation-!cn"],
      "expectIPs": ["geoip:!cn"]
    },
    "8.8.8.8",
    {
      "address": "114.114.114.114",
      "port": 53,
      "domains": ["geosite:cn", "geosite:category-games@cn"],
      "expectIPs": ["geoip:cn"],
      "skipFallback": true
    },
    {
      "address": "localhost",
      "skipFallback": true
    }
  ]
}

Backlinks