Skip to content

List of UDP ports included in UDP port scan #925

Closed

Description

@duncangreene

Describe the issue
Where is it defined (maybe in code and/or documentation) what ports are scanned in the UDP scan? I was surprised to see that UDP 47808 was not listed in the Services section of the report for a BACnet/IP module.

Image

Note below showing BACnet service running.

Image

To Reproduce
Steps to reproduce the behavior:

  1. Run a Services check against a DUT running a UDP service, for example any BACnet/IP device.

Expected behavior
UDP 47808 should appear in the list of services, and the "UDP ports open" count should reflect this.

Environment (please provide the following information about your setup):

  • Testrun 2.0

report (11).zip

Activity

  1. duncangreene commented on Oct 28, 2024

    @duncangreene
    Author

    I believe the below line should print which UDP ports are to be scanned...

    Image

    ...but this line does not appear in my Testrun logs despite log level = debug (logs available in OP)...

    Image

    However the UDP scan does show complete 6 seconds later, which seems quite quick for a UDP scan. I've also seen one finish in 2 seconds below.

    Image

  2. self-assigned this
    on Oct 28, 2024
  3. jboddey commented on Nov 7, 2024

    @jboddey
    Contributor

    It looks like the test container is not printing that line because the log level within the container is at INFO rather than DEBUG. We should probably change that line to INFO. In addition, BACnet will be added in the UDP scan. However, we can't add all ports as the scan would take too long.

  4. linked a pull request that will close this issueAdd BACnet test and extend port scan #957on Nov 7, 2024
  5. added
    test
    and removed on Nov 7, 2024
  6. jboddey commented on Nov 22, 2024

    @jboddey
    Contributor

    This has now been merged into dev and will be released in v2.1.

  7. duncangreene commented on Jan 22, 2025

    @duncangreene
    Author

    @jboddey Just confirming that in 2.1 I still do not see port 47808 included in the UDP scan as below.

    Image

    The below device definitely has ports TCP 502 and UDP 47808 open at all times.

    Image

    P.S. FWIW, I would advocate that UDP 3671 for KNXnet/IP is included too if there is a desire to restrict to 'common known ports'.
    P.P.S. I don't believe it should make a difference, but the above screenshots were taken from a test with protocol.* tests disabled. Edit. I just reran with protocol.* tests enabled but no difference.

  8. duncangreene commented on Mar 7, 2025

    @duncangreene
    Author

    Just confirming this is still present on 2.1.1. UDP 47808 should be shown for the device below.

    Image

  9. MariusBaldovin commented on Apr 17, 2025

    @MariusBaldovin
    Contributor

    @duncangreene Are you able to share the full zip?
    Can you check if you have protocol.services.bacnet test included in the qualification.json and pilot.json files from resources/test_packs/

  10. duncangreene commented on Apr 17, 2025

    @duncangreene
    Author

    @MariusBaldovin I can confirm that protocol.services.bacnet was not included in the qualification test pack (mainly because 90% of devices tested have no need to support BACnet).

    When I add it back in I can see that the below appears in the 'Results List'...

    Image

    ...and that 47808 now appears in the Services section.

    Image

    Question though, why does the protocol.services.bacnet test need to be included to get 47808 to appear in the Services section? By contrast, I have absolutely no Modbus related tests in my test pack, yet 502 appears in the Services section (as it rightly should)?

  11. MariusBaldovin commented on Apr 17, 2025

    @MariusBaldovin
    Contributor

    protocol.services.bacnet is the only test that is checking for the state of UDP port 47808. UDP ports if not included in any tests will not appear, even they are open. TCP ports if open will be displayed, so 502 since it was found open it is displayed.

  12. jboddey commented on Apr 22, 2025

    @jboddey
    Contributor

    Going to close this PR as it does not seem to be a bug, but intended functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

test

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions