oriolarcas

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: WinTun support #11543
    oriolarcas
    Participant

      Hello,

      It worked. It seems we were missing this change:

      HKR, Ndi\Interfaces,LowerRange,,"ndis5,ndis4"

      Thank you again for your excellent support.

      Oriol

      in reply to: WinTun support #11538
      oriolarcas
      Participant

        Hello again,

        I tried the solution in one Windows 10 machine, but when trying it in another one it did not detect the WinTun adapter.

        What I did was modify the .inf and recreate the .cat and sign with a test certificate. I can successfully install and load the driver in the second machine, but it simply acts as if there was no WinTun adapter, as if the .inf did not include any ‘nolower’ filter.

        I double-checked that the original driver is not present in DriverStore, and the driver that is installed is the one signed by me.

        The Windows 10 versions are the same (20H2), the only difference is that one is Home (unregistered) and the other is Education (registered).

        Any ideas? Any checklist that I could follow? Thanks in advance.

        in reply to: WinTun support #11528
        oriolarcas
        Participant

          Thank you Vadim, I added nolower to the FilterMediaTypes list in ndisrd_lwf.inf and it detected the WinTun interface. It worked out of the box.

          in reply to: WinTun support #11525
          oriolarcas
          Participant

            Follow up:

            This is the code in Wintun that creates the adapter:

            
                NDIS_MINIPORT_DRIVER_CHARACTERISTICS miniport = {
                    .Header = { .Type = NDIS_OBJECT_TYPE_MINIPORT_DRIVER_CHARACTERISTICS,
                                .Revision = NdisVersion < NDIS_RUNTIME_VERSION_680
                                                ? NDIS_MINIPORT_DRIVER_CHARACTERISTICS_REVISION_2
                                                : NDIS_MINIPORT_DRIVER_CHARACTERISTICS_REVISION_3,
                                .Size = NdisVersion < NDIS_RUNTIME_VERSION_680
                                            ? NDIS_SIZEOF_MINIPORT_DRIVER_CHARACTERISTICS_REVISION_2
                                            : NDIS_SIZEOF_MINIPORT_DRIVER_CHARACTERISTICS_REVISION_3 },
            
                    .MajorNdisVersion = (UCHAR)((NdisVersion & 0x00ff0000) >> 16),
                    .MinorNdisVersion = (UCHAR)(NdisVersion & 0x000000ff),
            
                    .MajorDriverVersion = WINTUN_VERSION_MAJ,
                    .MinorDriverVersion = WINTUN_VERSION_MIN,
            
                    .InitializeHandlerEx = TunInitializeEx,
                    .HaltHandlerEx = TunHaltEx,
                    .UnloadHandler = TunUnload,
                    .PauseHandler = TunPause,
                    .RestartHandler = TunRestart,
                    .OidRequestHandler = TunOidRequest,
                    .SendNetBufferListsHandler = TunSendNetBufferLists,
                    .ReturnNetBufferListsHandler = TunReturnNetBufferLists,
                    .CancelSendHandler = TunCancelSend,
                    .DevicePnPEventNotifyHandler = TunDevicePnPEventNotify,
                    .ShutdownHandlerEx = TunShutdownEx,
                    .CancelOidRequestHandler = TunCancelOidRequest,
                    .DirectOidRequestHandler = TunDirectOidRequest,
                    .CancelDirectOidRequestHandler = TunCancelDirectOidRequest,
                    .SynchronousOidRequestHandler = TunSynchronousOidRequest
                };
            
                Status = PsSetCreateProcessNotifyRoutine(TunProcessNotification, FALSE);
                if (!NT_SUCCESS(Status))
                    goto cleanupResources;
            
                Status = NdisMRegisterMiniportDriver(DriverObject, RegistryPath, NULL, &miniport, &NdisMiniportDriverHandle);
                if (!NT_SUCCESS(Status))
                    goto cleanupNotifier;
            
          Viewing 4 posts - 1 through 4 (of 4 total)