mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-16 06:08:33 -05:00
[GH-ISSUE #2692] Bug Report: Olm Client Forcibly Disconnected When Newt Site Connector Runs on the Same Machine #19296
Reference in New Issue
Block a user
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 @ylorn on GitHub (Mar 23, 2026).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/2692
Describe the Bug
Actual Behavior
Pangolin immediately disconnects the Olm client after connecting. Server logs show:
The Olm client reconnects in a loop, getting disconnected each time within seconds.
Root Cause Analysis
When the Olm client registers, Pangolin's
handleOlmServerPeerAddMessageadds it as a WireGuard peer to the Newt site connector (newt 7ql49kmr3m2plxl). Immediately after, Pangolin disconnects the Olm websocket session, seemingly treating the Olm client as "handed off" to the Newt site.This appears to be because both the Newt connector and the Olm client share the same public IP address (
73.202.58.13), causing Pangolin to associate the Olm client with the existing Newt site on that IP and then disconnect the Olm session.Symptoms
100.96.128.1returns NXDOMAIN for all aliases)dig @100.96.128.1 resource.alias.dockerreturns NXDOMAIN with recursive flags instead of authoritative answer:vs. a working client which returns an authoritative answer:
Workaround
Stop the Newt site connector on the machine running the Olm client. The Olm client then connects and functions correctly. However this means you cannot expose local services via a Newt site and access remote private resources via Olm on the same machine simultaneously.
Impact
This is a significant limitation for home lab / self-hosted users who want to:
Both are common use cases on the same machine (e.g. a Mac Studio acting as both a local service host and a client for accessing a remote Docker server).
Suggested Fix
In
handleOlmServerPeerAddMessage, the Olm websocket session should not be disconnected after adding the WireGuard peer to a site. The Olm client role (receiving routes and aliases) is independent of the WireGuard peer assignment to a site connector. These two operations should be decoupled.Environment
v1.16.2v1.10.3v3.6.11v1.10.3(macOS)v0.6.1(macOS)To Reproduce
Steps to Reproduce
Set up a Pangolin server with a Newt site (e.g. "Mac Studio 2025")
Run the Newt connector as a Docker container on Mac Studio:
Create a Machine Client or User Client in Pangolin dashboard
Install and connect Pangolin Olm GUI app on the same Mac Studio machine using the client credentials
Observe Pangolin server logs
Expected Behavior
Expected Behavior
Both the Newt site connector and the Olm client should operate independently on the same machine. The Olm client should remain connected and receive alias DNS records and private resource routes.
@twocoolbeans commented on GitHub (Apr 1, 2026):
Similar issue, although it is not immediate. Both Olm client and New start as services on Windows. Eventually Olm client disconnects. Currently testing if Olm client will stay connected without Newt service running at all. Olm CLI v1.4.4 on Windows 10 and 11 machines.
@github-actions[bot] commented on GitHub (Apr 16, 2026):
This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.
@AstralDestiny commented on GitHub (Apr 18, 2026):
Will try in a bit, posting so I remember to update post.
Ran into a different issue which resulted in a bug that should be fixed soon.
Though might be an issue as both operate in the same range and most os's don't like overlapping routes.
@PinkWaters00 commented on GitHub (Apr 29, 2026):
I have experienced this issue the other way around as well. created a site for the actual pangolin server on the vps, then installed the newt connector on pangolin server, then created a private resource on the pangolin server, and added my homelab host as a machine client and installed pangolin OLM. same issue.
the similar way the OP did it that also failed same way was: creating a private resource for newt connected site in my home lab (newt client was on a container that has access to the whole subnet), created a private resource on one of the containers i have on that subnet, created a machine client for pangolin and installed the pangolin OLM on pangolin server. Same issue.
@github-actions[bot] commented on GitHub (May 14, 2026):
This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.