I have a recurring failure mode that seems to occur randomly: DNS failure for Pritunl Clients.
Specifically, it’s the DNS server inside the VPN, the one that’s configured for the connection.
My most effective short-term solution is to restart the pritunl service weekly via crontab:
01 12 * * 0 /usr/bin/systemctl restart pritunl.service
This reduces the frequency of interventions and masks the issue but does nothing to prevent it.
I used to encounter this failure mode at least weekly, and with the automated restarts, it’s more like every-other-month.
I’d really like to find the root cause for this.
Does anyone have insights to share?
Are there configuration changes I can make for logging that might reveal the issue?
Logs:
When I check the Pritunl logs (gui) the only thing that shows are the scheduled crontab restarts going back weeks. There is nothing in between.
Journal:
I’ve checked for this in the past but haven’t seen errors that appear meaningful.
Pritunl Host: RHEL - Linux 5.4.17-2136.335.4.el8uek.x86_64 #3 SMP Thu Aug 22 12:18:30 PDT 2024 x86_64 x86_64 x86_64 GNU/Linux
Background:
I have a stable Pritunl configuration that works reliably 99% of the time.
I have scripts for all of my client side configuration. I’m confident everything is as consistent as it can be.
Every now and then DNS just stops working (POOF) for connected clients.
When this occurs, I can still ping IP addresses within the internal network.
I suspect this is an issue within the Pritunl service on the Pritunl host but I can’t tell why things fail.
I typically encounter this failure mode by:
- Connecting to Pritunl
- Establishing my split-tunnel routing configuration on my client
- Attempting to resolve hostnames of internal hosts and DNS resolution times out
I diagnose this failure mode by:
- Performing a client-side dns query for a known name at the IP address of the DNS server:
nslookup foo.mydomain x.x.x.x
: DNS resolution times out. - Performing the same query from the Pritunl host immediately receives a valid response.
At this point, I know I’m in the DNS failure mode.
The only fix I have is to restart the pritunl service or reboot the host.
Again, the logs don’t give me anything actionable.
Help?