| 本帖最後由 角色 於 2019-2-21 00:23 編輯 
 The config.json configuration file used in client v2ray node is as follows:
 複製代碼{
  "dns": {
    "servers": [
      "8.8.8.8",
      {
        "domains": ["geosite:cn"],
        "port": 53,
        "address": "114.114.114.114"
      },
      "localhost"
    ]
  }, 
  "inbounds": [
    {
      "port": 1081,  
      "listen": "192.168.4.22",
      "protocol": "socks",
      "sniffing": {
        "enabled": true,
        "destOverride": ["http","tls"]
      },
      "settings": {
        "udp,tcp": true
      }
    },
    {
      "protocol": "dokodemo-door",
      "port": 12345,
      "domainOverride": ["tls","http"],
      "settings": {
        "network": "tcp,udp",
        "followRedirect": true
      }
    },
    {
      "protocol": "dokodemo-door",
      "port": 53,
      "tag": "dns-in",
      "listen": "192.168.4.22",
      "settings": {
        "address": "8.8.8.8",
        "port": 53,
        "network": "udp,tcp"
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "123.123.123.123",   #hostname or IP address of the remote V2Ray server
            "port": 10086, #remote side port number of the v2ray server
            "users": [
              {"id": "UUID"} # put your UUID here
            ]
          }
        ]
      }
    },
    {
      "protocol": "freedom",
      "tag": "direct",
      "settings": {}
    },
    {
      "protocol": "dns",
      "tag": "dns-out"
    }
  ],
  "routing": {
    "domainStrategy": "IPIfNonMatch",
    "rules": [
      {
        "type": "field",
        "inboundTag": "dns-in",
        "outboundTag": "dns-out"
      },
      {
        "type": "field",
        "outboundTag": "direct",
        "domain": [ "geosite:cn" ]
      },
      {
        "type": "field",
        "ip": ["geoip:private"],
        "ip": ["geoip:cn"],
        "outboundTag": "direct"
      }
    ]
  }
}
 |