Please login or register.

Login with username, password and session length
Advanced search  


Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: How-to: Have Vector Linux 5.8 resolve NetBIOS addresses  (Read 4392 times)


  • Member
  • *
  • Posts: 9
How-to: Have Vector Linux 5.8 resolve NetBIOS addresses
« on: March 17, 2007, 12:13:58 pm »

A little back ground.  I already have a home windows network and I'm putting VL5.8 on an old machine, of course I would like it to play nice with my existing windows network.  Here are the steps I had to take on VL 5.8 to have the Linux box resolve the NetBIOS names on my network.

I'm running a LinkSys router with DHCP enabled, and at least for now, I want to keep it that way.  I have two Win XP pro machines and and an older Win ME laptop.

I'm going to assume you have Samba installed.

After basic configuration, I could ping the Linux box from the win boxes by NetBIOS name, I could ping the win boxes from the Linux box by IP, but no resolution would happen by name.

1. Enable SAMBA (VASM->SUPER->SERVICE->SVRSET->4  Select samba)
2. Edit the smb.conf
    Set the GROUPNAME  in /etc/samba/smb.conf
      ex:  GROUPNAME = teagle
    Replace 'teagle' with your workgroup name.
3. add 'wins' to the hosts line in /etc/nsswitch.conf
                 hosts:       files dns wins
4. disable firewall by opening a terminal window, su to root:
chmod a-x /etc/rc.d/rc.firewall
chmod a-x /etc/rc.d/init.d/firewall

The firewall must be disabled in this way.  If you disable it in VASM either under SVRSET or the NETWORK/FIREWALL options, you will not even be able to ping the Linux box from the win boxes.  Opening the NetBIOS ports in the firewall also do not work.

You are disabling the firewall, if your box is not behind a router, this isn't always a very good idea.  While a router is not foolproof, any basic SOHO router providing NAT generally does a good job at keeping most scanning type things out of your network.  I would hope anyone needing this information already has at least a basic understanding of what this implies.

More information:
I found the following site: to be very informative in terms of easy to understand Samba configuration.


  • Packager
  • Vectorite
  • ****
  • Posts: 369
Re: How-to: Have Vector Linux 5.8 resolve NetBIOS addresses
« Reply #1 on: March 29, 2007, 03:32:42 am »

There is a solution to all that without disabling the firewall script (you still have to do steps 1-3 though). It involves modifying the firewall script. There are two ways to editing your firewall script. One is directly editing /etc/rc.d/init.d/firewall for everything, while the second is to change  line 93 of /etc/rc.d/init.d/firewall, REQUIRE_EXTERNAL_CONFIG to yes, then editing your /etc/firewall.conf for any subsequent changes.

Let's get to the real part shall we. One thing you must first know is the subnet of your network. Something like An easy way to find this out is getting your ip address and changing the last number to 0 and then append /24. For example, your ip address is, your subnet mask would be Now we edit the /etc/rc.d/init.d/firewall or /etc/firewall.conf based on what you chose earlier.

Assuming your subnet is, we edit the line that says:
PERMIT=" 445/tcp 137-139/tcp 445/udp 137-139/udp"
PERMIT=" 445/tcp 137-139/tcp 445/udp 137-139/udp"

then do a "service firewall restart" and you can get netbios name resolution and still have a firewall.
There's no place like ~.
VL 5.8 PentiumD 2.8Ghz Registered Linux User #432836