Project

General

Profile

Actions

Regression #13818

open

OpenVPN fails to start when a related static route already exists

Added by Marcos M over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
OpenVPN
Target version:
-
Start date:
Due date:
% Done:

0%

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

Description

Tested on 23.01.b.20221230.0600.

Steps:
  1. Configure an OpenVPN client in the GUI (tested with non-DCO); verify it's started/connected.
  2. Configure a static route for the tunnel network via the OpenVPN gateway; e.g. 172.16.1.0/24 via ovpnc2.
  3. Stop the OpenVPN client service; verify that the route still exists in the routing table (it may take a moment to be re-added via system_staticroutes_configure()).
  4. Start the OpenVPN client service.

Results:
The OpenVPN client service fails to start, showing the following in the logs:

Jan 1 10:54:54     openvpn     79361     TUN/TAP device /dev/tun2 opened
Jan 1 10:54:54     openvpn     79361     /sbin/ifconfig ovpnc2 172.16.1.0/24 mtu 1500 up
Jan 1 10:54:54     openvpn     79361     FreeBSD ifconfig failed: external program exited with error status: 1
Jan 1 10:54:54     openvpn     79361     Exiting due to fatal error

This setup worked previously in 22.05.

Actions

Also available in: Atom PDF