DMZ or not

Posted on 2006-11-30
Last Modified: 2010-03-18
Alright experts,

here is the problem

I've got one static IP Address, one server running linux (YAY!), an old machine that could always serve and a firewall (a real firewall machine)....

So I have on the linux server, the users of the network who access their home folders (through Samba), on the same server, runs an FTP server (vsftpd), so that the users from their home can still access their files on the server.

So knowing the security threat of FTP, I took some precautions security wise (so no worries at that level)... For the moment, my firewall "host" the public IP address and just does a port redirection to the server (for example port 21). So till then everything is fine...

my next step is to add a mail server.... so my option is I could still add another port forwarding on the firewall to the server... but then I am more wondering if I should not set up a DMZ.

My problem is that if I decide to set up a DMZ, i therefore need to have a second server, which will be in a DMZ and synchronize with the users of the internal linux server... this server in the DMZ can therefore be a mail server... however since the whole purpose of the FTP is to allowed users to access their home folder on the linux server, i might then run into a problem with setting a DMZ... or only if it is possible to still do port forwarding on the firewall even do, having a DMZ?

Also the question I had, when you set a DMZ, does it mean that ALL PORTS ARE OPENED ON THAT DMZ MACHINE... like know on my firewall with my present settings, only port 21 is opened...

thx for ideas and clarifications
Question by:debiannerd
  • 2

Accepted Solution

n664dc earned 250 total points
ID: 18050059
First you might want to look into opening up port 20 for the FTP server. (depending on how you have it configured):
The Security Problems section is worth reading.

A DMZ is unnecessary in this situation... you should be able to just forward the proper ports for the mail server (usually 25,110 +- depending on how you do it).  This should be more secure, and take less configuration.

Author Comment

ID: 18050131
So you mean...

would it be better to have another machine running the mail server so that if this one is hacked, then the server that holds the user's data is somewhat still secure...

or I can still run the mail server on the same server and yet have a network storage backup of the user's files and emails; I can still put a small firewall in between that server and the rest of the lan... so that no connection from the server to the lan will be allowed!

please let me know what do you think?

Expert Comment

ID: 18050655
This can be accomplished with one machine. Just setup the mail server on the same linux box and accept connections on the proper ports.

However being the way I am, I'd hook up your spare box to the Internet and set it up as a dedicated firewall.

I would run the mail server on the same box as the ftp/samba server as neither require a *huge amount of resources. You can then set up a simple iptables firewall on the gateway to drop incoming connections except to ports 21,(20,25,110 etc...) which would be forwarded to your ftp/samba/mail server (as well as preforming NAT).

If you're still worried about connections from the LAN, you could run another firewall on the ftp/mail/samba server locking things down from those on the inside.

In summary, an incoming connection from the Internet would have to pass through 2 firewalls to connect. First on the WAN interface of the gateway which is then forwarded to the ftp/samba/mail server. Then through the firewall local to the ftp/mail server. Connections originating from your LAN would need only to pass 1.

This doesn't exactly offer more security but it does make things a bit more scalable.

Given that you have a (valid)concern for security, it would be a good idea to look into encrypted authentication for an ftp session.

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question