LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-19-2012, 11:19 AM   #1
Pcmedicbiz
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
Question Netbios - computer name to IP resolution query


When networking a windows client pc to a linux Samba Server for the purpose of file sharing on a local office LAN should i enable Netbios over tcp/ip?
Hoping this option might make name to ip easier and more dependable.

This option is available in the windows network card properties setting.

Also, is Netbios becoming a thing of the past. I ask as it seemed easier to do prior to XP and Win7.

Thanks in advance.
 
Old 03-19-2012, 11:44 AM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,661

Rep: Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540
I enable Netbios on my Windows clients for connecting to Samba servers.

Where this can become difficult is in the authentication mechanism.
There was the original LANMAN hash that is now deprecated to the point that you need to configure Samba to support it.
Then there was NTLM followed by NTLMv2. Different versions of Windows have different default settings for how they use these hashes. You will find these settings in the local security policy settings. I find that setting something like accept NTLM, respond with NTLMv2 is a reasonable compromise between usability and security, but your needs may be different.
 
1 members found this post helpful.
Old 03-19-2012, 01:04 PM   #3
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Ireland
Distribution: Slackware, Crux, NetBSD
Posts: 1,306

Rep: Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774
I think it's a good idea to set up a small DNS server for a local network. You can of course put this on the same machine as Samba. I heard that the newer Microsoft operating systems prioritize DNS name resolution, although they probably put their own stamp on it. Samba can be told to look up DNS first. If you choose not to go down this route you should probably activate the WINS server component of Samba to speed up name resolution.
 
Old 03-19-2012, 01:33 PM   #4
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Quote:
should i enable Netbios over tcp/ip?
Yes you can, this option is used by the programs in the Samba suite to determine what naming services to use and in what order to resolve host names to IP addresses. Its main purpose to is to control how netbios name resolution is performed. The option takes a space separated string of name resolution options.

The options are: "lmhosts", "host", "wins" and "bcast". They cause names to be resolved as follows:

o lmhosts : Lookup an IP address in the Samba lmhosts file. If the line in lmhosts has no name type attached to the NetBIOS name (see the lmhosts(5) for details) then any name type matches for lookup.

o host : Do a standard host name to IP address resolution, using the system /etc/hosts , NIS, or DNS lookups. This method of name resolution is operating system depended for instance on IRIX or Solaris this may be controlled by the /etc/nsswitch.conf file. Note that this method is used only if the NetBIOS name type being queried is the 0x20 (server) name type or 0x1c (domain controllers). The latter case is only useful for active directory domains and results in a DNS query for the SRV RR entry matching _ldap._tcp.domain.

o wins : Query a name with the IP address listed in the wins server parameter. If no WINS server has been specified this method will be ignored.

o bcast : Do a broadcast on each of the known local interfaces listed in the interfaces parameter. This is the least reliable of the name resolution methods as it depends on the target host being on a locally connected subnet.

I recommend using NETBIOS over TCIP and opening the TCIP ports for NETBIOS and CLOSING the UDP ports at the firewalls.

Ports 137, 138, 139 and 443.

Depending on the clients and windows configuration you may need UDP 139 and UPD 443.

These are all internal (local sub net) never out to the internet.

Remember to open ports for input on clients with firewalls.

The gateway or router must open ports for input from the local net also (the second nic or the subnet ip set)

For more information see 'man smb.conf'
 
1 members found this post helpful.
Old 03-19-2012, 01:46 PM   #5
Pcmedicbiz
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Yes, i think i'll try the Wins server. I assume the Wins IP would be the same as the IP of the linux box.
Also, would i be correct in thinking i would then have to manually assign the Wins ip to each and every client?
 
Old 03-19-2012, 03:23 PM   #6
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Ireland
Distribution: Slackware, Crux, NetBSD
Posts: 1,306

Rep: Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774
Quote:
Originally Posted by Pcmedicbiz View Post
Yes, i think i'll try the Wins server. I assume the Wins IP would be the same as the IP of the linux box.
Yes - the same IP as the Samba server.

Quote:
Also, would i be correct in thinking i would then have to manually assign the Wins ip to each and every client?
Not necessarily. It depends on your network setup. Your existing DHCP server might provide the WINS server address. If not, you might be able to replace this DHCP server (on your router, for example) with a DHCP server running on your Linux server. I usually do this, and set up all the other services a mixed LAN would need - DNS name resolution of PCs, printers, etc., on the LAN (and caching internet addresses as well for speedy internet name resolution); NTP (quite important to have a time server in an accounts department, for example, and I had a case last week of a laptop refusing to log on to a banking website because the time was badly out); WINS; and other services useful for small networks. The DHCP server running on Linux or BSD can hand out all of this information and it can be configured easily in a small text file.

As you gain experience in Linux you can add a Squid proxy to your server to filter out unwanted internet content, and an OpenLDAP server to consolidate information. I have all of this, together with Samba, running happily on headless BSD servers (no graphical user interface) with just 1GB of RAM for networks of <=30 users, and the servers never break sweat.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NetBios name resolution not working JonathanWexler Linux - Networking 7 08-07-2009 11:39 AM
Samba Netbios name resolution issue tonedeaf1969 Linux - Software 0 05-08-2009 03:02 PM
Linux and NetBios name resolution essdeeay Linux - Networking 6 11-15-2005 12:10 PM
NetBIOS name resolution Harpune Linux - Networking 5 02-14-2005 02:40 PM
firewall and netbios name resolution Harpune Linux - Security 2 02-09-2005 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration