Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-17-2008, 07:58 AM   #1
LQ Newbie
Registered: May 2006
Posts: 6

Rep: Reputation: 0
Question Simple H/A (redundancy) solution for a Linux internet gateway

Hi everybody,

Yes, I've searched this forum ... but didn't found a simple exact answer.
I have two Linux machines: equipped with squid, iptables, tc, etc. which work as my LAN gateways to internet. I use only the first one and the latter is standby for backup. Now I want to implement a redundancy solution to have them automatically in active/active or active/passive high availability state, like what we can do by HSRP, GLBP and VRRP in Cisco routers.

I made some researchs on the net, read about vrrpd, keepalived, ucarp and etc. but I'm not still convinced which of them is good, efficient and suitable for me, and not being too old (like vrrpd).

Please help me and let me know where is the right direction!
Thank you.

-- Ali Amiri
Old 03-17-2008, 10:56 AM   #2
Registered: Feb 2007
Location: Katy, TX
Distribution: gentoo, slackware, centos, ESX, gnu/linux
Posts: 33

Rep: Reputation: 15
Well, it looks like what you need is some way to put a 'floating' ip on the internal interfaces. I'm not sure of any linux software that would do it, but what you could do is make each box check for internet/intranet connectivity, and write that information to a specific file.

Then you could have the machines compare those files to decide who should be active.

Whichever machine should be active would use the "floating" ip address, and the other would down that interface or address.

does that make sense.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Linux to build a complete internet solution? digideus Linux - Newbie 1 09-09-2007 07:17 PM
xp as gateway to internet for linux. alibeheshti Linux - Networking 3 06-22-2007 02:39 PM
My Simple Security Solution For Linux bjdea1 Linux - Security 10 04-02-2004 06:39 PM
using a linux PC as an internet gateway? e1000 Linux - Networking 8 01-10-2004 04:49 PM
linux internet cafe solution synfield Programming 3 03-26-2003 02:24 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:01 PM.

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