Routing NetBIOS with Linux - page 2
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:
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
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
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
nbfw, and the
netbios namesline if popup messages are required.
Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.
- 1Linux Top 3: GNOME 3.12 and New Betas for Ubuntu 14.04 and OpenMandriva Lx 2014.0
- 2Linux Top 3: Linus Lashes out, Linux 3.14 Gets PIE and Ubuntu One is Done.
- 3Linux Top 3: Ubuntu 14.04, Debian Gives Squeeze More Life and Red Hat Goes Atomic
- 4Linux Top 3: CoreOS, Oracle Enterprise Linux 7 and Ubuntu 14.10
- 5Linux Top 3: Linux from Scratch, Ubuntu 14.01 Beta and Arch Updates