Project

General

Profile

Actions

Feature #11521

closed

Set Explicit Exit Notify to ``1`` by default for new OpenVPN client instances

Added by Viktor Gurov 9 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
OpenVPN
Target version:
Start date:
02/24/2021
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
21.05
Release Notes:
Default

Description

https://build.openvpn.net/man/openvpn-2.5/openvpn.8.html:

--explicit-exit-notify n

In UDP client mode or point-to-point mode, send server/peer an exit notification if tunnel is restarted or OpenVPN process is exited. In client mode, on exit/restart, this option will tell the server to immediately close its client instance object rather than waiting for a timeout.

The n parameter (default 1 if not present) controls the maximum number of attempts that the client will try to resend the exit notification message.

In UDP server mode, send RESTART control channel command to connected clients. The n parameter (default 1 if not present) controls client behavior. With n = 1 client will attempt to reconnect to the same server, with n = 2 client will advance to the next server.

This will allow the OpenVPN client to disconnect/shutdown gracefully.

same as #11520

Actions #2

Updated by Jim Pingle 9 months ago

We already have a GUI option for this. It only works with UDP, so enabling it unilaterally is not viable. At most we could set exit_notify in the tunnel config for new instances as a default and that wouldn't change the behavior of old instances.

Actions #3

Updated by Jim Pingle 9 months ago

  • Status changed from New to Pull Request Review
Actions #4

Updated by Renato Botelho 9 months ago

  • Status changed from Pull Request Review to Feedback
  • Assignee set to Viktor Gurov

PR has been merged. Thanks!

Actions #5

Updated by Renato Botelho 9 months ago

  • Target version set to 2.6.0
Actions #6

Updated by Viktor Gurov 9 months ago

  • % Done changed from 0 to 100
Actions #7

Updated by Max Leighton 8 months ago

  • Status changed from Feedback to Resolved

Tested and it looks good. The --explicit-exit-notify option is added to the client config on UDP. It is not added on TCP. I'll set the ticket to resolved.

Actions #8

Updated by Jim Pingle 7 months ago

  • Plus Target Version set to 21.05

Already present on 21.05 builds.

Actions #9

Updated by Jim Pingle 7 months ago

  • Subject changed from Add 'explicit-exit-notify' option to OpenVPN client config to Set Explicit Exit Notify to ``1`` by default for new OpenVPN client instances

Updating subject for release notes.

Actions #10

Updated by Jim Pingle 6 months ago

  • Target version changed from 2.6.0 to 2.5.2
Actions

Also available in: Atom PDF