OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • What the heck keeps changing my resolv.conf to point at 10.13.13.1?
« previous next »
  • Print
Pages: [1]

Author Topic: What the heck keeps changing my resolv.conf to point at 10.13.13.1?  (Read 2089 times)

BrandonG777

  • Newbie
  • *
  • Posts: 10
  • Karma: 2
    • View Profile
What the heck keeps changing my resolv.conf to point at 10.13.13.1?
« on: March 30, 2021, 06:35:55 pm »
I'm unable to get OPNsense to check for updates because DNS is failing.

/etc/resolv.conf has an incorrect nameserver (10.13.13.1) that I cannot ping and also says it's generated by resolvconf

I can modify my DNS settings through System->Settings->General but when I reboot it reverts back to the incorrect configuration.

Also running, Unifi controller through 3rd party repo, wondering if this isn't the cause?
« Last Edit: March 30, 2021, 07:10:39 pm by BrandonG777 »
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13618
  • Karma: 1170
    • View Profile
Re: What the heck keeps changing my resolv.conf to point at 10.13.13.1?
« Reply #1 on: March 30, 2021, 07:12:47 pm »
I want to solve this.

What is the wireguard plugin?


Cheers,
Franco
Logged

BrandonG777

  • Newbie
  • *
  • Posts: 10
  • Karma: 2
    • View Profile
Re: What the heck keeps changing my resolv.conf to point at 10.13.13.1?
« Reply #2 on: March 30, 2021, 07:21:27 pm »
Wireguard!! That's what was causing it, a month or so ago I was in the middle of setting up a connection to a remote server, got side tracked and never came back to finish it up. Also, have yet to successfully setup a connection like that so I'm sure there were incorrect parameters.

None-the-less you got me pointed in the right direction, thank you, thank you!
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13618
  • Karma: 1170
    • View Profile
Re: What the heck keeps changing my resolv.conf to point at 10.13.13.1?
« Reply #3 on: March 30, 2021, 07:24:33 pm »
No problem. Unfortunately the upstream wireguard tooling replaces resolv.conf when you set DNS in the plugin. We since hid it under advanced but it's a bit non-obvious in any case.


Cheers,
Franco
Logged

Ricardo

  • Full Member
  • ***
  • Posts: 225
  • Karma: 11
    • View Profile
Re: What the heck keeps changing my resolv.conf to point at 10.13.13.1?
« Reply #4 on: March 30, 2021, 08:05:43 pm »
What is the most proven solution to find these wery well hidden parameter settings? Export the entire config as a monolithic .xml file and grep it as a txt file for the offending string?
Logged

Greelan

  • Hero Member
  • *****
  • Posts: 954
  • Karma: 65
    • View Profile
Re: What the heck keeps changing my resolv.conf to point at 10.13.13.1?
« Reply #5 on: March 30, 2021, 10:41:07 pm »
Quote from: franco on March 30, 2021, 07:24:33 pm
Unfortunately the upstream wireguard tooling replaces resolv.conf when you set DNS in the plugin. We since hid it under advanced but it's a bit non-obvious in any case.
This caught me out too when I was setting up WG with selective routing to an external VPN provider. Unfortunate behaviour. Wonder if Jason’s current work on the kernel implementation will touch any of this?
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13618
  • Karma: 1170
    • View Profile
Re: What the heck keeps changing my resolv.conf to point at 10.13.13.1?
« Reply #6 on: March 31, 2021, 09:06:53 am »
I think it's wg-quick so kernel side won't change this. Eventually the tooling needs a rewrite for bash-less support in FreeBSD (if included there), but for now it is what it is.


Cheers,
Franco
Logged

Greelan

  • Hero Member
  • *****
  • Posts: 954
  • Karma: 65
    • View Profile
What the heck keeps changing my resolv.conf to point at 10.13.13.1?
« Reply #7 on: March 31, 2021, 10:01:04 am »
Jason’s todo list references this?

Code: [Select]
- Examine possibility of a non-bash wg-quick(8 ) for sending upstream.
« Last Edit: March 31, 2021, 10:08:53 am by Greelan »
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13618
  • Karma: 1170
    • View Profile
Re: What the heck keeps changing my resolv.conf to point at 10.13.13.1?
« Reply #8 on: March 31, 2021, 10:36:33 am »
That's why I mentioned it....


Cheers,
Franco
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • What the heck keeps changing my resolv.conf to point at 10.13.13.1?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2