[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail and Web server with the same IP on different machines



Two ways I can think of (o.k., one way with a minor variant) :

1) Use a third OpenBSD box as a "firewall" system, use IPNAT to route
the mail traffic to the mail machine, and the web traffic to the web
machine (using rdr).

2) Put (for example) the mail server directly on the 'net, and use
IPNAT (and rdr) on that box to route web traffic to another machine
attached via a second NIC.

Using rdr options with ipnat allow you to route packets addressed to
certain ports to certain machines behind the NAT.  See the Networking
FAQ for more info.

If the machines are really so heavily loaded that you need two
machines, you would probably prefer the first option.  Another
advantage is that you can do major maintenance (i.e., take it down) on
either server without affecting the other.  

Nick.


Diego Rodrigo Neufert wrote:
> 
> Hi,
> 
> I want to separate my mail and web servers on two diferent machines but I
> cant give another IP addr to the mail server because I have lots of domains
> here and my statistics system need the booth IPs (Web and Mail) to be the
> same.
> 
> I have a clue on this in linux with Advanced Routing....
> 
> Any ideas to do this in OBSD?
> 
> --
> Diego Rodrigo Neufert
> Webmaster / Web Developer - Magic Web Design
> -----------------------------------------------------------
> diego@magicwebdesign.com.br
> www.magicwebdesign.com.br
> Curitiba - PR - Brasil

-- 
http://www.holland-consulting.net/