Closed NiceGuyIT closed 2 years ago
Interesting, will take a look at it
Ok, I fixed it. There was some old code that was still in there that added a firewall rule on service start. It was easy to find, since I saw that your accumulated rules included a TCP rule, which I had removed from the installer, because those TCP rules weren't needed. So I was able to reproduce and fix the issue. It will be in the next agent update.
Note that this fix requires an agent update, so the next version of MeshCentral with a new agent will have this fix. Hopefully next week.
I'm curious, how do I know if a release has new agents included? The latest GitHub tag (v0.9.66 on Jan 7th) states agents were included but I noticed the GitHub tags don't match the NPM releases.
Actually, looking at all the GitHub tags, it looks like a GitHub tag is issued when new agents are released. Is this correct?
Thanks!
Note: I'm not trying to rush a release. I just want to know what to watch for.
I tag both repos whenever an npm release is made with new agents
@NiceGuyIT I can confirm this is fixed. Pls close....
@JSuenram I'm waiting for new agents to be released (i.e. new GitHub tag). I'll close anyways.
This PowerShell script will delete the extra firewall rules. Source: Yasd on Discord.
$rulenames = @('Mesh Agent peer-to-peer (TCP)','Mesh Agent peer-to-peer (UDP)','Mesh Agent management (TCP)','Mesh Agent management (UDP)')
foreach ($n in $rulenames) {
$f = Get-NetFirewallRule -DisplayName $n
if ($f.count -gt 1) {
foreach ($r in $f[1..($f.count-1)]) { $r | Remove-NetFirewallRule}
}
}
Someone noticed there were many duplicate firewall rules for Mesh. After some research, it was determined that restarting Mesh adds another firewall rule. The following PowerShell script provides a count of the firewall rules.
Here are the counts for one computer.
If I restart the service, the counts increase.
Restarting the computer does not increase the firewall counts. Only restarting the service.
Moreover, restarting the computer does not clear the firewall rules. It seems as though the rules will continue to accumulate unless cleaned out manually.
MeshCentral v0.9.73