Repository navigation
Replies: 3 comments
|
I don't think the /22 is the problem, and the "no open ports found" lines in your log look normal. A deep rescan of one device doesn't scan the whole 65535-port range in one nmap call. It runs it in 8 slices of 8192 ports and merges what each slice finds ( Two things would narrow it down:
If they're in the Inventory but not on the node, it's probably the step that copies services from the inventory device to the existing node, not the scan. |
|
I read the code path for the rest, and I think this is what you're hitting. After the scan, Where it can look like nothing was added is the canvas node. A node draws the row through its own view ( Please check the services section of the existing node (or the device's row in the Inventory): are TCP/22, 111, 3128, 8006 and 9100 there with the visibility toggle off? If they're not on the row either, tell me your version and I'll look again, because then it'd be a different problem. |
|
Thanks @Manuel-1312, your reading is right. I checked it against the code. @MF1590, the /22 isn't the problem. A deep rescan of a known device goes straight to the IP with -Pn, with no ping sweep, so the subnet mask isn't involved. The scan worked: the 8 "Scanning…" lines are the 65535-port range split into 8 slices. The 5 ports from the first two slices are merged and saved on the device's Inventory row. Nothing a scan finds gets dropped, and unknown ports are kept as TCP/. There are two reasons it can still look empty:
If the ports aren't on the Inventory row either, tell us which version you're running and we'll look again. |
Uh oh!
There was an error while loading. Please reload this page.
Possible assumption in advance: Is there maybe an issue with a /22 subnet?
--> e.g. EERO Standard - IP's range from 192.168.4.1 to 192.168.7.254 - Subnetmask /22 or 255.255.252.0
I keep trying to get services listed in existing nodes and use the deep scan function from the inventory.
It keeps coming back empty, but when checking the logfiles you can see the services are found: 5 open ports, see below.
Could it be that the "strange" subnet is causing issue like that?
INFO: 127.0.0.1:51982 - "GET /api/v1/scan/runs HTTP/1.1" 200 OK
INFO: 127.0.0.1:51984 - "GET /api/v1/scan/runs/390272a8-ad4c-4fe3-b653-aac2f77e6d00 HTTP/1.1" 200 OK
INFO:app.services.scanner:[Phase 2] 192.168.6.25 — 4 open port(s): 22/tcp (unknown), 111/tcp (unknown), 3128/tcp (unknown), 8006/tcp (unknown)
INFO:app.services.scanner:[Phase 2] Scanning 192.168.6.25 ...
INFO:app.services.scanner:[Phase 2] 192.168.6.25 — 1 open port(s): 9100/tcp (unknown)
INFO:app.services.scanner:[Phase 2] Scanning 192.168.6.25 ...
INFO:app.services.scanner:[Phase 2] 192.168.6.25 — no open ports found (all closed/filtered or nmap had no results)
INFO:app.services.scanner:[Phase 2] Scanning 192.168.6.25 ...
INFO:app.services.scanner:[Phase 2] 192.168.6.25 — no open ports found (all closed/filtered or nmap had no results)
INFO:app.services.scanner:[Phase 2] Scanning 192.168.6.25 ...
INFO:app.services.scanner:[Phase 2] 192.168.6.25 — no open ports found (all closed/filtered or nmap had no results)
INFO:app.services.scanner:[Phase 2] Scanning 192.168.6.25 ...
INFO:app.services.scanner:[Phase 2] 192.168.6.25 — no open ports found (all closed/filtered or nmap had no results)
INFO:app.services.scanner:[Phase 2] Scanning 192.168.6.25 ...
INFO: 127.0.0.1:42262 - "GET /api/v1/scan/runs/390272a8-ad4c-4fe3-b653-aac2f77e6d00 HTTP/1.1" 200 OK
INFO:app.services.scanner:[Phase 2] 192.168.6.25 — no open ports found (all closed/filtered or nmap had no results)
INFO:app.services.scanner:[Phase 2] Scanning 192.168.6.25 ...
INFO: 127.0.0.1:42276 - "GET /api/v1/scan/runs HTTP/1.1" 200 OK
INFO:app.services.scanner:[Phase 2] 192.168.6.25 — no open ports found (all closed/filtered or nmap had no results)
INFO: 127.0.0.1:42282 - "GET /api/v1/scan/runs/390272a8-ad4c-4fe3-b653-aac2f77e6d00 HTTP/1.1" 200 OK
INFO: 127.0.0.1:42298 - "GET /api/v1/scan/pending HTTP/1.1" 200 OK
INFO: 127.0.0.1:42302 - "GET /api/v1/scan/runs HTTP/1.1" 200 OK
INFO: 127.0.0.1:41454 - "GET /api/v1/scan/runs HTTP/1.1" 200 OK
INFO:httpx:HTTP Request: GET http://192.168.5.117 "HTTP/1.1 404 Not Found"
INFO: 127.0.0.1:41456 - "GET /api/v1/scan/runs HTTP/1.1" 200 OK
INFO:httpx:HTTP Request: GET http://192.168.6.100 "HTTP/1.1 200 OK"
INFO:httpx:HTTP Request: GET http://192.168.6.100:8080 "HTTP/1.1 200 OK"
INFO:httpx:HTTP Request: GET http://192.168.6.100:1931 "HTTP/1.1 404 Not Found"
INFO:httpx:HTTP Request: GET http://192.168.6.100:1901 "HTTP/1.1 404 Not Found"
All reactions