Code Monkey home page Code Monkey logo

Comments (8)

ordex avatar ordex commented on June 27, 2024

A fix has been pushed to the master branch. Userspace does not need to be patched, although I have sent a patch over the ml to improve logging in this specific scenario.

@lstipakov want to give it a go?

from ovpn-dco.

lstipakov avatar lstipakov commented on June 27, 2024

I can confirm that it works.

Userspace OpenVPN 2.6_rc1 [git:release/2.6/bfd0ef36c46f8326]
Kernel OpenVPN data channel offload (ovpn-dco) 0.1.20221107-2-g0c71691 -- (C) 2020-2022 OpenVPN, Inc.

After stopping client I got this in server log:

openvpn[151316]: client40/185.38.2.3:53157 SIGTERM[soft,ovpn-dco: unknown reason] received, client-instance exiting
kernel: [4485892.570554] tun0: deleting peer with id 0, reason 4

I was able to reconnect without any issues.

With this patch I see the proper log message:

openvpn[152253]: client40/185.38.2.3:53439 SIGTERM[soft,ovpn-dco: transport disconnected] received, client-instance exiting

from ovpn-dco.

cron2 avatar cron2 commented on June 27, 2024

from ovpn-dco.

ordex avatar ordex commented on June 27, 2024

@cron2 may it be related to the other issue? I.e. netlink buffer got full and some messages got lost?

from ovpn-dco.

cron2 avatar cron2 commented on June 27, 2024

from ovpn-dco.

ordex avatar ordex commented on June 27, 2024

Good question, but I don't know. DEL_PEER is delivered in multicast, so there is no "read a unicast message on your socket". And I am not sure if we are performing any read since we are not getting notified of any new message.

But yeah, I would also expect $some error at that point...So maybe this was not the right hint

from ovpn-dco.

ordex avatar ordex commented on June 27, 2024

@cron2 from the log, would you be able to check if you received a DEL_PEER for all peers or if indeed we are missing some of them? This would help understanding where the issue is (i.e. event not sent/received at all or event not properly handled)

from ovpn-dco.

ordex avatar ordex commented on June 27, 2024

The issue has been reported as fixed. The latest ovpn-dco release moves control packets back to the transport sockets rather than using netlink, and thanks to this also diusconnection detection is handled again in userspace directly.

from ovpn-dco.

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.