-
Notifications
You must be signed in to change notification settings - Fork 546
NPCAP 0.99-r5 I lose internet after reboot on Windows 7 64 bit #385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for this bug report! Can you please run DiagReport on the problem system after reboot and include the output along with the Does uninstalling Npcap restore Internet access? Does it require a reboot to restore access after uninstalling? Does the problem happen if WinPcap compatible mode is not chosen or if Admin-only mode is not chosen? Does Npcap work properly before the reboot, or is there some other indication that something is wrong? |
Okay I've done a bit of experimenting but it's bedtime now. ZIPped files attached. |
I can confirm the same problem on my Win7 32-bit box. When I installed npcap, everything was still working after the install until a reboot. Then after the reboot my WiFi adapters can see APs (didn't try to connect), but my Local Ethernet wouldn't connect to my DHCP server and was allocated a 169.254.0.0/16 address. Uninstalling without reboot resolved the problem. Please see attached the logs for 0.99-r5. Installed 0.99-r4 as suggested and I have an IP address. I've attached logs for that too. |
Thanks. My system is Windows 7 64 bit. |
Same problem as @jcurl : Windows7 64bit |
I think this is related to the attempted fix for #83. Windows 7 has a limit on the number of Ndis Filter drivers that can be installed. By default, that limit is 8, but it can be increased in the Registry to 14. @jcurl's DiagReport shows 13 installed, and @BrianG61UK's shows 14. Previously, Npcap's installation process would just break when we tried to install more than that, but 0.99-r5 added the ability to increase the limit in the Registry as needed (up to 14) to avoid the error. I guess something happened near that limit where the stack wasn't able to handle it after reboot? Here are some steps to take to see if I'm right and what to do about it:
|
Okay, my MaxNumFilters seems to be 14 hex (or 20 decimal) at the moment. I guess that's invalid so I'll change it to 14 decimal and try 0.99-r5 again when I get a chance. |
How could I fix it by myself? Should I just modify I cannot find npcap 0.99-r4 to download. I googled. Q:
A:
how can I find out how many network filter drivers I have using Windows 7 and uninstall if too many
A:
How to get a list of network filters installed on a Windows 7 system Q:
A:
sc query npcap & reg query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\ /v MaxNumFilters |
@BrianG61UK Thanks for checking that. It's odd that the value was 0x14 instead of 14. We definitely are using 14 (decimal) in the new code. @Fang3s Thanks for the helpful info. You can always find the latest Npcap installers at https://nmap.org/npcap/#download |
I've reproduced the bug now here, and it does not have to do with the number of filter drivers installed (though that could still cause problems for some users). Windows 7 just doesn't like Npcap 0.99-r5 at the moment. We will keep this issue updated as we find out more. Thanks for your help and patience! |
Workaround available: Install without the "Automatically start the Npcap driver at boot time" option. Start the npcap driver after boot by running (as administrator) Nmap attempts to start the driver if it is not already started, potentially initiating a UAC prompt. Unfortunately, in my testing, it tries too quickly to use Npcap functions before the driver is done starting, resulting in "dnet: failed to open device eth0" error message. Just trying again was sufficient to let the driver finish starting. |
This issue is fixed in Npcap 0.99-r6. |
Reverting to 0.99-r4 is a fix.
To reproduce problem install 0.99-r5 with:
Auto start driver at boot: Yes
Support loopbaack traffic: No
Restrict to admin only: Yes
Support raw 802.11 for WiFi: No
Support 802.1Q: No
WinPcap compatible: Yes
Reboot.
You have lost internet access.
The text was updated successfully, but these errors were encountered: