本帖最後由 角色 於 2019-2-19 11:46 編輯
The local node (v2ray client) configuration file /etc/v2ray/config.json contains- {
- "dns": {
- "servers": [
- "8.8.8.8",
- {
- "domains": ["geosite:cn"],
- "port": 53,
- "address": "114.114.114.114"
- },
- "localhost"
- ]
- },
- "inbounds": [
- {
- "port": 1081,
- "listen": "192.168.55.22",
- "protocol": "socks",
- "sniffing": {
- "enabled": true,
- "destOverride": ["http","tls"]
- },
- "settings": {
- "udp,tcp": true
- }
- },
- {
- "protocol": "dokodemo-door",
- "port": 53,
- "tag": "dns-in",
- "listen": "192.168.55.22",
- "settings": {
- "address": "8.8.8.8",
- "port": 53,
- "network": "udp,tcp"
- }
- }
- ],
- "outbounds": [
- {
- "protocol": "vmess",
- "settings": {
- "vnext": [
- {
- "address": "123.123.123.123", #你的大陆地区以外V2Ray节点(server)
- "port": 10086,
- "users": [
- {"id": "UUID"}
- ]
- }
- ]
- }
- },
- {
- "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"
- }
- ]
- }
- }
複製代碼 |