New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clients cant connect to agentPort, attempted connections show up as "WEBREQUEST: (X.X.X.X) AgentPort: /agent.ashx" in server log #6059
Comments
I did indeed uncomment
Yes, I've set that to
and the following debug log at startup:
The (reinstalled) meshagents (I tried with android + debian) still do not connect and at least the Linux/BSD install commands still does not reflect the What I did notice though is the fact that even when I manually correct the Linux/BSD install commands to point to port 8443, they cant successfully download their meshsettings from If I try to download the meshsettings from When I try to connect using the android app (the according connection string does reflect the agentPort |
Anyone got a hint for me, what else I could try to debug this? I havent gotten any further on my own. One additional information that might be relevant: The Meshcentral server and the reverse proxy for external agent connections are in different Subnets. Routes are set up in both directions, both can ping each other. |
@netw0rk-noob can u share ur |
I aim for the following setup:
Dashboard / WebUI only accesible from LAN, via a .local domain name with a cert from my LAN CA which is served via nginx on the same host as the meshcentral server.
Meshagents / clients connecting from the internet through my reverse proxy (nginx on another host) which handles TLS with a letsencrypt cert.
Connection scheme:
meshAgent --publicDomain.tld:8443--> Router (NAT) --reverseProxyIP:8443-->reverseProxy (handles TLS) --meshCentralIP:8443--> MeshCentral
admin --localDomain.tld:443--> nginx on MeshCentralHost (handles TLS) --127.0.0.1:4443--> MeshCentral on MeshCentralHost
The admin connections work without any problems. When a meshagent (I tried with windows, debian and android) tries to connect, the meshcentral server (run with
--debug agent,web,webrequest
) logs the following:WEBREQUEST: (MeshAgentPublicIP) AgentPort: /agent.ashx
and the client does not connect / show up in dashboard.
server logs at startup:
Besides that (but thats a minor problem) the download-links (and script-links, when using the scripted linux-install) do not reflect my changes to
config.json
regardingagentPort
and/oragentAliasPort
: The download/script links point to port:443
(which is thealiasPort
of the dashboard), not to port:8443
(which is theagentPort
) and therfore do not work unless manually edited to point to port:8443
.I assume that this is a configuration mistake on my end and would be very grateful if someone could take a look at my setup.
If any relevant information is missing, please ask for it.
Server Software:
Client Device:
Remote Device 1 (external):
Remote Device 2 (internal):
config.json:
nginx localdomain.tld.conf on the same host as meshCentral:
nginx publicdomain.tld.conf on the reverseProxyl:
The text was updated successfully, but these errors were encountered: