Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修正启用fakedns后access记录到的访问地址为fakedns地址 #866

Closed
Cwek opened this issue Apr 5, 2021 · 3 comments
Closed

修正启用fakedns后access记录到的访问地址为fakedns地址 #866

Cwek opened this issue Apr 5, 2021 · 3 comments

Comments

@Cwek
Copy link

Cwek commented Apr 5, 2021

What version of V2Ray are you using?

4.36.2

What's your scenario of using V2Ray?

使用socks转发互联网访问流量

What problems have you encountered?

启用fakedns后access记录到的访问地址为fakedns地址

What's your expectation?

启用fakedns后,access记录到的访问地址为fakedns地址的,修正显示为还原的域名。

Please attach your configuration here

Server configuration:

// Please attach your server configuration here.

Client configuration:

// 已简化,只保留关联配置

{
 "inbounds": [
  {
   "tag": "vmess-ss-local-s",
   "port": "",
   "listen": "",
   "protocol": "socks",
   "streamSettings": {
    "network": "tcp"
   },
   "sniffing": {
    "enabled": true,
    "destOverride": [
     "fakedns"
    ],
    "metadataOnly": false
   },
   "settings": {
    "auth": "password",
    "accounts": [],
    "udp": true,
    "ip": "",
    "userLevel": ""
   }
  }
 ],
 "outbounds": [
  {
   "tag": "vmess-google-nomux",
   "protocol": "socks",
   "settings": {
    "servers": [
     {
      "address": "",
      "port": "",
      "users": [
       {}
      ]
     }
    ]
   },
   "streamSettings": {
    "network": "tcp"
   },
   "mux": {
    "enabled": false
   }
  },
  {
   "tag": "out-fakedns",
   "protocol": "dns"
  }
 ],
 "dns": {
  "servers": [
   "fakedns",
   ""
  ],
  "queryStrategy": "UseIPv4"
 },
 "fakedns": {
  "ipPool": "240.0.0.0/16",
  "poolSize": 65535
 },
 "routing": {
  "domainStrategy": "AsIs",
  "rules": [
   {
    "type": "field",
    "outboundTag": "out-fakedns",
    "port": "53",
    "ip": [],
    "network": "tcp,udp",
    "inboundTag": [
     "vmess-ss-local-s"
    ]
   }
  ]
 }
}

Please attach error logs here

Server error log:

// Please attach your server error log here.

Client error log:

// Please attach your client error log here.

Please attach access log here

2021/04/05 19:13:52 tcp:127.0.0.1:49726 accepted tcp:240.0.0.255:443 [vmess-google-nomux]
2021/04/05 19:14:02 udp:127.0.0.1:43457 accepted udp:1.1.1.1:53 [out-fakedns]
2021/04/05 19:14:02 tcp:127.0.0.1:49816 accepted tcp:240.0.0.0:5228 [vmess-google-nomux]
2021/04/05 19:14:07 udp:127.0.0.1:58005 accepted udp:1.1.1.1:53 [out-fakedns]
2021/04/05 19:14:07 tcp:127.0.0.1:49822 accepted tcp:240.0.0.51:443 [vmess-google-nomux]

Other configurations (such as Nginx) and logs here

If V2Ray cannot start up, please attach output from --test command

If V2Ray service is abnormal, please attach journal log here

@sixg0000d
Copy link
Contributor

这个特性正好能测试dns是否(因配置错误)被劫持或泄漏,如果要改,建议改成可配置的。

@Loyalsoldier
Copy link
Contributor

开 debug 级别的日志就能看到更多信息了,不只有 FakeIP 地址。

@Cwek
Copy link
Author

Cwek commented Apr 9, 2021

现在这个log是info级别,既然access.log是用于记录访问过的地址信息,为什么要还要开debug然后查error.log里面fakeIP对应的域名?所以我认为access.log记录的fakeIP需要修正。

mydogshitgold added a commit to mydogshitgold/v2ray-core that referenced this issue Feb 8, 2023
When SystemPolicy.OverrideAccessLogDest is enabled, destination host
in access log will be replaced with sniffed host. (v2fly#866)
mydogshitgold added a commit to mydogshitgold/v2ray-core that referenced this issue Feb 8, 2023
When SystemPolicy.OverrideAccessLogDest is enabled, destination host
in access log will be replaced with sniffed host. (v2fly#866)
mydogshitgold added a commit to mydogshitgold/v2ray-core that referenced this issue Feb 16, 2023
When SystemPolicy.OverrideAccessLogDest is enabled, destination host
in access log will be replaced with sniffed host. (v2fly#866)
mydogshitgold added a commit to mydogshitgold/v2ray-core that referenced this issue Feb 18, 2023
When SystemPolicy.OverrideAccessLogDest is enabled, destination host
in access log will be replaced with sniffed host. (v2fly#866)
xiaokangwang pushed a commit to mydogshitgold/v2ray-core that referenced this issue Feb 19, 2023
When SystemPolicy.OverrideAccessLogDest is enabled, destination host
in access log will be replaced with sniffed host. (v2fly#866)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants