#73·iodine

iodine fails to find new OpenVPN TAP adapter on Windows

Author: jbizeCreated Apr 28, 2022Updated Nov 20, 2022

The Windows OpenVPN installer (OpenVPN-2.5.6-I601-amd64.msi) now creates a TAP interface with a root-enumerated hardware ID (ComponentId = root\tap0901). Iodine (tun.c) only looks for legacy hardware IDs (e.g. ComponentId = tap0901), even if a device name is provided (-d).

Please update the registry device enumeration section to match: tap0801, tap0901, and root\tap0901.

Also: there are several malformed warnx statements in tun.c. e.g.: warnx("Error opening registry key " TAP_ADAPTER_KEY); should be: warnx("Error (%d) opening registry key: %s", status, TAP_ADAPTER_KEY);