Giter VIP home page Giter VIP logo

Comments (6)

schwabe avatar schwabe commented on May 27, 2024

2023-01-27 13:56:47 NOTE: GetBestInterfaceEx returned error: Element nicht gefunden. (code=1168)

That says that OpenVPN cannot determine a route to the IP that was queried. To diagnose this is a log without masked IPs and a route table before OpenVPN was started is probably needed (ie route print and I think openvpn has also a commadn to show its view of the routes)

from openvpn.

pfromme25 avatar pfromme25 commented on May 27, 2024

I debugged a bit more into my problem as the line you described also pops up when using disable-dco on 2.6.0 and on our working systems with 2.5.8. I've also checked a Debian Unstable system with the ovpn-dco kernel driver installed and enabled and did not encounter any issues, therefore I checked the difference between our windows and linux client configs.

Which led me to the ip-win32 (push "ip-win32 dynamic 0 86400") Option, which we push from our server to our clients and subsequently ignore in our Linux OpenVPN Client configs. When I ignore this option on a Windows 10 system running 2.6.0 using dco, I don't encounter any issues around IPv4 addresses nor routes.

In our use case, it is supposed to set the lease time on windows machines to a day, though I'm not entirely sure if this option is even still needed or some setting we accumulated and never removed (have to check for that one internally). After reading the documentation, it seems to revolve around the TAP-Win32 Interface. Is the issue in regards to ovpn-dco's lack of support for TAP Mode and therefore a problem in our config or an actual issue in ovpn-dco?

from openvpn.

cron2 avatar cron2 commented on May 27, 2024

from openvpn.

pfromme25 avatar pfromme25 commented on May 27, 2024

Thanks for the explanation. Removing the old ip-win32 push option solves our problem.

Do you want to keep this issue open as you consider the current behavior a bug in OpenVPN?

from openvpn.

cron2 avatar cron2 commented on May 27, 2024

from openvpn.

selvanair avatar selvanair commented on May 27, 2024

Pushing ip-win32 is root of all evil.

Similar to the --pull-filter ignore route-method we added in the GUI, shall we also add a --pull-filter ignore ip-win32?

Though the incompatibility check in options.c between ip-win32 variants and the driver in use could be improved to also catch pushed options, its would be so much cleaner if we can just purge this option completely from push reply.

from openvpn.

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.