Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.


Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.


Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.


Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Networking, Samba

Accessing Samba server in DMZ

Submitted by on January 22, 2006 – 2:04 pm 4 Comments

This note explains how to access a Samba server located on the “orange” DMZ subnet from a Windows PC on the “green” LAN. The problem for Samba is caused by the firewall blocking NETBIOS responses. In the firewall log you may see the following entries indicative of this issue:

13:39:07  	eth1  	-  	UDP
13:39:11 	eth1 	- 	UDP

In this case is the IP of the Samba server and is the broadcast address of the “orange” DMZ interface.

Configuration used for this example: Smoothwall firewall running on a stand-alone computer with three NICs and “red-orange-green” network profile; a SuSE Linux Samba server connected to the “orange” DMZ interface with subnet 198.168.123; a Windows XP Home PC on the “green” LAN with subnet 192.168.122. See the diagram below:

Network Diagram

On the Windows PC go to the %SystemRoot%System32DriversEtc (i.e. C:WINNTsystem32driversetc) and rename file lmhosts.sam to lmhosts

Open the lmhosts file in Notepad and add your Samba server as shown below:	deathstar		#PRE	#DOM:jedi	deathstar_smb	#PRE	#DOM:jedi

In this example is the IP address of the Samba server on the “orange” DMZ network. Deathstar is the primary host name and deathstar_smb is samba hostname. And jedi is the domain name as displayed by `domainname` command ran on the Samba server.

Save the file, exit Notepad and click Start -> Run -> cmd -> OK -> nbtstat -R This will reload the NBT Remote Cache Name Table.

Still in the command prompt type nbtstat -c to view your current NetBIOS Remote Cache Name Table.

Print Friendly, PDF & Email


  • gail C says:

    My uncle is giving me an old computer which i will hopefully upgrade and hope to use as a backup server. The computer would be running windows xp sp3 and would be hooked up directly to my wireless router so i could wirelessly upload and retrieve files from it on my main computer running windows 7 which has a wifi card.

  • shahedC says:

    Ok, I plan on running:
    Filezilla Server
    Windows 7 x64 Ultimate (for Remote Desktop features. Plan on connecting from my main machine once the server is setup.)
    Comodo Unite (for virtual networking, as I can’t open any ports on the router as it doesn’t belong to me)

    System specs:
    AMD Sempron 2.7GHZ 1MB L2 Cache
    3GB DDR2 ram
    320GB HDD
    6x USB 2.0 Ports (I figure my network and internet connection would be the bottle-neck. But adding external HDD’s would work in)

    It’s an old HP Pavilion Slimline Computer. So I don’t have the room for more HDD’s, but can use the USB ports for expansion.

    I only plan on hosting ftp for me for backups of important files and for a file sharing with my friends (who already don’t mind installing Comodo Unite to access the server.)

    I figure that the biggest bottle-necks will be my network and internet speeds.

    Network is Ethernet 100 Mbps from server to router. Internet speed is: 25.01Mbps download/ 1Mbps upload. I don’t expect to transfer a 20GB file over the internet to the server. That will probably be where the use of the home network would come in.

    Biggest thing is:

    Specs wise will this machine have the oomph to do what I need? Maybe a little more later on? I don’t have much room to upgrade and don’t really have the money, but this computer was just sitting around.

    I actually have 2 choices, the above one, and an old Intel Tower with:
    Celeron 1.6GHZ 512KB L2 Cache
    2GB DDR2
    250GB HDD (I may put this in a external HDD case and hook it to the AMD build if I don’t use this machine.)
    Standard Mini Tower so has a little upgrade room. But the psu doesn’t support SATA connectors without adapters.

    The cheapest right now seems to be to use the AMD one for the time being. Please remember, I don’t have money right now, and need to make do with what I have. Also please give me your reason on why you choose the build you did. (This way I don’t get any fanboys, I can ignore any possible “Because it’s intel” or “Because it’s AMD”

    Thanks for all the help.

  • baldy eire says:

    I set up an old laptop with Ubuntu Linux with the intention of making it a print server. I hooked up a printer to it, and set it to share all printers, yet when I go onto my Windows computers, neither it, nor the printer attached to it, show up. What should I do to make it successfully work as a print server?

  • Muzahid says:

    Both servers are on the same domain. I need to free space on my Linux server because thats my web server and I ran out of room anyone please help

Leave a Reply

%d bloggers like this: