Coder Social home page Coder Social logo

Comments (12)

DimitriPapadopoulos avatar DimitriPapadopoulos commented on August 17, 2024 1

I don't think resolvconf is made for systemd. You've probably got the wrong one, this is the one I was referring to.

from openfortivpn.

DimitriPapadopoulos avatar DimitriPapadopoulos commented on August 17, 2024

I don't know much about Artix Linux. I guess it is not based on systemd. More importantly, I have no clue how it manages name resolution. My guess is that something like NetworkManager overwrites attempts by openfortivpn or pppd to modify those settings. Please monitor changes of /etc/.resolv.conf. Do they coincide with openfortivpn initialisation, and later with your DNS problems?

You can force the DNS server when running **dig**, thus bypassing any DNS server set in /etc/resolv.conf. Just for testing (that's not a workaround) try the following, where 192.168.10.2 is the IP address of your DNS server:

dig +short @192.168.10.2 <internal>.com

from openfortivpn.

DimitriPapadopoulos avatar DimitriPapadopoulos commented on August 17, 2024

However, the above does not explain why it worked with 1.17.1, but not with 1.21. Perhaps that's more related to the version of pppd than the version of openfortivpn. Said otherwise, if you let pppd handle DNS settings, perhaps pppd < 2.5.0 used to handle that as expected (by us), whereas pppd ≥ 2.5.0 has issues.

from openfortivpn.

Daniel-Boll avatar Daniel-Boll commented on August 17, 2024

I kept checking /etc/resolv.conf as you suggested and nothing has changed at all time.

I ran watch cat /etc/resolv.conf and then the usual openfortivpn command, although it logs:

DEBUG:  Attempting to modify /etc/resolv.conf directly.
DEBUG:  Adding "nameserver 192.168.10.2", to /etc/resolv.conf.
DEBUG:  Adding "nameserver 192.168.10.2", to /etc/resolv.conf.

Nothing is really added

from openfortivpn.

Daniel-Boll avatar Daniel-Boll commented on August 17, 2024

Dig forcing the DNS server worked, but so does everything at the begging, I will let the VPN run for a while and when I can no longer access the DNS by normal means I will try the dig command again to check.

from openfortivpn.

Daniel-Boll avatar Daniel-Boll commented on August 17, 2024

@DimitriPapadopoulos apparently it was the gateway, I changed gateways and it worked:

> cat /etc/resolv.conf
nameserver 192.168.10.2
nameserver 192.168.10.2

I think there may be a configuration that does not apply the changes in resolv.conf; If I had the gateway configurations I would provide to enlighten you guys in a possible problem, but as of now I don't have it. I will try to get it, but I think this issue can be closed for now.

Thank you very much for the help.
Best Regards,
Daniel Boll. 🎴

from openfortivpn.

DimitriPapadopoulos avatar DimitriPapadopoulos commented on August 17, 2024

There are 3 possibilities:

  1. openfortivpn modifies /etc/resolv.conf
  2. openfortivpn call resolvconf to handle DNS settings
  3. pppd takes over

Option --pppd-use-peerdns triggers case 3, but then that would be a pppd issue, it would not be an openfortivpn issue, would it?

Case 1 works for legacy Linux distributions, and may work for more recent Linux distributions, although modifying /etc/resolv.conf really should be avoided.

Case 2 is supposed to be the best option, but then it depends on resolvconf being available and doing the right thing.

from openfortivpn.

DimitriPapadopoulos avatar DimitriPapadopoulos commented on August 17, 2024

This tells me you're in case 1:

DEBUG:  Attempting to modify /etc/resolv.conf directly.
DEBUG:  Adding "nameserver 192.168.10.2", to /etc/resolv.conf.
DEBUG:  Adding "nameserver 192.168.10.2", to /etc/resolv.conf.

Is resolvconf installed?

from openfortivpn.

Daniel-Boll avatar Daniel-Boll commented on August 17, 2024

This tells me you're in case 1:

DEBUG:  Attempting to modify /etc/resolv.conf directly.
DEBUG:  Adding "nameserver 192.168.10.2", to /etc/resolv.conf.
DEBUG:  Adding "nameserver 192.168.10.2", to /etc/resolv.conf.

Is resolvconf installed?

No, I was searching how to modify resolv.conf and stumbled upon resolvconf, didn't installed it before trying to modify the gateway, which in turn worked.

from openfortivpn.

Daniel-Boll avatar Daniel-Boll commented on August 17, 2024

Because mainly resolvconf is made for systemd, I am not sure if I can use it

from openfortivpn.

Daniel-Boll avatar Daniel-Boll commented on August 17, 2024

Oh, I see, I will test with this one. I am running only: sudo openfortivpn -c config.vpn -v

from openfortivpn.

Daniel-Boll avatar Daniel-Boll commented on August 17, 2024

Everything seems good, test very thoroughly today. I will be closing the issue, openresolv really solved the matter. Thank you very much.

from openfortivpn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.