HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Mail Server with Public IP question. (http://www.howtoforge.com/forums/showthread.php?t=27718)

thavaht 10th October 2008 21:19

Mail Server with Public IP question.
 
Hi all,

Iím looking for help on the following question:
Iím running a web server and mail server on different machines on my LAN and Iíve configured Bind to resolve internally for the clients in the LAN. That time I had only one public IP address.

Now a have a second public IP and want the mail server to use its own public IP but having the mail server still accessible internally.
Is that possible to have the mail server directly connected to the WAN and to the LAN at the same time? Can I use two network cards?

Another question is what are the concerns if putting the public IP on the server? TIA.

marpada 11th October 2008 00:43

You can configure your firewall/router to port-forward port 25 of your public IP address to the port 25 of the mail server in your LAN, and the same to port 80 for web server and port 53 for DNS (so you can have two servers or more using the same public IP).
For DNS configure two views, one for your internal network to resolve to internal IPs and one for queries from internet to resolve to public IP.
________
JAILBROKEN
________
LANDLORDS INSURANCE ADVICE

thavaht 11th October 2008 21:19

Thanks for replying.
Your suggestion matches what Iím actually doing now:
Iím port-forwarding my public IP to the servers in the LAN.

I had problems with my provider complaining that some computer in my LAN was spreading virus and my connection being suspended. This is one of the reasons why I want the mail server to have its own public address, but I want it also accessible in the LAN.

falko 12th October 2008 18:23

Does your router support multiple public IP addresses?

thavaht 13th October 2008 11:37

I have a Linksys WRT54G router connected to a cable modem. My router supports only one public IP address.
I thought I could put a switch after the modem and have the router and the mail server connected to that switch, each with its public IP.

regards,

thavaht

marpada 13th October 2008 17:47

You may install an alternative firmware (i.e. Openwrt) to that router to support multiple IPs
________
NEW MEXICO DISPENSARY
________
RHODE ISLAND MEDICAL MARIJUANA DISPENSARY


All times are GMT +2. The time now is 21:56.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.