Configuring routers for home web server and VoIP?

I'm stuck.  I want to set up a home office web server and can't figure out how to configure my 2 Linksys routers to do that.

Here's the equipment I have and how I want to set it up.  I'm listing in the order from outside (internet) to inside (home network):

1. DSL Modem.
2. Linksys broadband router w/ 2 phone ports (model RT31P2) to which two phone lines are attached (one voice, one fax) - I use Vonage.
2.1 Off of one of the RT31P2 network ports is a web (and SMTP/POP3) server that I want to assign a static IP address to.
3. Off another TR31P2 network port is my second Linksys router (model WRT54G).
3.1 One WRT54G network port connects to a database/file server that I want a static IP assigned to.  It is a backend to the web server and also being use for home network file storage.
3.2 The other ports on the WRT54G connect to a couple of PCs in the house.  To be DHCP assigned addresses.

I have a dyndns.org standard account and can reach my network.  When I type my domain name I get the admin login for my RT31P2 router instead of the web server even though I have port forwarding set up.  If I type the internal IP address of the web server from inside the house, I confirmed that the web server IS serving up web pages.

What I need in the end is 1) a web/mail sever accessible using my DynDNS.org domain name, 2) A home network that is secure, 3) A DB server that is accessible by the web server but also by my home network, 4) Continued use of my VoIP, 5) The DB server behind the second router for extra security (unless someone tells me that having it behind the first router is just as secure).

Can someone walk me through this?
e2canoeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ilwckb252Commented:
Is your web server on the internal side of your RT31P2 running with an internal static ip address? That might affect port forwarding. Also make sure your RT31P2s remote managament is disabled. And have you tried accessing your web site from a computer outside of your home network?
Erik BjersPrincipal Systems AdministratorCommented:
When I type my domain name I get the admin login for my RT31P2 router instead of the web server even though I have port forwarding set up...

Is this from inside your network or outside your network?  If this is from inside your network you will hit port 80 on the linksys which is the managment program.  If you are getting these results from outside your network then port forwading may be setup incorectly, or you may have the router set to accpt managment traffic from the outside.

As long as your servers that need to be accessed from the outside have static IPs then you should be good for port forwarding.
e2canoeAuthor Commented:
Server was inside the first router (WRT54G) but outside the RT31P2.  In any case, someone else (not from this forum) suggested that I reconfigure my routers so that the WRT54G was the first router (closest to DSL modem) and then put the RT31P2 behind it.  He then suggested that I hang all machines off the WRT54G and use the RT31P2 exclusively for the VoIP phone lines.  He pointed me to some third party software for the WRT54G that has great features including Static DHCP.

I used the Static DHCP to reserve static IPs for my two servers (web server, db server) as well as for the RT31P2 router (just so that I could easily surf to that router's admin page when I need to).

I forwarded ports 80 and 110 to the web server and everying is working just great except for one thing - I cannot get my pop server (running on my web server) to receive emails.

Any ideas on how to diagnose and fix the mail problem?  Note that I do not have port 25 forwarded since I am assuming my ISP will block that anyways - I just use my ISP's SMTP server to send mail and use a separate email client account that has the "reply to" address set to the desired user on my home POP3 server.

Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

FrabbleCommented:
Assuming your ISP doesn't use SMTP to send your mail and you have to use POP3, then it's a POP3 client you need on your server to pick up the e-mail from your ISP.
In this case, you don't need to forward port 110 in, but need to allow that port out.

What mail software are you using on the server because whatever is used needs to be compatible?
Erik BjersPrincipal Systems AdministratorCommented:
Frabble is correct, you don't need to do any port forwarding for email (unless you run your own mail server)  The way it works is when your email client attempts to contact the server it creates a session, and traffic is allowed to flow bi directional thrugh the router.  If someone on the outside trys to contact you in that port it will be blocked.
e2canoeAuthor Commented:
Frabble: Assuming your ISP doesn't use SMTP to send your mail and you have to use POP3, then it's a POP3 client you need on your server to pick up the e-mail from your ISP.  In this case, you don't need to forward port 110 in, but need to allow that port out.  What mail software are you using on the server because whatever is used needs to be compatible?

I don't understand your comment.  This is what I am trying to do:

I want to set up a mail server on my machine.  Ideally I want to send and receive emails through the server but figure that I won't be able to send emails because of port 25 blocking.  So, the next best thing in my case is to at least be able to accept emails.

I installed Win Server 2003 Standard's POP Service.

(I'm doing all this as a test platform to test a web app that includes tx/rx of emails prior to purchasing dedicated hosting plan.  I wanted to host SMTP so that I could measure processing loading of this part of my app).
Erik BjersPrincipal Systems AdministratorCommented:
I won't be able to send emails because of port 25

As long is the comunication is initiated inside the network port 25 should be alowd to send information
e2canoeAuthor Commented:
I thought that ISP's blocked port 25 to my home to prevent people from using home-based SMTP servers to spam email.
Erik BjersPrincipal Systems AdministratorCommented:
they may do that, if that is the case you will need to upgrade to a buisness account
e2canoeAuthor Commented:
I don't want to open a business account.  I just need this web/mail server for a couple of months while I beta test a web app to a limited number of beta testers.  Definately not worth the expense of a business account.  Once I release I'll be using a hosting service anyways.

I'll close this question and consider it unanswered since I found the answer myself, don't understand Frabble's comment about my need for a POP3 client and haven't gotten a reply from Frabble asking him to clarify his comment.  OK?
e2canoeAuthor Commented:
I'm requesting that this post be closed.  My solution was as follows:

1. Place the Linksys WRT54G on the outside (firewall router between my DSL modem and rest of network instead of the Linksys RT31P2 because the WRT54G is "more robust" according to someone who advised me AND can be augmented by third party firmware (important as you'll see in later steps).
2. Upgrade WRT54G with 'Tofu' ver 13c firmware (see http://www.hyperwrt.org/).  This firmware adds features including static DHCP.
3. Hook everything up and set port forwarding as required on WRT54G.
4. Set static IP addresses for my two servers (and for the RT31P2 which is now downstream of the firewall).
5. Done.

Only problem is that I cannot seem to fetch emails with the POP server sw on my mail server.  I don't think this has anything to do with my network setup though.
kodiakbearCommented:
Closed, 500 points refunded.
kb
Experts Exchange Moderator

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking Protocols

From novice to tech pro — start learning today.