RE: Failover IP router
- From: "Steven Buehler" <steve@xxxxxxxxxxxx>
- Date: Tue, 27 Nov 2007 20:06:43 -0600
-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-
bounces@xxxxxxxxxx] On Behalf Of Barry Brimer
Sent: Tuesday, November 27, 2007 3:35 PM
To: General Red Hat Linux discussion list
Subject: Re: Failover IP router
Quoting Steven Buehler <steve@xxxxxxxxxxxx>:
I have been googleing for this, but can't seem to find the rightanswer.
What I am trying to do is to create a failover router on a redhatbox.
1. website.com will be on 2 serversit.
2. website.com has one IP address
3. redhat box router will have the 1 IP address for website.com on
4. website.com server1 will be on 192.168.1.10moved
5. website.com server2 will be on 192.168.1.11
6. If website.com server1 fails, website.com server2 will take over.
We are not worried about cookies that have been set on server1 to be
to server2. We are just worried about the second machine takingover. What
would be better is if it could be a load balancing setup so that itwill use
both servers, but if one fails, people will not notice it because theother
server will then be taking all of the requests.outbound
I have googled for "Linux failover iptables router" and a few other
combinations of words, but what I keep finding is failover for the
connections. Having 3 Nic cards 1 going to one ISP, 1 going toanother ISP
and one going to the internal network. Maybe I am just using thewrong
wording. Any url links for instructions would be appreciated.
Thank You
Steve
I believe that you are looking for the load balancing portion of Red
Hat Cluster
Suite <http://www.redhat.com/cluster_suite/>
Barry
I found a page at http://linuxgazette.net/108/odonovan.html that says to use
the following in the iptables:
-A PREROUTING -i eth0 -p tcp --dport 80 -m state --state NEW -m nth
--counter 0 --every 4 --packet 0 \
-j DNAT --to-destination 192.168.0.5:80
-A PREROUTING -i eth0 -p tcp --dport 80 -m state --state NEW -m nth
--counter 0 --every 4 --packet 1 \
-j DNAT --to-destination 192.168.0.6:80
-A PREROUTING -i eth0 -p tcp --dport 80 -m state --state NEW -m nth
--counter 0 --every 4 --packet 2 \
-j DNAT --to-destination 192.168.0.7:80
-A PREROUTING -i eth0 -p tcp --dport 80 -m state --state NEW -m nth
--counter 0 --every 4 --packet 3 \
-j DNAT --to-destination 192.168.0.8:80
But I get errors because of the "-m nth". Because the servers are already
setup, I was hoping that I wouldn't need to redo them for something like the
RedHat Cluster Suit. That would require a re-install of the OS wouldn't it?
I have never done the RH CS before and they are wanting this all done for a
demo on Monday. Because of time constraints for the demo, I was hoping on
something like the above that could just go into my iptables firewall.
After the demo, we could go for something more elaborate like an appliance.
Thanks
Steve
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- Follow-Ups:
- RE: Failover IP router
- From: Barry Brimer
- RE: Failover IP router
- References:
- Failover IP router
- From: Steven Buehler
- Re: Failover IP router
- From: Barry Brimer
- Failover IP router
- Prev by Date: Re: Migrating mailman lists from Ubuntu to Fedora 7
- Next by Date: RE: Failover IP router
- Previous by thread: Re: Failover IP router
- Next by thread: RE: Failover IP router
- Index(es):
Relevant Pages
- RE: Failover IP router
... Subject: Failover IP router ... website.com server2 will take ...
We are not worried about cookies that have been set on server1 to be ... I have googled
for "Linux failover iptables router" and a few other ... (RedHat) - Re: Failover IP router
... What I am trying to do is to create a failover router on a redhat box. ...
If website.com server1 fails, ... (RedHat) - Re: Failover IP router
... What I am trying to do is to create a failover router on a redhat box. ...
If website.com server1 fails, ... (RedHat) - Re: Failover IP router
... What I am trying to do is to create a failover router on a redhat box. ...
server will then be taking all of the requests. ... (RedHat) - Re: Reliable Dual-WAN router - Does such a thing exist?
... maybe 10 online users, running SBS 2003 R2. ... Netopia EN-3386 with the firewall
option enabled has a nice failover feature ... Without implementing complicated routing
protocols on a real router, ... broadband connections by pinging upstream sites
that can only be reached if ... (comp.security.firewalls)