Fake Internet Connectivity for your Lab (Tricking NCSI) – via: Canberra Premier Field Engineering
Posted by jpluimers on 2013/06/21
If you ever wondered why how in Windows – as of Vista – the NCIS (network connection status indicator) determines if you have a valid internet connection, it is pretty simple, as both these pages explain:
- What do Microsoft and NCSI have in common? | TechRepublic.
- Windows 7 Network Awareness: How Windows knows it has an internet connection « Super User Blog.
- Appendix K: Network Connectivity Status Indicator and Resulting Internet Communication in Windows Vista.
- Appendix H: Network Connectivity Status Indicator and Resulting Internet Communication in Windows 7 and Windows Server 2008 R2.
NCIS depends on the msftncis.com domain (link to the checks from IntoDNS) and is for supporting Network Awareness in applications.
The probing is done in this order:
- Download check:
- Do a DNS lookup for www.msftncsi.com
- Retrieve the file http://www.msftncsi.com/ncsi.txt
- Check if the content of this file matches the text “Microsoft NCSI” (without quotes).
- DNS check:
- Do a DNS lookup for dns.msftncsi.com
- Check if the DNS lookup returns IPv4 address
131.107.255.255
Windows supports three outcomes:
- If the download check succeeds, it assumes a valid internet connection.
- If not, it does the DNS check. If it resolves, but returns a different address, then it assumes you have no valid internet connection.
- If it resolves, then it assumes you need to logon to get internet access.
With the above knowledge, it is takes few steps to simulate Fake Internet Connectivity for your Lab (Tricking NCSI):
- Setup a server at IPv4 address
131.107.255.255
that does DHCP, DNS, WWW and can act as a default gateway - Have the server serve DHCP so the DHCP clients have a default gateway and DNS pointing to the server
- Have the server serve DNS to the client for the msftncis.com domain
- Make the server resolve www.msftncsi.com to itself
- Make the server serve WWW and serve http://www.msftncsi.com/ncsi.txt
- Make the server resolve dns.msftncsi.com as
131.107.255.255
–jeroen
via: [Wayback] Fake Internet Connectivity for your Lab (Tricking NCSI) – Canberra Premier Field Engineering: Team Blog – Site Home – MSDN Blogs.
Leave a Reply