Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th October 2011, 17:39
pattone pattone is offline
Junior Member
 
Join Date: May 2011
Posts: 29
Thanks: 14
Thanked 1 Time in 1 Post
Default Failover with public IPs

First of all sorry for my english (I'm from argentine)
I have a server wich I setup with this great guide http://www.howtoforge.com/perfect-se...ot-ispconfig-3
and is working great with a few websites and domains. Now, looking for information for setup a second server (for failover purpose) that will be in another phisical place with another ip and internet connection I found this 2 excelents howtos:
http://www.howtoforge.com/setting-up...n-debian-lenny
http://www.howtoforge.com/setting-up...n-debian-lenny

This howtos are for use with private IPs (lan) and I want to setup 2 servers in different locations; both with public statics IP. Can I do this with a VPN? If the internet connection of one server goes down would the other server take the job?

Another thing...

The howtos are only for web server and I want to failover all the services (web, mail, ftp, etc)

I found another thread where people are talking about UNISON for this job

http://www.howtoforge.com/forums/showthread.php?t=28246

but I think unison is for replication and not for the failover purpouse. In that thread a user says that he could setup this with unison.

Is there any way to setup this in a free way? (not paying another service for the failover purpouse)

Thanks in advance
Reply With Quote
Sponsored Links
  #2  
Old 31st October 2011, 16:01
pattone pattone is offline
Junior Member
 
Join Date: May 2011
Posts: 29
Thanks: 14
Thanked 1 Time in 1 Post
Default

anybody?? I really need this

thanks
Reply With Quote
  #3  
Old 8th November 2011, 17:26
mmidgett mmidgett is offline
Senior Member
 
Join Date: Aug 2006
Location: Mooresville, North Carolina - USA
Posts: 112
Thanks: 5
Thanked 14 Times in 13 Posts
Default

I think that there is many different ways of doing this. I have a few questions

Are the 2 servers at the same location?

Are these both on the same internet connection? Meaning WAN interface, NOT Ip's

Do you have any extra servers or regular PC's for use.

Here is my way of doing this.

1. take your DSL modem and configure it into bridge mode.
2. Install pfsense router on to older I386 hardware.
3. Setup Pfsense to use 1:1 NAT and setup your private IP's for the servers, setup the virtual static ips for the outside. setup 1:1 nat from virtual external ips to internal ip.
4. Install openfiler onto 2 servers that have identical storage. There is a how to on here for openfiler replication for High availability storage.
5. basically you will map network drives and store all the services on the mirrored openfiler setup. That way both web,mail,dns,mysql are all stored in one place and then you just have the actual servers connect to shared storage.

This could be done with NFS but have never tried or GlusterFS

I am new to pfsence my self and can only offer little about it. You can have 2 pfsense routers for high availability as dual wans and load balance them. They sky is the limit or in this case your computer hardware. Linux and BSD provide just about everything you need.
Reply With Quote
The Following User Says Thank You to mmidgett For This Useful Post:
pattone (8th November 2011)
  #4  
Old 8th November 2011, 17:40
mmidgett mmidgett is offline
Senior Member
 
Join Date: Aug 2006
Location: Mooresville, North Carolina - USA
Posts: 112
Thanks: 5
Thanked 14 Times in 13 Posts
Default

I see that you are at 2 locations. How about still using pfsense and OpenVPN with rsync.
Reply With Quote
The Following User Says Thank You to mmidgett For This Useful Post:
pattone (8th November 2011)
  #5  
Old 8th November 2011, 21:21
pattone pattone is offline
Junior Member
 
Join Date: May 2011
Posts: 29
Thanks: 14
Thanked 1 Time in 1 Post
Default

Hi mmidgett; thanks a lot for your answer. I have the two servers in diferent locations with diferent ISPs. Here (I'm in argentine) ISPs have a lot of problems (especially in my area) and thats why I want a failover system. My server doesn't have a lot of traffic but we usually have connection problems.
In both sides I have good VPN routers; do I still need the pfsense setup?

I can't figure out how to setup this, did you know a good Howto for the load balance/failover setup?

I think I could do the replication setup but don't know everything about the load balancing. Think that I'm trying to setup a failover system for my connections problems.

Thanks in advance

Last edited by pattone; 8th November 2011 at 21:23. Reason: forgot some info
Reply With Quote
  #6  
Old 11th November 2011, 17:29
mmidgett mmidgett is offline
Senior Member
 
Join Date: Aug 2006
Location: Mooresville, North Carolina - USA
Posts: 112
Thanks: 5
Thanked 14 Times in 13 Posts
Default

Yes I would ditch the routers on site. They have no way of knowing when the other goes down. Do you host you own DNS? howmany sites are being hosted at each locataion?

Last edited by mmidgett; 11th November 2011 at 17:39.
Reply With Quote
The Following User Says Thank You to mmidgett For This Useful Post:
pattone (11th November 2011)
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
Using Heartbeat w/no load balancer multiple IP's wxman Server Operation 0 11th September 2009 17:06
Public and private IP address confusion wxman Installation/Configuration 4 20th June 2009 14:20
how can i add ips to node ? RoMiONeT Technical 1 20th June 2009 12:30
SSL and IPs problem. debian-lover General 7 21st April 2008 11:59
Ldirectord and heartbeat with multiple IPs cracker54 Server Operation 5 30th November 2006 16:31


All times are GMT +2. The time now is 09:20.


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