Skip to content

feat(dashmate): detect firewall issues during setup #1272

Closed

Description

@pshenmic

Expected Behavior

During setup, dashmate should check the availability of the node by probing core p2p port on externalIp.

Current Behavior

If your ufw is enabled and incorrectly configured, your node will start, but will be unable to sync with the quorum which will result in PoSeBan until you figure out whats hapenning

Possible Solution

Probe port via connecting to the tcp port on externalIp

Steps to Reproduce (for bugs)

Context

Your Environment

  • Version used:
  • Environment name and version (e.g. Chrome 39, node.js 5.4):
  • Operating System and version (desktop, server, or mobile):
  • Link to your project:

Activity

  1. added
    bug
    on Jul 29, 2023
  2. shumkov commented on Sep 23, 2024

    @shumkov
    Collaborator

    @pshenmic To verify if port is open you need to connect from outside. It's a bad idea to use externalIp since it's open an attack vector to checker. We could use mnwatch to check ports. Do you want to take this one?

  3. moved this to Backlog in Platform teamon Sep 23, 2024
  4. added
    enhancement
    dashmate
    and removed
    bug
    on Sep 27, 2024
  5. kxcd commented on Sep 27, 2024

    @kxcd

    Extra service on mnowatch to verify the IP if submitted. If the IP is matching that which MNOwatch determined, then the port is checked and either OPEN or CLOSED is returned. In case the IP is not matching, no port check is made and the system returns INVALID_IP.

    Eg
    https://mnowatch.org/9999/?validateIp=127.0.0.1

  6. moved this from Backlog to Todo in Platform teamon Sep 27, 2024
  7. shumkov commented on Sep 27, 2024

    @shumkov
    Collaborator

    Cool! @kxcd thank you. I will take this one then.

  8. self-assigned this
    on Sep 27, 2024
  9. moved this from Todo to In Progress in Platform teamon Sep 28, 2024
  10. shumkov commented on Sep 28, 2024

    @shumkov
    Collaborator

    I've added validation to the status and doctor commands #2183. To validate external IP and port during the setup command we need to put more efforts: a TCP server should be started during setup and only then port checker called. So I keep this PR open for now.

  11. moved this from In Progress to Backlog in Platform teamon Sep 28, 2024
  12. moved this from Current Version Backlog to No status in Platform teamon Jul 15, 2025
  13. added
    effort: S
    priority: low
    stale
    and removed
    stale
    on Mar 12, 2026
  14. QuantumExplorer commented on Apr 23, 2026

    @QuantumExplorer
    Member

    Closing — partial validation landed in #2183. If fuller setup-time TCP probing is still desired, please open a narrower issue.

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

Metadata

Metadata

Assignees

Labels

dashmateeffort: Senhancementpriority: low

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions