You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Note below showing BACnet service running.
To Reproduce
Steps to reproduce the behavior:
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):
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.
@jboddey Just confirming that in 2.1 I still do not see port 47808 included in the UDP scan as below.
The below device definitely has ports TCP 502 and UDP 47808 open at all times.
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.
@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/
@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'...
...and that 47808 now appears in the Services section.
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)?
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.
Activity
duncangreene commentedon Oct 28, 2024
I believe the below line should print which UDP ports are to be scanned...
...but this line does not appear in my Testrun logs despite log level = debug (logs available in OP)...
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.
jboddey commentedon Nov 7, 2024
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.
jboddey commentedon Nov 22, 2024
This has now been merged into dev and will be released in v2.1.
duncangreene commentedon Jan 22, 2025
@jboddey Just confirming that in 2.1 I still do not see port 47808 included in the UDP scan as below.
The below device definitely has ports TCP 502 and UDP 47808 open at all times.
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.
duncangreene commentedon Mar 7, 2025
Just confirming this is still present on 2.1.1. UDP 47808 should be shown for the device below.
MariusBaldovin commentedon Apr 17, 2025
@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/
duncangreene commentedon Apr 17, 2025
@MariusBaldovin I can confirm that
protocol.services.bacnetwas 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'...
...and that 47808 now appears in the Services section.
Question though, why does the
protocol.services.bacnettest 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)?MariusBaldovin commentedon Apr 17, 2025
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.
jboddey commentedon Apr 22, 2025
Going to close this PR as it does not seem to be a bug, but intended functionality.