Skip to content

OpenVPN generates invalid configuration for net30 [non-legacy] #7228

@joni1993

Description

@joni1993

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug
When transitioning from legacy to the new configuration interface, the generated config is invalid for net30 configurations and won't start

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Generate OpenVPN Server config in new UI'
  2. Use 'net30' as 'Topology'
  3. Apply
  4. See error

Expected behavior

OpenVPN instance starts normally

Relevant log files

/usr/local/opnsense/scripts/openvpn/ovpn_service_control.php: The command '/usr/local/sbin/openvpn --config '/var/etc/openvpn/instance-84b64fa6-83fe-41e9-9862-9d7816065e4b.conf'' returned exit code '1', the output was ''
Options error: --client-connect requires --mode server

Environment

OPNsense 24.1.1-amd64
FreeBSD 13.2-RELEASE-p9
OpenSSL 3.0.13

Metadata

Metadata

Assignees

Labels

cleanupLow impact changes

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions