OpenVPN install seems to cause loss of DNS

minstrel

Cadet
Joined
Aug 3, 2021
Messages
5
I have an issue with the OpenVPN service on Truenas. I'm running version 12.0-U5.1.
I configured the OpenVPN service yesterday to allow remote access to my network. I followed the instructions in this video https://www.youtube.com/watch?v=YEkfW4aC9Rk from Techworks. It all worked and I'm able to access my network remotely.

However, since then my Nextcloud instance is displaying the following error:
“This server has no working Internet connection. This means that some of the features like mounting external storage, notifications about updates or installation of third-party apps will not work. Accessing files remotely and sending of notification emails might not work, either. We suggest to enable Internet connection for this server if you want to have all features.”

As well, I'm not able to run pkg update in any of my jails. When I run pkg update I get the following error:
Updating FreeBSD repository catalogue...
pkg: http://pkg.freebsd.org/FreeBSD:12:amd64/quarterly/meta.txz: No address record
repository FreeBSD has no meta file, using default settings
pkg: http://pkg.freebsd.org/FreeBSD:12:amd64/quarterly/packagesite.txz: No address record
Unable to update repository FreeBSD
Error updating repositories!
Both those errors seem to indicate a DNS problem.

After some testing, I determined that the problem was caused by the tunables entries I had made to support OpenVPN. I disabled all of them then re-started Truenas. I no longer get the Nextcloud message, and pkg update / pkg upgrade works.

I need to do further testing to see if there is one specific tunable entry causing this, but thought I'd reach out to see if others have run into the same issue. If so, how did you resolve it?
 

StanTheMa

Dabbler
Joined
Jun 30, 2020
Messages
13
Hi minstrel

Yes I got a similar effect trying to set up OpenVPN or Wireguard.

pkg: http://pkg.freebsd.org/freebsd:12:amd64/quarterly/meta.txz: no address record repository freebsd has no meta file, using default settings

disabled Tunables natd_enable and natd_interface on rc.conf Restart and jail updates
TrueNAS Tunables.jpg
 
Top