Comments (8)
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.
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.
from ovpn-dco.
@cron2 may it be related to the other issue? I.e. netlink buffer got full and some messages got lost?
from ovpn-dco.
from ovpn-dco.
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.
@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.
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)
- DEL_PEER not delivered to userspace: netlink returns NLE_AGAIN HOT 26
- Unknown symbols HOT 4
- compile for help HOT 1
- Unknown symbol
- report "rekeying needed" to userspace HOT 1
- dkms: autoinstall for kernel: 6.5.0-rc5 failed! HOT 8
- Build error with kernel 6.5 / 6.4 (?) - implicit declaration of function 'skb_gso_segment' HOT 2
- Does not build on kernel < 6.4.10, net/gso.h: No such file or directory HOT 3
- DCO interface error after restarting the openvpn service or restarting the server. HOT 14
- UDP mode, exit problems HOT 9
- DCO interface should autodestroy (by default) if userland crashes
- netlink reports object not found HOT 17
- netlink reports object not found HOT 1
- Build error with CentOS Stream release 8 HOT 2
- Hide info messages "deleting peer with id" from dmesg HOT 3
- tcp.c:482:31: error: assignment to βint (*)(struct sock *, struct msghdr *, size_t, int, int, int *)β HOT 5
- DCO and ipv6 HOT 4
- TLS renegotiation sometimes causes remaining ghost connections HOT 18
- Error building on Ubuntu Jammy-based distro HOT 1
- tests doesn't compile HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ovpn-dco.