threefoldtech / tfchain_graphql

Graphql for TFchain
Apache License 2.0
2 stars 3 forks source link

Validate ip addresses #176

Closed sameh-farouk closed 4 months ago

sameh-farouk commented 4 months ago

What's Changed:

Related issues:

Here is a part from the logs showing the validation in work:

{"level":3,"time":1716403182512,"ns":"sqd:processor:mapping","msg":"One or both IP addresses are not unicast addresses. Public IP: 23.253.24.205/21, Gateway: 231.25.130.235"}
{"level":3,"time":1716403187418,"ns":"sqd:processor:mapping","msg":"The gateway is not in the same subnet as the host. Public IP: 22.21.21.204/25, Gateway: 132.2.204.11"}
{"level":3,"time":1716403187428,"ns":"sqd:processor:mapping","msg":"The gateway is not in the same subnet as the host. Public IP: 22.21.21.204/25, Gateway: 132.2.204.11"}
{"level":3,"time":1716403187428,"ns":"sqd:processor:mapping","msg":"The gateway is not in the same subnet as the host. Public IP: 2.201.221.20/31, Gateway: 141.252.125.243"}
{"level":3,"time":1716403187433,"ns":"sqd:processor:mapping","msg":"The gateway is not in the same subnet as the host. Public IP: 2.201.221.20/31, Gateway: 141.252.125.243"}
{"level":3,"time":1716403187446,"ns":"sqd:processor:mapping","msg":"The gateway is not in the same subnet as the host. Public IP: 20.231.203.202/23, Gateway: 15.23.135.10"}
{"level":3,"time":1716403192486,"ns":"sqd:processor:mapping","msg":"The gateway is not in the same subnet as the host. Public IP: 20.214.213.21/32, Gateway: 14.212.241.24"}
{"level":3,"time":1716403192511,"ns":"sqd:processor:mapping","msg":"The gateway is not in the same subnet as the host. Public IP: 20.214.213.21/32, Gateway: 14.212.241.24"}
{"level":3,"time":1716403192512,"ns":"sqd:processor:mapping","msg":"One or both IP addresses are not public. Public IP: 2.231.202.21/22, Gateway: 10.255.221.132"}