{"id":9,"date":"2009-02-01T21:27:21","date_gmt":"2009-02-02T03:27:21","guid":{"rendered":"http:\/\/www.digitallachance.com\/blog\/?p=9"},"modified":"2009-02-01T21:27:21","modified_gmt":"2009-02-02T03:27:21","slug":"should-you-kill-netbios-from-your-network","status":"publish","type":"post","link":"http:\/\/digitallachance.com\/blog\/2009\/02\/should-you-kill-netbios-from-your-network\/","title":{"rendered":"Should you kill NetBIOS from your network?"},"content":{"rendered":"<p>Do you still have NetBIOS turned on on all of your workstations and servers in your corporate LAN?\u00a0 This old network protocol puts you at risk and should be killed without prejudice!<\/p>\n<p>There are quite a few reasons why NetBIOS is bad for your network.<\/p>\n<ol>\n<li>NetBIOS is an inneficient protocol.\u00a0 It is very chatty with lots of broadcasts.<\/li>\n<li>When used with its defaults settings, it can be used by the bad guys to gather information about your network and users.\u00a0 This is done through null sessions.\u00a0 An excellent source of information on null session can be found in the (old, but still true) page titled <a href=\"http:\/\/puna.net.nz\/archives\/Hacking\/NetBIOS%20Null%20Sessions%20The%20Good,%20The%20Bad,%20and%20The%20Ugly.htm\" target=\"_blank\">NetBIOS Null Sessions: The Good, The Bad, and The Ugly<\/a>.<\/li>\n<li>Although it can now be routed across LANs by using NetBIOS over TCP\/IP (NetBT), it was never meant to be used in a WAN environment.<\/li>\n<li>The original design of NetBIOS was actually for a LAN of about 70 users.<\/li>\n<\/ol>\n<p>One of the major misconception about NetBIOS is the fact that people think that it has to be there in order for you to have a file share to serve files to your network users.\u00a0 <a title=\"Direct hosting of SMB over TCP\/IP\" href=\"http:\/\/support.microsoft.com\/kb\/204279\" target=\"_blank\">That is actually not the case<\/a>.<\/p>\n<h2>File sharing on your LAN<\/h2>\n<p>NetBIOS uses these ports:<\/p>\n<ul type=\"disc\">\n<li>UDP 137: NetBIOS name service<\/li>\n<li>UDP 138: NetBIOS datagram service<\/li>\n<li>TCP 139: NetBIOS session service<\/li>\n<\/ul>\n<p>In actual fact, a workstation that tries to connect to a file share might start by trying using those ports.\u00a0 Windows will automatically fall back to using SMB, which is on port TCP 445.\u00a0 You might have heard of SMB (Server Message Blocks) and CIFS (Common Internet File System) in the same conversation.\u00a0 That&#8217;s because <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/aa365233.aspx\" target=\"_blank\">CIFS is actually a dialect of SMB<\/a>.<\/p>\n<h2>The downside of disabling NetBIOS<\/h2>\n<p>I found only two problems that you might run into if you disable NetBIOS.\u00a0 Another side effect is that this will <a title=\"NETBIOS: Leave On or Turn Off?\" href=\"http:\/\/www.windowsnetworking.com\/kbase\/WindowsTips\/Windows2003\/AdminTips\/Network\/NETBIOSLeaveOnorTurnOff.html\" target=\"_blank\">affect trusts between forests<\/a>.\u00a0 This is definitely true for domains at the Windows 2000 functional level or even a Windows NT to Windows 2003 trust.\u00a0 In a simpler network with only one domain in your forest, this will not be an issue.<\/p>\n<p>The other negative impact that I found is the fact that you no longer browse for computer in <em>Network Neighborhood <\/em>(Windows 98) or <em>Microsoft Windows Network<\/em> (Windows XP). When NetBIOS is enabled in your network, the master browser collects information about all the computers in the network.\u00a0 That information is then propagated every 12 minutes to all workstations.\u00a0 This can be displayed in the network neighborhood or using the NET VIEW command.\u00a0 In effect, this is how name resolution was done, by using the list maintained by the master browser. WINS is the other name resolution method in the NetBIOS world.\u00a0 This method is <a title=\"Description of the Microsoft Computer Browser Service\" href=\"http:\/\/support.microsoft.com\/kb\/188001\" target=\"_blank\">no longer used by Microsoft<\/a> OS since Windows 2000.<\/p>\n<h2>How to deal with NetBIOS<\/h2>\n<p>The best thing to do, is simply to eliminate NetBIOS.\u00a0 You probably won&#8217;t miss it.\u00a0 Most likely, if your network has more than a few computers in it, you are using DHCP.\u00a0 You can use <a href=\"http:\/\/support.microsoft.com\/kb\/313314\" target=\"_blank\">DHCP to easily disable NetBIOS<\/a> on your workstations.\u00a0 In a smaller setting, you can change the configuration on each computer in your network by doing the following (instructions for Windows XP):<\/p>\n<ol>\n<li>Click <strong>Start<\/strong>, point to <strong>Settings<\/strong>, and then click <strong class=\"uiterm\">Network and Dial-up Connection<\/strong>.<\/li>\n<li>Right-click <strong>Local Area Connection<\/strong>, and then click <strong>Properties<\/strong>.<\/li>\n<li>Click <strong>Internet Protocol (TCP\/IP)<\/strong>, and then click <strong>Properties<\/strong>.<\/li>\n<li>Click <strong>Advanced<\/strong>.<\/li>\n<li>Click the <strong>WINS<\/strong> tab, and then click <strong class=\"uiterm\">Disable NetBIOS over \t\t\t\tTCP\/IP<\/strong>.<\/li>\n<\/ol>\n<p>This method disables NetBIOS Session Service (which listens on TCP port 139). It does not disable NetBIOS completely.\u00a0 If you do not want to have SMB enabled, you can disable it all at once by using the following instructions:<\/p>\n<ol>\n<li>From the <strong>Start<\/strong> menu, right-click <strong>My Computer<\/strong>, and then click <strong>Manage<\/strong>.<\/li>\n<li>Expand <strong>System Tools<\/strong>, and then clear the <strong>Device Manager<\/strong> check box.<\/li>\n<li>Right-click <strong>Device Manager<\/strong>, point to <strong>View<\/strong>, and then select <strong>Show hidden devices<\/strong>.<\/li>\n<li>Expand <strong>Non-Plug and Play Drivers<\/strong>.<\/li>\n<li>Right-click <strong>NetBios over TCP\/IP<\/strong>, and then click <strong>Disable<\/strong>.<\/li>\n<\/ol>\n<p>This disables the SMB direct host listener on TCP\/445 and UDP 445.<\/p>\n<h2>Final Thoughts<\/h2>\n<p>Before you make such an important change in your network, you need to do some serious testing.\u00a0 This is especially true if you have a lot of different servers and applications.\u00a0 I intend to post again with the result of my testing and the effect that disabling NetBIOS had on our network.<\/p>\n<h2>Related links<\/h2>\n<ul>\n<li><a href=\"http:\/\/support.microsoft.com\/default.aspx?scid=kb;EN-US;323357\" target=\"_blank\">How To Configure TCP\/IP Networking While NetBIOS Is Turned Off on a Server Running Windows Server 2003<\/a><\/li>\n<li><a href=\"http:\/\/support.microsoft.com\/default.aspx?scid=kb;RU;299977\" target=\"_blank\">How To Configure TCP\/IP Networking While NetBIOS Is Disabled in Windows 2000 Server<\/a><\/li>\n<li><a href=\"http:\/\/support.microsoft.com\/kb\/204279\" target=\"_blank\">Direct hosting of SMB over TCP\/IP<\/a><\/li>\n<li><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ms143696.aspx\" target=\"_blank\">How to: Disable NetBIOS over TCP\/IP<\/a><\/li>\n<li><a title=\"How to disable NetBIOS over TCP\/IP by using DHCP server options\" href=\"http:\/\/support.microsoft.com\/kb\/313314\" target=\"_blank\">How to disable NetBIOS over TCP\/IP by using DHCP server options<\/a><\/li>\n<li><a href=\"NETBIOS: Leave On or Turn Off?\" target=\"_blank\">NETBIOS: Leave On or Turn Off?<\/a><\/li>\n<li><a href=\"http:\/\/support.microsoft.com\/kb\/325874\">How to establish trusts with a Windows NT-based domain in Windows Server 2003<\/a><\/li>\n<li><a href=\"http:\/\/support.microsoft.com\/kb\/188001\" target=\"_blank\">Description of the Microsoft Computer Browser Service<\/a><\/li>\n<li><a href=\"http:\/\/www.windowsdevcenter.com\/pub\/a\/windows\/2004\/05\/11\/netbios.html\" target=\"_blank\">Understanding NetBIOS and Windows Server 2003<\/a><\/li>\n<li><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ms143696.aspx\" target=\"_blank\">How to: Disable NetBIOS over TCP\/IP<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In a Windows XP network, NetBIOS is on by default. There are some misconceptions regarding whether NetBIOS is required in order to have file sharing working. In fact, that is not the case. This post will explain what I found out when investigating the impact of removing NetBIOS from our corporate network.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[35],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Should you kill NetBIOS from your network? - IT A Digital Life<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/digitallachance.com\/blog\/2009\/02\/should-you-kill-netbios-from-your-network\/\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"4 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/digitallachance.com\/blog\/#website\",\"url\":\"https:\/\/digitallachance.com\/blog\/\",\"name\":\"IT A Digital Life\",\"description\":\"All things digital\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/digitallachance.com\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/digitallachance.com\/blog\/2009\/02\/should-you-kill-netbios-from-your-network\/#webpage\",\"url\":\"https:\/\/digitallachance.com\/blog\/2009\/02\/should-you-kill-netbios-from-your-network\/\",\"name\":\"Should you kill NetBIOS from your network? - IT A Digital Life\",\"isPartOf\":{\"@id\":\"https:\/\/digitallachance.com\/blog\/#website\"},\"datePublished\":\"2009-02-02T03:27:21+00:00\",\"dateModified\":\"2009-02-02T03:27:21+00:00\",\"author\":{\"@id\":\"https:\/\/digitallachance.com\/blog\/#\/schema\/person\/8a2f0b2a18af80d71541deadfac4d02f\"},\"breadcrumb\":{\"@id\":\"https:\/\/digitallachance.com\/blog\/2009\/02\/should-you-kill-netbios-from-your-network\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/digitallachance.com\/blog\/2009\/02\/should-you-kill-netbios-from-your-network\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/digitallachance.com\/blog\/2009\/02\/should-you-kill-netbios-from-your-network\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/digitallachance.com\/blog\/2009\/02\/should-you-kill-netbios-from-your-network\/\",\"url\":\"https:\/\/digitallachance.com\/blog\/2009\/02\/should-you-kill-netbios-from-your-network\/\",\"name\":\"Should you kill NetBIOS from your network?\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/digitallachance.com\/blog\/#\/schema\/person\/8a2f0b2a18af80d71541deadfac4d02f\",\"name\":\"Francois\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/digitallachance.com\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"http:\/\/0.gravatar.com\/avatar\/ce2ee0649f3fb6a643ffff9a9f1e63e4?s=96&d=mm&r=g\",\"caption\":\"Francois\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"http:\/\/digitallachance.com\/blog\/wp-json\/wp\/v2\/posts\/9"}],"collection":[{"href":"http:\/\/digitallachance.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/digitallachance.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/digitallachance.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/digitallachance.com\/blog\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":0,"href":"http:\/\/digitallachance.com\/blog\/wp-json\/wp\/v2\/posts\/9\/revisions"}],"wp:attachment":[{"href":"http:\/\/digitallachance.com\/blog\/wp-json\/wp\/v2\/media?parent=9"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/digitallachance.com\/blog\/wp-json\/wp\/v2\/categories?post=9"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/digitallachance.com\/blog\/wp-json\/wp\/v2\/tags?post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}