v2ray-core icon indicating copy to clipboard operation
v2ray-core copied to clipboard

文档不完善 FakeDNS 自定义地址池启动失败 报错invalid CIDR address

Open Victor2333 opened this issue 2 years ago • 3 comments

你正在使用哪个版本的 V2Ray?

v5.12.1

你的使用场景是什么?

tproxy with fakedns linux64

你看到的异常现象是什么?

fakedns无法自定义地址池

Failed to start: main/commands: failed to create server > app/dns: fail to create fake dns > invalid CIDR address:

你期待看到的正常表现是怎样的?

请附上你的配置

{
"dns": {
 "fakeDns": {
        "pools": [
            {
                "ipPool": "198.18.0.0/15",
                "lruSize": 65535
            },
                        {
                "ipPool": "fc00::/18",
                "lruSize": 65535
            }
        ]
    }}
}

服务端配置:

// 在这里附上服务器端配置文件

客户端配置:

// 在这里附上客户端配置

请附上出错时软件输出的错误日志

服务器端错误日志:

// 在这里附上服务器端日志

客户端错误日志:

Failed to start: main/commands: failed to create server > app/dns: fail to create fake dns > invalid CIDR address:

请附上访问日志

// 在这里附上服务器端日志

其它相关的配置文件(如 Nginx)和相关日志

如果 V2Ray 无法启动,请附上 --test 命令的输出

如果 V2Ray 服务运行异常,请附上 journal 日志

Victor2333 avatar Dec 10 '23 07:12 Victor2333

应该是因为v5的文档还不对 https://www.v2fly.org/v5/config/dns.html#dnsobject 目前看起来正确的配置应该是:

"dns": {
  "fakedns": [....]
}

Victor2333 avatar Dec 10 '23 11:12 Victor2333

应该是因为v5的文档还不对 https://www.v2fly.org/v5/config/dns.html#dnsobject 目前看起来正确的配置应该是:

"dns": {
  "fakedns": [....]
}

Yes, FakeDNS has been refactored but the documentation has not been modified.

AkinoKaede avatar Dec 19 '23 10:12 AkinoKaede

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Apr 18 '24 01:04 github-actions[bot]

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Aug 18 '24 01:08 github-actions[bot]