Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Disabling NetBIOS for Windows via DHCP option

    Scheduled Pinned Locked Moved DHCP and DNS
    6 Posts 2 Posters 3.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      coreybrett
      last edited by

      Does anyone know how to disable NetBIOS for Windows clients via DHCP?

      I've tried creating an "Additional BOOTP/DHCP Option" via the GUI of number 46, type Unsigned 8-bit int and value 2.

      With the above, there doesn't seem to be any difference, Windows is still using NetBIOS after a DHCP renewal.

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        number 46 would be used to set your netbios node type, not disable it.  To disable it you would need to use option 43 would you not?  Vendor specific stuff!

        The format is a bit odd.  And you need to set the first part vendor option code to 0x01 and length to 0x04 and then the actual value of 0x00000002, so with pfsense dhcp you could set that via options and string and then 01:04:00:00:00:02

        So did a quick test and yup disables.

        So set option, then looked and yup enabled - did a ipconfig /renew and then shows disabled.

        I then removed the setting, another /renew and its back.  Keep in mind your client has to be set to use dhcp option which should be the default, but if its hard coded enabled on the client this setting wont do anything

        edit: here even grabbed sniff of the dhcp ack when I did a renew and you can see the 43 specific option being sent - 3rd pic

        diabled.png
        diabled.png_thumb
        undidandback.png
        undidandback.png_thumb
        dhcpcapture.png
        dhcpcapture.png_thumb

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 1
        • C
          coreybrett
          last edited by

          Thanks for the help!

          Setting Option 46 (NetBIOS Node Type) to a value of 0x2 (P-node) was my objective.

          I guess option 46 vs 43 is where I am lacking understanding.

          Are your settings for 43 changing the node type to P-node, and if so, what's the point of 46?

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            43 disables netbios over tcp.. This is what your post stated

            "Disabling NetBIOS for Windows via DHCP option"

            Yes option 46 would be used to set the node type, P, B, M or Hybrid..  So what exactly is your question, are you trying to disable it - ie the old ports 139, etc. and just use over 445.. Or are you trying to set the node type of netbios?

            So you want to use P node..  You do understand P node points to a WINS server only - you are still running wins?  Wow ;)

            If what your wanting is to set node type to P.. Give me second.

            edit:
            here you go… You see mine was hybrid, set dhcp option 46 with string 02, and then /renew and shazam p-node (peer-to-peer).. But for that do do any good you would need to be running a wins server..  Which really has little use any more..

            pnode.png
            pnode.png_thumb

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • C
              coreybrett
              last edited by

              Ok, sorry, my brain was stuck on something, I thought I had read somewhere that setting the node type to 0x2 was what disabled NetBIOS. Obviously not.

              43 with your settings is exactly what I needed. Thank you.

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by

                Great glad could be of help.. I just set mine to b-node.. Little use of any of the other nodes.. But broadcast still comes in handy now and then.  Normally default is H-node.. Unless your talking old school which use to default to b if I recall correctly - lot of years ago playing with this stuff.. Kind of walk down memory lane ;)

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.