Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th October 2008, 20:19
thavaht thavaht is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Maputo - Mozambique
Posts: 53
Thanks: 7
Thanked 2 Times in 2 Posts
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 10th October 2008, 23:43
marpada marpada is offline
Senior Member
 
Join Date: Sep 2008
Posts: 139
Thanks: 2
Thanked 14 Times in 14 Posts
Default

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

Last edited by marpada; 13th May 2011 at 01:47.
Reply With Quote
  #3  
Old 11th October 2008, 20:19
thavaht thavaht is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Maputo - Mozambique
Posts: 53
Thanks: 7
Thanked 2 Times in 2 Posts
Default

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.
Reply With Quote
  #4  
Old 12th October 2008, 17:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: LŁneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Does your router support multiple public IP addresses?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 13th October 2008, 10:37
thavaht thavaht is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Maputo - Mozambique
Posts: 53
Thanks: 7
Thanked 2 Times in 2 Posts
Default

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
Reply With Quote
  #6  
Old 13th October 2008, 16:47
marpada marpada is offline
Senior Member
 
Join Date: Sep 2008
Posts: 139
Thanks: 2
Thanked 14 Times in 14 Posts
 
Default

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

Last edited by marpada; 13th May 2011 at 01:47.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rejecting outbound mail tristanlee85 General 11 20th May 2007 17:04
Postfix reject connections gabrix Server Operation 27 25th January 2007 08:37
setting up a antispam mail server - i have a few questions alexnz Installation/Configuration 1 21st November 2006 16:07
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16
Can not recieve mail with de virtual mail adress Mounir Installation/Configuration 9 24th July 2006 23:16


All times are GMT +2. The time now is 07:16.


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