Home | Hardware | Internet News |Web Hosting |IT Management |Network Storage
LinuxPlanet
Search 
  Power Search | Tips 

 Front Door
 Discussion
 LinuxEngine
 Opinions
 Reports
 Reviews
 Tutorials
 News
 Technology Jobs

 Browse by subject.
Free Newsletter

Linux Planet
Linux Today
More Free Newsletters

Be a Commerce Partner


















internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Print this article
Email this article
Related Items

•  nbfw page

•  Samba home page


   LinuxPlanet / Tutorials



Routing NetBIOS with Linux
Setting up Samba nbfw

Matt Clements
Friday, October 29, 1999 05:59:12 AM

We will need several things to get this to work. First of all we need a Linux kernel capable of port forwarding, like the 2.2.x kernels which are capable of port forwarding without any patching. The 2.0.3x kernels will need to be patched. To find out how to do this have a look at this page:
http://www.ox.compsoc.org.uk/~steve/portforwarding.html
Compile a kernel with the port forwarding feature enabled.

Next we will need the samba source. Follow a link from the Samba home page to download the source from your nearest mirror.

And we need the nbfw patch. This can be obtained from
http://malt-whisky.student.utwente.nl/nbfw/download.html

Next we need to patch the samba source:

cd /usr/src/samba-2.0.x/source
patch -p0 < /tmp/nbfw-0.28/nbfw.diff

Finally we need to build the nbfw-patched version of samba. Do this in the same way that you would normally build samba...i.e., enter the source directory and enter

./configure
make
make install

You then edit the makefile, after the ./configure stage, to amend the locations of samba's various support files. All being well, we should now have built samba, and also the nbfw-enabled versions of the samba daemons (nmbdnbfw and smbdnbfw).

Next, we will need to create our smb.conf file. The default path to this file is /etc/smb.conf.

Something like this should work fine as a starting point:

[global]
   workgroup = DOMAIN
   server string = Samba Server
   share modes = yes
   interfaces = 192.168.2.1/24 192.168.1.1/24
   nbfw backend hosts = 192.168.1.2 192.168.1.3
   nbfw deny hosts =
   nbfw netbios names = "DOMAIN" BACKEND-2 BACKEND-3 USER-2 USER-3
   encrypt passwords = yes
   name resolve order = lmhosts bcast
   socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096

[tmp]
   comment = Temporary file space
   path = /tmp
   read only = no
   public = yes

Notes:

  • the lines specifically required for nbfw are the three that begin with nbfw, and the interfaces line.
  • Add the nbfw netbios names line if popup messages are required.

    Next: Alter your startup scripts »

    Skip Ahead

    1 Introduction
    2 Setting up Samba nbfw
    3 Alter your startup scripts





  • Linux is a trademark of Linus Torvalds.


    internet.com home | search | help! | about us

    Jupiter Online Media

    internet.comearthweb.comDevx.commediabistro.comGraphics.com

    Search:

    Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

    Jupitermedia Corporate Info


    Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

    Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers