Skip to content
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

npcap v0.78r5 - Network limited or no connectivity. #443

Closed
afallenhope opened this issue Dec 16, 2016 · 15 comments
Closed

npcap v0.78r5 - Network limited or no connectivity. #443

afallenhope opened this issue Dec 16, 2016 · 15 comments

Comments

@afallenhope
Copy link

After installing the latest version of nmap I noticed I was experiencing issues with npcap. I did at one point in time check all options. Once I discovered the "Releases" I've always stayed up to date and been reading the issues with drivers.

After installing the latest (0.78r5), I rebooted my computer and I wasn't able to get an IP. I've uninstalled the loopback adapter with NPFInstall.exe -ul and I've also uninstalled the wifi NPFInstall.exe -u2 and still had issues. I completely uninstalled and my wifi has returned to me.

I've tried stopping npcap and npf and both seem to have little to no effect on the issue. Only way I can get my network is by uninstalling npcap.

I've created a batch file that I run when I run into IP issues.

@echo off
echo Releasing IP address
ipconfig /release >nul
echo Test to see if things work.
echo.
echo Press any key if it didn't
pause>nul
echo Resetting ARP cache
netsh int ip delete arpcache
echo.
echo Press any key if it didn't fix it
pause>nul
echo Extreme moment here, resetting interface.
netsh int ip reset
echo.
echo If nothing fixed it... Contact support.
@afallenhope
Copy link
Author

Resolved the issue by disabling my Vbox Networking Adapter.

@dmiller-nmap
Copy link
Contributor

This issue needs to be addressed, still. @afallenhope mentioned an interesting notion on IRC: Npcap may be doing something to the wrong interface based on its ordinal position in some listing:

seems like (I recalled reading it on seclist) it grabs the first adapter it can find..... That adapter is Vbox's virtual adapter. Which...doesn't have network (one of my packet sniffers I wrote had the same issue, and Dns.GetHostEntry(Dns.GetHostName()); caused the same issue. So I disabled VirtualBox's adapter.
re-enabled my vbox bridge adapter.. still have internet. So...... I think it's a vbox adapter taking precedent

I believe that NPFInstall.exe is taking some sort of action on adapters that do not support it: the Vbox adapter in this case, but also possibly VPN adapters and other software we have previously reported as conflicting. I am keeping this open until I finish investigating.

@dmiller-nmap dmiller-nmap reopened this Dec 16, 2016
@taismi
Copy link

taismi commented Dec 20, 2016

I have this same problem in both of my computes.

Installation did not give me any error. Wireshark did not saw my wireless adapter. I tried this.
C:\Program Files\Npcap>NPFInstall.exe -i2
Npcap LWF driver (with Wi-Fi support) has failed to be installed.

I changed HKEY_LOCAL_MACHIN/ESYSTEM/CurrentControlSet/Control/NetworkMaxNumFilters from 8 to 9. Then I installed Npcap but after reboot my wired Ethernet connection was gone.

I have Freedome VPN Connection and VirtualBox Host-Only Network adapters installed.

@Varunram
Copy link

Varunram commented Dec 28, 2016

@dmiller-nmap I think this might be caused by an else statement in netcfgapi.cpp

{
  TRACE_PRINT1("HrInstallComponent: error, szComponentId = %s.", NDISLWF_SERVICE_PNP_DEVICE_ID_WIFI);
  // at least install the first service
  hr = pnc->Apply();
  if (hr != S_OK)
  {
    TRACE_PRINT1("INetCfg::Apply: error, errCode = 0x%08x.", hr);
  }
}

The error might occur due to it installing (or trying to install) the first service.

@kalav
Copy link

kalav commented Dec 31, 2016

This is a problem that had me and my Windows admins scratching our heads for quite some time. Why is the adapter being given a link local address? Are DHCP services being blocked.

The inability for my Windows 7 FP1 Toshiba Tecra A40-C's wireless adapter to get an outside IP address occurs with the npcap version bundled with the current nmap download, as well as the latest version of npcap, as of 30 Dec. 2016.

The only workaround I've found, short of uninstalling npcap, is to turn off - in the wireless adapter's Network Connection Properties - Npcap Packet Driver (NPCAP). After doing this, the adapter immediately gets an outside IP address.

This workaround is okay for me, since I use nmap for local VMs, but this obviously not a use case for everyone. My own personal machine, a Windows 10 desktop, does not exhibit this behavior.

@dmiller-nmap
Copy link
Contributor

Investigating this as an instance of nmap/nmap#373. Not closing this yet because there's useful info here.

@xtipacko
Copy link

xtipacko commented Jan 21, 2017

I've hit the same problem. It happens when a load my operation system (win7). For some reason, when I run nmap -sn 10.10.10.0/24 (my local network) it enables network connectivity, but only until next reboot.

@zandr14
Copy link

zandr14 commented Feb 8, 2017

@everiknow
Copy link

hey everyone
im still having the same issue even after installing the latest version of npcap-0.84
after rebboting my computer i can't connect to my WIFI
im using GNS3 1.5.2 with GNS3 VM 1.5.2

@Varunram
Copy link

Varunram commented Apr 5, 2017

@everiknow What were the options with which you installed?

@everiknow
Copy link

everiknow commented Apr 7, 2017 via email

@dmiller-nmap
Copy link
Contributor

Please try Npcap 0.90 and report if it fixes this issue. Thanks!

@iceonsun
Copy link

iceonsun commented May 2, 2018

Still have the problem. Windows 7 and Npcap 0.90

@dmiller-nmap
Copy link
Contributor

Provisionally closing this issue because we have done lots of changes and improvements related to OID requests and WiFi connectivity. Please make a new issue if you are experiencing similar symptoms with Npcap 0.99-r6 or later and reference this issue if they involve complete loss of connectivity with VirtualBox or a VPN network adapter.

@bijoy26
Copy link

bijoy26 commented Nov 22, 2020

OS: Win 10 64 bit
Nmap: v7.91
Npcap: v1.00
Installation Method: nmap zip binaries for windows

Everything works fine after installing, except for rebooting my machine makes my ethernet adapter confused.
It seems to obtain a different IP than usual, and the default gateway can't be accessed (which is my router providing DHCP) and so there's no internet.

Disabling and re-enabling the adapter from Network Connection takes everything back to normal.
I guess it's coming from my additional VBox adapter mentioned on this issue.

@fyodor fyodor transferred this issue from nmap/nmap May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants