[Bug 289303] if_ovpn(4): application crashes when "multihome" option is used

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 04 Sep 2025 19:55:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289303

            Bug ID: 289303
           Summary: if_ovpn(4): application crashes when "multihome"
                    option is used
           Product: Base System
           Version: 14.3-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: zarychtam@plan-b.pwste.edu.pl

The daemon exits when IPv6 address has bo be assigned to the endpoint. It
happens from time to time, not on a regular basis. 
Important note: "mutihome" option is used in the config, OpenVPN is installed
from locally built pkg openvpn-2.6.14_1 and the breakage was probably
introduced later than "if_ovpn: Support multihomed server configurations" was
introduced, since I was testing this for few weeks without issues.

Below you can see an excerpt from the log.

[firmaxyz] Peer Connection Initiated with [AF_INET6]::ffff:q.r.s.t:54861 (via
::ffff:a.b.c.d%vlan0)
MULTI_sva: pool returned IPv4=172.a.b.c, IPv6=2001:db8:xxx:yyy::zz
OPTIONS IMPORT: reading client specific options from:
/usr/local/etc/openvpn/ccd/firmaxyz
MULTI: Learn: 172.a.b.c -> firmaxyz/q.r.s.t:54861
MULTI: primary virtual IP for firmaxyz/q.r.s.t:54861: 172.a.b.c
MULTI: Learn: 2001:db8:xxx:yyy::zz -> firmaxyz/q.r.s.t:54861
MULTI: primary virtual IPv6 for firmaxyz/q.r.s.t:54861: 2001:db8:xxx:yyy::zz
Failed to create new peer: File exists (errno=17)
Exiting due to fatal error

-- 
You are receiving this mail because:
You are the assignee for the bug.