VPN makes the machine appear offline #2165
Answered
by
Offbeatmammal
Offbeatmammal
asked this question in
Support
|
I have a machine that's happily communicating with the hub, but when the user activates their VPN connection (quite common as they're testing from different GeoIPs throughout the day) Beszel reports the machine has gone offline. |
Answered by
Offbeatmammal
Jul 30, 2026
Replies: 1 comment 1 reply
|
THe only way to make this work is to ensure the that agent can reach the hub (WebSocket method) or that the Hub can reach the client (SSH Method) both via and with the VPN. From Beszel point of view there is nothing we can do on this as its normal network connectivity problem. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
problem turned out to actually be the VPN clobbering DNS.
DNS — let the container follow the host's resolver. PIA rewrites
/etc/resolv.confin place (same inode), so a bind-mount tracks it live: the host'sresolver when the VPN is down, PIA's when it's up, both permitted.
Detection lag — force a redial on each tunnel transition. systemd already tracks the
interface as a device unit, so this needs no polling loop. Adjust wgpia0 to match your
VPN's interface (tun0 for OpenVPN).