透明代理。
DNS: dnsmasq -> chinadns v2ray

{
//  "log": { "error": "/tmp/syslog.log", "loglevel": "error" },
  "inbounds": [
    { "port": 1088, "tag": "local_1088", "protocol": "socks", "listen": "192.168.123.1", "settings": { "auth": "noauth", "udp": true, "ip": "192.168.123.1" }, "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ] }  },
    { "port": 1089, "tag": "proxy", "protocol": "http", "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ] }, "settings": { "auth": "noauth", "udp": false} },
    { "port": 1099, "tag": "redir_1099", "protocol": "dokodemo-door","listen": "0.0.0.0", "settings": { "network": "tcp,udp", "timeout": 30, "followRedirect": true },  "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ] }}, 
    { "port": 1053,"tag": "dns-in","protocol": "dokodemo-door","settings": {"address": "211.137.130.3",    "port": 53, "timeout": 0,"network": "tcp,udp"}}
  ],
  "outbounds": [
    { "protocol": "freedom", "settings": {}, "tag": "direct", "streamSettings": { "sockopt": { "mark": 255 } } },
    { "protocol": "vmess","tag": "cg6_www", "settings": { "vnext": [ { "address": "xx.xx.com", "port": 443, "users": [ { "id": "99b9aead-6a5d-xxxx-bdxxxxff-xxxxxxx", "alterId": 4, "security": "auto" } ] } ] }, "streamSettings": { "network": "ws", "security": "tls", "wsSettings": { "path": "/v/", "headers": { "Host": "www.swds.cf" } }, "httpSettings": { "host": [ "www.swds.cf" ], "path": "/v/" }, "sockopt": { "mark": 255 } } },
    { "protocol": "vmess","tag": "bj_de", "settings": { "vnext": [ { "address": "xx.xx.com", "port": 53055, "users": [ { "id": "xxxxx-504c-43a6-xxxxx-xxxxx", "alterId": 4, "security": "auto" } ] } ] }, "streamSettings": { "network": "tcp", "sockopt": { "mark": 255 } } },
    { "protocol": "shadowsocks", "tag": "c6_ss","settings": { "servers": [ { "address": "xx.xx.com", "method": "chacha20", "password": "xxxx", "port": 8080 } ] } },
    { "protocol": "blackhole", "settings": {}, "tag": "blocked", "streamSettings": { "sockopt": { "mark": 255 }  } },
    { "protocol": "dns","tag": "dns-out"}
  ],
  "dns": { "servers": [ { "address": "211.137.130.3", "port": 53, "domains": [ "geosite:cn" ] },{ "address": "8.8.8.8", "port": 53, "domains": [ "ext:site_ad_gfw.dat:gfw" ] },"211.137.130.3", "114.114.114.114", "localhost" ] },
  "routing": { "domainStrategy": "AsIs",
    "rules": [
      {"type": "field","inboundTag": ["dns-in"],"outboundTag": "dns-out"}, 
      { "type": "field", "outboundTag": "direct", "ip": [ "211.137.130.3", "114.114.114.114","223.5.5.5", "geoip:cn" ] },
      { "type": "field", "outboundTag": "direct" , "domain": [ "geosite:cn" ]},
      { "type": "field", "outboundTag": "blocked", "ip": [ "geoip:private" ] },
      { "type": "field", "outboundTag": "blocked", "domain": [ 
      "bugly.qq.com","adnet.qq.com","e.qq.com","jpush.cn","admaster.qq.com","qchannel03.cn","qchannel01.cn",
      "yiqiso.com", "chinaso.com","ad.caiyunapp.com","umeng.com","mob.com","umengcloud.com","ut.taobao.com","cr-nielson.com",
      "sofire.baidu.com","baifubao.com","nuomi.com","boscdn.baidu.com","bcebos.com","hijack.baidu.com","duxiaoman.com",
      "ext:site_ad_gfw.dat:ad" ] },
      { "type": "field", "outboundTag": "bj_de", "ip": [ "8.8.8.8", "8.8.4.4" ] },
      { "type": "field", "outboundTag": "bj_de", "domain": [ "cn2qq.com", "ext:site_ad_gfw.dat:gfw" ] }
    ]
  }
}

标签: none

添加新评论