LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-26-2009, 09:35 AM   #1
redvivi
LQ Newbie
 
Registered: Aug 2008
Posts: 24

Rep: Reputation: 15
High availabiliy firewall on Debian Etch ?


Hello,

I have an Active/Passive cluster running on Debian Etch, they provide an Internet connection to a LAN and I would like to do a transparent failover, ie no interruption of all the active connections after a failover, is it possible to do it on Debian ?

Regards,
Vianney
 
Old 07-26-2009, 11:28 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Quote:
no interruption of all the active connections after a failover
what do u mean by Active/passive cluster, is this not mean that active one down then passive will become active??
 
Old 07-26-2009, 11:40 AM   #3
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

If you have the cluster setup in an active/passive configuration, then you will always loose connectivity for a few seconds but most likely the users will never notice it. Depending the software you use for HighAvailability you can configure an active/active configuration and that way connections will always find their way out. In my opinion there is no active/passive configuration that will offer a completely transparent solution.

Kind regards,

Eric
 
Old 07-26-2009, 01:31 PM   #4
redvivi
LQ Newbie
 
Registered: Aug 2008
Posts: 24

Original Poster
Rep: Reputation: 15
Active/Passive cluster: one server serves all the requests and the other one is waiting for the first server to fail.

The problem is the connections are reseted if the primary server fails. Is it possible to transfer the firewall state table to the passive server in case of failover ?
 
Old 07-26-2009, 01:34 PM   #5
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
What firewall are you running? And how is it configured? Where does it save its state table? To local file, MySQL, ...

Kind regards,

Eric
 
Old 07-26-2009, 01:41 PM   #6
redvivi
LQ Newbie
 
Registered: Aug 2008
Posts: 24

Original Poster
Rep: Reputation: 15
I just use iptables with a set of custom rules. I mean by firewall state file all the active connections, the current routing table, ipconntrack tracked connections and so on...
 
Old 07-26-2009, 01:43 PM   #7
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
check about Linux high availability heartbeat and drbd for this. i think you can add same iptable rules on both machine and drbd will help you to build distributed storage system

Last edited by kirukan; 07-26-2009 at 01:49 PM.
 
Old 07-26-2009, 01:45 PM   #8
redvivi
LQ Newbie
 
Registered: Aug 2008
Posts: 24

Original Poster
Rep: Reputation: 15
DRBD and Heartbeat are already installed on this cluster, but I didn't find any clue about a HA Firewall on debian.
 
Old 07-26-2009, 03:41 PM   #9
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
I am afraid that I don't know anything about HA, but I can forsee a problem.

If your firewall can effectively be stateless, it seems to me that there shouldn't be a big problem. If it is stateful, I can't really see how to transfer the state part.

You are probably using ipconntrack to do stuff that this configuration makes it difficult to transfer.

I can see how you might transfer things like the counters*, if you use those, up to a point, but whether a connection is, eg, established or related, in a straightforward way, I don't know. So, if you can write a useful ruleset that isn't dependant on those features, that would probably be a big step forwards.

Is firewalling all this box does? That seems a bit unlikely, unless you have a very high level of traffic. So, you could consider separating the firewalling function from whatever else the box does.

You could consider running the firewall in a VM and transfer the VM over wholesale, but that probably won't work once the first box has gone down, but if it was a case of something like the disk subsystem going down, you might be able to something about that. But I'm sure that you really want more out of HA than that.

Maybe there is the posssibilty of just ignoring the problem...some connections will be lost and have to be re-made, but is this such a big problem? It doesn't sound 'high availability', but for the conditions in which re-establishing connections happens automatically, is this a deal-breaker?

So, while I can see some options, my guess is that you won't like them. The more I think about this, the more I think that either running the firewall somewhere else, or doing firewalling in two phases with the stateless phase on the cluster and the stateful elsewhere are beginning to look attractive.

Sorry, maybe someone with actual cluster experience can help with some magic trick.

* When I think a bit more about it, I am not even sure that counters can be transferred reliably.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Set Up A High-Availability Load Balancer With Perlbal/Heartbeat On Debian Etch LXer Syndicated Linux News 0 01-13-2009 04:10 PM
LXer: High-Availability Load Balancer With HAProxy/Wackamole/Spread On Debian Etch LXer Syndicated Linux News 0 01-06-2009 02:30 PM
Debian Etch sources.list mix between etch and sid - problems alfr Debian 2 04-12-2008 10:30 AM
openvpn client and firewall issues on debian etch chil326 Linux - Networking 0 10-21-2007 09:27 AM
update Debian testing etch RC1 to etch stable cccc Debian 11 01-08-2007 10:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:51 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