LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Simple H/A (redundancy) solution for a Linux internet gateway (https://www.linuxquestions.org/questions/linux-networking-3/simple-h-a-redundancy-solution-for-a-linux-internet-gateway-628663/)

aliamiri 03-17-2008 07:58 AM

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. :confused:
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 :study: 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.

Regards,
-- Ali Amiri

jsurles 03-17-2008 10:56 AM

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.


All times are GMT -5. The time now is 07:33 AM.