LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-08-2005, 12:51 PM   #1
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
automatic server fail over


Alright I have a CentOS linux web/mail server. That server gets synced with a local mirror on our lan once every hour:
email - *:15
mysql - *:25
website - *:55

I have a SuSE proxy server / gateway (which may later become smoothwall, ipcop, or something else) that forwards port traffic to our primary server.

Let's say the primary server's ip is 192.168.5.100
and the mirrored server is 192.168.5.101

Is there a way to configure the proxy server/gateway that's configured to forward traffic to 192.168.5.100, to automatically forward traffic to 192.168.5.101 if the primary server ever goes down?

Right now if the primary server goes offline I have to manually change the port forwarding on our gateway. If there was a way to automate this, then our site would site and mail server would experience virtually no downtime.
 
Old 11-08-2005, 12:57 PM   #2
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
How about a script which does a quick ping of your primary server every 5 minutes. Wouldn't take much server resources if you wanted to do it more frequently. If no response is received, it switches to your mirror based on additional rules you define to adjust the port fowarding. Is a simple bash script taking your existing manual commands, but automated. Next time the gateway receives ping acknowledgement from the primary server, the rules revert.
 
Old 11-08-2005, 03:12 PM   #3
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
Check to see if Linux supports VRRP, if so run that on the two hosts behind one virtual ip address, job done
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pppoe-server Fail With Pap-secrets: Rino Linux - Networking 1 11-10-2004 12:36 PM
automatic user account creation in mail server kar11 Linux - Software 0 04-13-2004 11:55 PM
squid fail to run after one week on smooth running on rh 8.0 server xnet_online Linux - Networking 5 12-23-2002 04:14 AM
mail server fail to send out and receive, help!! littlelittle Linux - Networking 7 03-14-2002 10:26 AM
automatic mail from linux server saavik Linux - Networking 3 02-08-2002 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration