Skip to contentSkip to conversation

a problem with openvpn

Openvpn-devel yuanxun 3 participants 3 messages Apr 14, 2022

lore
Share & tools
lore

yuanxun

author
#0 lore raw

Recently found a problem with openvpn

environment:

Linux version 5.4.0-100-generic ([email protected]...) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04))

OpenVPN 2.6_git [git:dco/a503c91735538f21] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH/PKTINFO] [AEAD] [DCO]

When the Windows client is disconnected, the management interface "status" is used on the server, and the connected client will not exit immediately.

#1 lore raw

Am 14.04.22 um 12:03 schrieb yuanxun:

Quoted 10 lines

Recently found a problem with openvpn

environment:

Linux version 5.4.0-100-generic ([email protected]...) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04))

OpenVPN 2.6_git [git:dco/a503c91735538f21] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH/PKTINFO] [AEAD] [DCO]

When the Windows client is disconnected, the management interface “status” is used on the server, and the connected client will not exit immediately.

explicit-exit-notify does not work with DCO. That is a known issue.

Arne

#2 lore raw
In reply to yuanxun

Hi,

Quoted 4 lines · yuanxun

Recently found a problem with openvpn

environment:

Quoted 8 lines

Linux version 5.4.0-100-generic ([email protected]...) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04))

OpenVPN 2.6_git [git:dco/a503c91735538f21] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH/PKTINFO] [AEAD] [DCO]

When the Windows client is disconnected, the management interface "status" is used on the server, and the connected client will not exit immediately.

This depends on *how* the client is disconnected, and how it was connected to start with.

On a TCP connection, the server knows (because TCP goes away).

On an UDP session, the server can't know whether the client has been disconnected or is just "not sending anything", so how long it will take to update the status file depends on the "keepalive" settings (no keepalive = it might never update the status) and whether or not the client is using "explicit-exit-notify" <<- "tell the server the client was shutdown".

But even if explicit-exit-notify, it might run into timeout delays, if the client is not properly disconnected but the machine crashes, the internet router dies, ...

So, yes, this is the way it is. If you think this is a problem, be more specific, like "client config, server and client log when the client disconnects (both with --verb 4), etc"

gert

Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             [email protected]...