Solved

DMZ or not

Posted on 2006-11-30
3
500 Views
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
0
Comment
Question by:debiannerd
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
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): http://en.wikipedia.org/wiki/File_Transfer_Protocol
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.
0
 

Author Comment

by:debiannerd
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?
0
 
LVL 3

Expert Comment

by:n664dc
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.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now