Skip to content

Problem - NMAP scanning not working #108

Closed
@Marcussjogren

Description

@Marcussjogren

Hi,

I'm having issues port scanning with network-discovery. The documentation says that only specifying targets will be the same as running "nmap " so that it will discover services / open ports.

However, I cannot get port scanning working no matter what I do,

I have tried to only specify targets and I have tried to specify "ports" or "top_ports" etc. But when I do that I get the error message below. This message appears when adding "ports: 1-1000" under "targets:"

I have forced it to use netboxlabs/orb-agent:2.0.0 in the run command.

Any ideas?

{"time":"2025-05-09T09:34:34.235534801Z","level":"INFO","msg":"network-discovery stdout","log":"time=2025-05-09T09:34:34.235Z level=INFO msg=\"starting network-discovery server at: localhost:8073\""}
{"time":"2025-05-09T09:34:35.050969955Z","level":"INFO","msg":"network-discovery process started","pid":23}
{"time":"2025-05-09T09:34:35.056401266Z","level":"INFO","msg":"network-discovery readiness ok, got version ","network_discovery_version":"1.0.0"}
{"time":"2025-05-09T09:34:35.056454667Z","level":"INFO","msg":"managing agent policy from core","action":"manage","name":"discovery_1","dataset":"afb755f6-c519-420a-a47f-84ecfadc23c2","backend":"network_discovery","id":"28bbc0b2-2539-501e-97b0-3a6d1882b89f","version":1}
{"time":"2025-05-09T09:34:35.058598111Z","level":"WARN","msg":"policy application failure","policy_id":"28bbc0b2-2539-501e-97b0-3a6d1882b89f","policy_name":"discovery_1"}
{"time":"2025-05-09T09:34:35.058710413Z","level":"WARN","msg":"policy failed to apply","policy_id":"28bbc0b2-**2539-501e-97b0-3a6d1882b89f","policy_name":"discovery_1","error":"400 yaml: unmarshal errors:\n  line 13: cannot unmarshal !!str `1-1000` into []string"}**

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions