mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2026-03-02 23:07:02 -05:00
Connection Problems with Agent on IPv6 #4622
Labels
No labels
Can't Replicate
Closed
Feedback
Fixed - Please Verify & Close
Low Priority
Plugin's in use
Sponsor required
Stale
bootstrap
bug
docker
docs
duplicate
enhancement
help wanted
important
invalid
question
sponsor found
temporarily fixed
upstream fix needed
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/MeshCentral#4622
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MiRei777 on GitHub (Jan 5, 2024).
First of all, I would like to thank you for the great Meshcentral!
I have made the following observation with the client login:
On some machines (Windows 64) the agent (background and interactive) cannot connect to the server via wss//.. .
The login portal via https://... is always immediately accessible.
The problem does not exist with the Meshcentral Assistant.
However, the assistant is problematic for many applications due to UAC issues.
After I deactivated IPV6 on the clients, the agent also works perfectly.
Does anyone have any ideas?
Thank you very much.
@si458 commented on GitHub (Jan 5, 2024):
similar maybe? #5214 #1770
@MiRei777 commented on GitHub (Jan 5, 2024):
Many thanks for the tips.
Meshcentral is behind an HAproxy for me.
I don't understand why the Assistant can connect to these computers without any problems.
@si458 commented on GitHub (Jan 5, 2024):
can you share your config.json (hide sensitive stuff)?
do the remote devices running the agent have only ipv6, mix of 4+6?
is the dns name have an A and AAAA record?
im just waiting on my isp to give me IPv6 in our rack, then i can test 👍
@MiRei777 commented on GitHub (Jan 5, 2024):
This is my config.json:
@MiRei777 commented on GitHub (Jan 5, 2024):
The agents have a mix ipv4 and ipv6.
A + AAAA Records exists .
@si458 commented on GitHub (Jan 5, 2024):
im assuming
[MyHAProxy-IP]is an ext/int ip, like 8.8.8.8 or 192.168.99.77 ?does HAproxy have an IPv6 address?
have you tried adding its IPv6 address to the TLSOffload and restarting the server then restarting the meshagents?
@MiRei777 commented on GitHub (Jan 5, 2024):
Yes, it is the IPv4 Adress of the HAProxy.
The HaProxy does not have an IPv6 IP.
Why is this configuration working with the Assistent ?
Thanks al lot!
@si458 commented on GitHub (Jan 5, 2024):
this might be because
the remote devices have ipv6 enabled which on windows BECOMES PRIMARY FOR ALL CONNECTIONS
so if your dns record for saymeshcentral.mydomain.comhas an AAAA record, its going to try connecting to that ipv6 addressand if your HAproxy doesnt have an ipv6 address, this is why its failingEDIT: the above made no sense sorry... check below
you have aliasport set SO if your meshcentral has the ipv6 address on instead, and your only using haproxy for ipv4, then when the remote device trys connecting to
meshcentral.mydomain.comits going to be forwarded tomeshcentral.mydomain.com:443BUT you arent running meshcentral on port 443, ur running it on 4430, so it will never connect!best thing is either
remove the haproxy and let meshcentral handle the tls/ssl and direct connects on its own ipv4/ipv6 addresses
OR
put haproxy with a IPv4+IPv6 address, then put the haproxy ipv6 address into the TlsOffload
as you are trying to use a mix of BOTH methods, when it should be one or the other
@MiRei777 commented on GitHub (Jan 5, 2024):
First I'll try to change the priority to ipv4 with a registry entry and activate ipv6 again on the client.
After several tests with ipv6, I became cautious because the stability and functionality kept varying.
Why does it work with the Meshcentral wizard in the current configuration?
Many thanks for the great tips. I'll get back to you when I have new findings after changing the priority.
@si458 commented on GitHub (Jan 5, 2024):
What do u mean 'wizard' ? Do u mean the web ui?
That's because it's using https which will probably be looking up ur IP and returning both 4 and 6 and failing on 6 and falling bk to 4
Windows has always been funny with ipv6/ipv4 allover, hence the other issues that have been opened
@MiRei777 commented on GitHub (Jan 5, 2024):
Sorry, I mean the Meshcentral-Assistent.
With the following registry setting on the client, the agent also works when IPv6 is switched on:
Location: HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters
Key: DisabledComponents
Type: REG_DWORD
Value: 0x20
@github-actions[bot] commented on GitHub (Jun 9, 2025):
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@github-actions[bot] commented on GitHub (Aug 11, 2025):
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@github-actions[bot] commented on GitHub (Aug 20, 2025):
This issue has been automatically closed due to inactivity. If you believe this is still relevant, please feel free to reopen it.