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

BUG: Wrong Use of local private IP(192.168.x.x) as fromIP in Ping message of Node Discovery Protocol #633

Open
learnerLj opened this issue May 6, 2024 · 0 comments

Comments

@learnerLj
Copy link

Our tool finds that a client CoreGeth/ETCMCgethNode/v1.12.19-stable-78c91330/windows-amd64/go1.20.7 ends node discovery Ping message whose fromIP is 192.168.x.x. But the actual public IP of it is 94.226.x.x when our tool replys Ping to it. I guess the it is the NAT or the setupPortMapping that trigger the problem.

See also,

Peer Info:

{
  "_id": {
    "$oid": "663724e98953aead4bc00ce2"
  },
  "moment": {
    "$date": "2024-05-05T06:19:21.752Z"
  },
  "ip": "192.168.0.229",
  "udp": 30305,
  "tcp": 30305,
  "id": "037adb9cbdd98c7dfee10b44ab7xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "peerType": {
    "$numberLong": "2"
  },
  "clientId": "CoreGeth/ETCMCgethNode/v1.12.19-stable-78c91330/windows-amd64/go1.20.7",
  "caps": [
    {
      "name": "eth",
      "version": {
        "$numberLong": "66"
      }
    },
    {
      "name": "eth",
      "version": {
        "$numberLong": "67"
      }
    },
    {
      "name": "eth",
      "version": {
        "$numberLong": "68"
      }
    },
    {
      "name": "snap",
      "version": {
        "$numberLong": "1"
      }
    }
  ],
  "networkID": {
    "$numberLong": "1"
  },
  "genesisHash": "0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3",
  "forkID": "be46d57c/0",
  "isConnected": true
}

image

@learnerLj learnerLj changed the title Wrong Use of local private IP(192.168.x.x) as fromIP in Ping message of Node Discovery Protocol BUG: Wrong Use of local private IP(192.168.x.x) as fromIP in Ping message of Node Discovery Protocol May 6, 2024
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

1 participant