kuoruan / openwrt-v2ray

V2Ray for OpenWrt
MIT License
2.2k stars 462 forks source link

流量探测(sniffing)功能 域名解析问题 #136

Open ZCchann opened 3 years ago

ZCchann commented 3 years ago

在开启sniffing功能后,apple设备的DNS解析出现异常 DNS服务器解析域名: 26-Jul-2021 17:44:14.708 queries: info: client @0x7fab2c0137f0 172.16.1.91#55682 (37-courier.push.apple.com): query: 37-courier.push.apple.com IN A + (10.0.3.1)

V2ray服务端解析域名: 2021/07/26 17:52:21 103.52.188.132:57412 accepted tcp:courier.push.apple.com:443 apple推送头部信息例如37-会消失

在关闭sniffing功能后,安卓设备 google play商店下载功能故障,会一直在等待中转圈。 已尝试在路由部分添加苹果域名 但无效果 设备信息、配置文件请看下方

设备信息: DISTRIB_ID='OpenWrt' DISTRIB_RELEASE='19.07.7' DISTRIB_REVISION='r11306-c4a6851c72' DISTRIB_TARGET='x86/64' DISTRIB_ARCH='x86_64' DISTRIB_DESCRIPTION='OpenWrt 19.07.7 r11306-c4a6851c72' DISTRIB_TAINTS='' NAME="OpenWrt" VERSION="19.07.7" ID="openwrt" ID_LIKE="lede openwrt" PRETTY_NAME="OpenWrt 19.07.7" VERSION_ID="19.07.7" HOME_URL="https://openwrt.org/" BUG_URL="https://bugs.openwrt.org/" SUPPORT_URL="https://forum.openwrt.org/" BUILD_ID="r11306-c4a6851c72" OPENWRT_BOARD="x86/64" OPENWRT_ARCH="x86_64" OPENWRT_TAINTS="" OPENWRT_DEVICE_MANUFACTURER="OpenWrt" OPENWRT_DEVICE_MANUFACTURER_URL="https://openwrt.org/" OPENWRT_DEVICE_PRODUCT="Generic" OPENWRT_DEVICE_REVISION="v0" OPENWRT_RELEASE="OpenWrt 19.07.7 r11306-c4a6851c72"

arch all 1 arch noarch 1 arch x86_64 10

配置文件: { "log": { "access": "/var/log/v2ray-access.log", "loglevel": "warning", "error": "/var/log/v2ray-error.log" }, "stats": {

},
"dns": {
    "hosts": {
        "example.com": "127.0.0.1"
    },
    "servers": [
        "1.1.1.1",
        "8.8.8.8",
        {
            "address": "114.114.114.114",
            "port": 53,
            "domains": [
                "geosite:cn"
            ]
        },
        {
            "address": "223.5.5.5",
            "port": 53,
            "domains": [
                "geosite:cn"
            ]
        }
    ]
},
"routing": {
    "domainStrategy": "AsIs",
    "rules": [
        {
            "type": "field",
            "domain": [
            ],
            "ip": [
                "1.1.1.1"
            ],
            "network": "tcp,udp",
            "protocol": [
                "http",
                "tls",
                "bittorrent"
            ],
            "outboundTag": "direct"
        },
        {
            "type": "field",
            "domain": [
                "geosite:unity",
                "geosite:unity-ads",
                "geosite:microsoft",
                "geosite:adobe",
                "geosite:adobe-activation",
                "geosite:vmware",
                "geosite:azure",
                "geosite:bing",
                "geosite:microsoft-dev",
                "geosite:dell",
                "geosite:ea",
                "regexp:\\.push.apple.com$",
                "domain:akadns.net",
                "domain:push.apple.com"
            ],
            "outboundTag": "direct"
        },
        {
            "type": "field",
            "ip": [
                "geoip:private",
                "geoip:cn"
            ],
            "outboundTag": "direct"
        },
        {
            "type": "field",
            "domain": [
                "geosite:cn"
            ],
            "outboundTag": "direct"
        },
        {
            "type": "field",
            "domain": [
                "geosite:speedtest"
            ],
            "outboundTag": "direct"
        },
        {
            "type": "field",
            "protocol": [
                "bittorrent"
            ],
            "outboundTag": "direct"
        },
        {
            "type": "field",
            "port": "53",
            "network": "udp",
            "inboundTag": [
                "transparent"
            ],
            "outboundTag": "dns_out"
        },
        {
            "type": "field",
            "ip": [
                "114.114.114.114",
                "223.5.5.5"
            ],
            "outboundTag": "direct"
        },
        {
            "type": "field",
            "ip": [
                "1.1.1.1",
                "8.8.8.8",
                "8.8.4.4"
            ],
            "network": "tcp,udp",
            "outboundTag": "proxy"
        },
        {
            "type": "field",
            "port": "123",
            "network": "udp",
            "outboundTag": "direct"
        }
    ],
    "balancers": [
        {
            "tag": "balancer",
            "selector": [
                "proxy",
                "proxy_22"
            ]
        }
    ]
},
"inbounds": [
    {
        "listen": "172.16.10.83",
        "port": 1080,
        "protocol": "socks",
        "settings": {
            "auth": "noauth",
            "udp": true,
            "ip": "172.16.10.83"
        },
        "streamSettings": {
            "sockopt": {

            }
        },
        "sniffing": {
            "enabled": false,
            "destOverride": [
                "http",
                "tls"
            ]
        },
        "allocate": {
            "strategy": "random"
        }
    },
    {
        "listen": "0.0.0.0",
        "port": 1081,
        "protocol": "dokodemo-door",
        "settings": {
            "followRedirect": true,
            "network": "tcp,udp"
        },
        "streamSettings": {
            "sockopt": {
                "tproxy": "redirect"
            }
        },
        "tag": "transparent",
        "sniffing": {
            "enabled": true,
            "destOverride": [
                "http",
                "tls"
            ]
        }
    }
],
"outbounds": [
    {
        "sendThrough": "172.16.10.11",
        "protocol": "vmess",
        "settings": {
            "vnext": [
                {
                    "address": "",
                    "port": 10086,
                    "users": [
                        {
                            "id": "",
                            "alterId": 64,
                            "security": "auto"
                        }
                    ]
                }
            ]
        },
        "streamSettings": {
            "network": "tcp",
            "security": "none",
            "tcpSettings": {
                "header": {
                    "type": "none"
                }
            },
            "sockopt": {
                "mark": 255,
                "tcpFastOpen": false
            }
        },
        "tag": "proxy"
    },
    {
        "sendThrough": "172.16.10.11",
        "protocol": "freedom",
        "settings": {

        },
        "streamSettings": {
            "sockopt": {
                "mark": 255
            }
        },
        "tag": "direct"
    },
    {
        "sendThrough": "172.16.10.11",
        "protocol": "blackhole",
        "settings": {

        },
        "streamSettings": {
            "sockopt": {
                "mark": 255
            }
        },
        "tag": "block"
    },
    {
        "sendThrough": "172.16.10.11",
        "protocol": "dns",
        "settings": {

        },
        "streamSettings": {
            "sockopt": {
                "mark": 255
            }
        },
        "tag": "dns_out"
    }
]

}

ZCchann commented 3 years ago

版本信息: V2Ray 4.40.1 (OpenWrt) R1 (go1.16.5 linux/amd64) V2ray luci 2.0.0-1