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
{{ message }}
Repository navigation
feat(dashmate): detect firewall issues during setup #1272
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):
@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?
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.
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.
Activity
shumkov commentedon Sep 23, 2024
@pshenmic To verify if port is open you need to connect from outside. It's a bad idea to use
externalIpsince it's open an attack vector to checker. We could use mnwatch to check ports. Do you want to take this one?kxcd commentedon Sep 27, 2024
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
OPENorCLOSEDis returned. In case the IP is not matching, no port check is made and the system returnsINVALID_IP.Eg
https://mnowatch.org/9999/?validateIp=127.0.0.1
shumkov commentedon Sep 27, 2024
Cool! @kxcd thank you. I will take this one then.
shumkov commentedon Sep 28, 2024
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.
QuantumExplorer commentedon Apr 23, 2026
Closing — partial validation landed in #2183. If fuller setup-time TCP probing is still desired, please open a narrower issue.