openvpn icon indicating copy to clipboard operation
openvpn copied to clipboard

Implement DISABLE-NBT for DHCP-less drivers

Open lstipakov opened this issue 2 years ago • 4 comments

At the moment DISABLE-NBT implementation requires DHCP, which dco-win doesn't do. However, this could be done via registry:

Key: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Interfaces\Tcpip_{929597e1-a3f6-4090-a663-be4224677fc2}

{929597e1-a3f6-4090-a663-be4224677fc2} is a NetCfgInstanceId, which client knows.

Value: NetbiosOptions REG_DWORD 0x2

lstipakov avatar May 31 '23 08:05 lstipakov

Is this relevant? As in, would Windows even try to use NBT on a non-ethernet interface like wintun or dco?

(If yes, implementing this makes sense, of course...)

cron2 avatar May 31 '23 13:05 cron2

This came from our AS QA. Asked them if this is some real issue experienced by customer.

lstipakov avatar Jun 01 '23 09:06 lstipakov

Apparently yes, Windows does send NetBIOS traffic over DCO adapter. image (10)

lstipakov avatar Jun 01 '23 12:06 lstipakov

Doing this inside OpenVPN sounds terribly ugly (like, reverting to the previous state at the end of the session and all this).

Can we just disable netbios binding on the adapter at installation time, and document that ("if you actually need this, click here?").

cron2 avatar Jun 03 '23 09:06 cron2