Skip to content

Instantly share code, notes, and snippets.

@wangyan
Last active July 6, 2021 09:30
Show Gist options
  • Save wangyan/0c3109162f07a2e64f87c506265d47f6 to your computer and use it in GitHub Desktop.
Save wangyan/0c3109162f07a2e64f87c506265d47f6 to your computer and use it in GitHub Desktop.
v2ray 规则 (Resilio Sync)
{
"log": {
"loglevel": "debug",
"access": "access.log",
"error": "error.log"
},
"inbound": {
"port": 1080,
"listen": "127.0.0.1",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
}
},
"outbound": {
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIP"
},
"tag": "direct"
},
"outboundDetour": [
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "v2.wangyan.org",
"port": 443,
"users": [
{
"id": "52ffbadd-fa38-4412-bc13-9bfd4bb4b757",
"alterId": 64,
"security": "aes-128-gcm"
}
]
}
]
},
"streamSettings": {
"network": "ws",
"security": "tls",
"tlsSettings": {
"serverName": "v2.wangyan.org",
"allowInsecure": false
},
"wsSettings": {
"connectionReuse": true,
"path": "/ws"
}
},
"mux": {
"enabled": true
},
"tag": "proxy"
}
],
"dns": {
"hosts": {
"localhost": "127.0.0.1"
},
"servers": [
"8.8.8.8",
"8.8.4.4",
"localhost"
]
},
"routing": {
"strategy": "rules",
"settings": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"domain": [
".goo",
"ggpht",
"gstatic",
"github",
"facebook.com",
"fbcdn.net",
"youtube.com",
"youtu.be",
"ytimg.com",
"twitter.com",
"twimg.com",
"twitpic.com",
"t.co",
"bitly.com",
"j.mp",
"bit.ly",
"blogspot",
"blogger",
"blogblog",
"dropbox.com",
"flickr.com",
"udn.com",
"chinagfw.org",
"godoc.org",
"golang.org",
"gravatar.com",
"gstatic.com",
"mediafire.com",
"wikipedia.com",
"wikipedia.org",
"icloud.com",
"config.getsync.com",
"config.resilio.com"
],
"outboundTag": "proxy"
},
{
"type": "field",
"ip": [
"173.244.217.42/32",
"209.95.56.60/32",
"107.182.230.198/32",
"173.244.209.150/32",
"54.235.182.157/32"
],
"outboundTag": "proxy"
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment