Project

General

Profile

Actions

Bug #6559

closed

OpenVPN 'mode server' directive missing

Added by Geoff Jones almost 9 years ago. Updated almost 8 years ago.

Status:
Not a Bug
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
06/29/2016
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
Affected Architecture:

Description

When creating a new OpenVPN server, the "server mode" web interface drop down does not influence the written configuration file.

By default, no "mode" directive is specified in the written server configuration, resulting in OpenVPN defaulting to a peer-to-peer configuration (behavior since ovpn 2.0). This changes the behavior of the management socket (preventing the status overview page from detailing connected clients), and only allows one client at a time to connect (subsequent connections will terminate the original connection).

This bug is "masked" if a tun interface is specified, as the 'server' helper directive is written to the configuration file, which changes the default mode to 'server'. It is therefore only noticeable with a tap device type.

Correct behavior should be a 'mode server' line is written to the configuration file if any of the "remote access" modes are selected in the gui, and no 'mode' line written to the configuration file if a peer-to-peer server mode is selected.

Ref: https://openvpn.net/index.php/open-source/documentation/manuals/65-openvpn-20x-manpage.html


Files

Capture.PNG (95.9 KB) Capture.PNG Geoff Jones, 06/30/2016 04:05 AM
Actions

Also available in: Atom PDF