github.com/imannamdari/v2ray-core/v5@v5.0.5/release/config/config.json (about) 1 // Config file of V2Ray. This file follows standard JSON format, with comments support. 2 // Uncomment entries below to satisfy your needs. Also read our manual for more detail at 3 // https://www.v2fly.org/ 4 { 5 "log": { 6 // By default, V2Ray writes access log to stdout. 7 // "access": "/path/to/access/log/file", 8 9 // By default, V2Ray write error log to stdout. 10 // "error": "/path/to/error/log/file", 11 12 // Log level, one of "debug", "info", "warning", "error", "none" 13 "loglevel": "warning" 14 }, 15 // List of inbound proxy configurations. 16 "inbounds": [{ 17 // Port to listen on. You may need root access if the value is less than 1024. 18 "port": 1080, 19 20 // IP address to listen on. Change to "0.0.0.0" to listen on all network interfaces. 21 "listen": "127.0.0.1", 22 23 // Tag of the inbound proxy. May be used for routing. 24 "tag": "socks-inbound", 25 26 // Protocol name of inbound proxy. 27 "protocol": "socks", 28 29 // Settings of the protocol. Varies based on protocol. 30 "settings": { 31 "auth": "noauth", 32 "udp": false, 33 "ip": "127.0.0.1" 34 }, 35 36 // Enable sniffing on TCP connection. 37 "sniffing": { 38 "enabled": true, 39 // Target domain will be overriden to the one carried by the connection, if the connection is HTTP or HTTPS. 40 "destOverride": ["http", "tls"] 41 } 42 }], 43 // List of outbound proxy configurations. 44 "outbounds": [{ 45 // Protocol name of the outbound proxy. 46 "protocol": "freedom", 47 48 // Settings of the protocol. Varies based on protocol. 49 "settings": {}, 50 51 // Tag of the outbound. May be used for routing. 52 "tag": "direct" 53 },{ 54 "protocol": "blackhole", 55 "settings": {}, 56 "tag": "blocked" 57 }], 58 59 // Transport is for global transport settings. If you have multiple transports with same settings 60 // (say mKCP), you may put it here, instead of in each individual inbound/outbounds. 61 //"transport": {}, 62 63 // Routing controls how traffic from inbounds are sent to outbounds. 64 "routing": { 65 "domainStrategy": "IPOnDemand", 66 "rules":[ 67 { 68 // Blocks access to private IPs. Remove this if you want to access your router. 69 "type": "field", 70 "ip": ["geoip:private"], 71 "outboundTag": "blocked" 72 }, 73 { 74 // Blocks major ads. 75 "type": "field", 76 "domain": ["geosite:category-ads"], 77 "outboundTag": "blocked" 78 } 79 ] 80 }, 81 82 // Dns settings for domain resolution. 83 "dns": { 84 // Static hosts, similar to hosts file. 85 "hosts": { 86 // Match v2fly.org to another domain on CloudFlare. This domain will be used when querying IPs for v2fly.org. 87 "domain:v2fly.org": "www.vicemc.net", 88 89 // The following settings help to eliminate DNS poisoning in mainland China. 90 // It is safe to comment these out if this is not the case for you. 91 "domain:github.io": "pages.github.com", 92 "domain:wikipedia.org": "www.wikimedia.org", 93 "domain:shadowsocks.org": "electronicsrealm.com" 94 }, 95 "servers": [ 96 "1.1.1.1", 97 { 98 "address": "114.114.114.114", 99 "port": 53, 100 // List of domains that use this DNS first. 101 "domains": [ 102 "geosite:cn" 103 ] 104 }, 105 "8.8.8.8", 106 "localhost" 107 ] 108 }, 109 110 // Policy controls some internal behavior of how V2Ray handles connections. 111 // It may be on connection level by user levels in 'levels', or global settings in 'system.' 112 "policy": { 113 // Connection policys by user levels 114 "levels": { 115 "0": { 116 "uplinkOnly": 0, 117 "downlinkOnly": 0 118 } 119 }, 120 "system": { 121 "statsInboundUplink": false, 122 "statsInboundDownlink": false, 123 "statsOutboundUplink": false, 124 "statsOutboundDownlink": false 125 } 126 }, 127 128 // Stats enables internal stats counter. 129 // This setting can be used together with Policy and Api. 130 //"stats":{}, 131 132 // Api enables gRPC APIs for external programs to communicate with V2Ray instance. 133 //"api": { 134 //"tag": "api", 135 //"services": [ 136 // "HandlerService", 137 // "LoggerService", 138 // "StatsService" 139 //] 140 //}, 141 142 // You may add other entries to the configuration, but they will not be recognized by V2Ray. 143 "other": {} 144 }