7

I'm currently using a linux box to handle my firewall/NAT using iptables. It has two NICs, one link to a LAN switch, one to our egress Internet provider. I'm looking at upgrade this box to two boxes for purposes of redundancy and adding a second Internet provider to the solution. This means I need four ports I believe (correct me if I'm wrong)

  1. Egress internet link #1
  2. Egress internet link #2
  3. LAN port
  4. Cross-over between the two boxes for failover purposes

I've read carp+pfsync is a good solution. Is that currently what most of you are using? Is there an equivalent solution in linux?

What are some suggestions for hot failover with ease of configuration as of today for a similar setup as above?

imaginative
  • 1,941
  • 9
  • 32
  • 48

7 Answers7

9

I've read carp+pfsync is a good solution. Is that currently what most of you are using?

Yes and yes :)

As Instye notes, there are two public projects for CARP under Linux. But as you'll notice neither of them are particularly active and don't believe they include pfsync. Which is pretty important to the whole shebang.

Additionally there have been some huge advances in the PF and CARP code this year alone. Any port, including FreeBSD, often lags naturally behind in feature and bug fixes.

If the current machine isn't performing any other tasks then I'd recommend just biting the bullet and implementing OpenBSD. The learning curve won't be any steeper than getting one of the ports up and running. I don't think you'll regret it.

Dan Carley
  • 25,189
  • 5
  • 52
  • 70
2

CARP is available in linux. Check out the ucarp project for a user-space implementation and there is apparently a project porting it to the 2.6 kernels:

http://www.ioremap.net/projects/carp

Insyte
  • 9,314
  • 2
  • 27
  • 45
1

ucarp and keepalived from linux-HA have been mentioned... the missing link is therefore a linux equivalent of pfsync: well look at conntrackd from conntrack-tools

Alex
  • 11
  • 1
1

The Linux equivalent would be using conntrack-tools to sync connection tracking state, and then iptables of course. http://conntrack-tools.netfilter.org/manual.html#sync

Kenyon
  • 249
  • 2
  • 7
1

The web page you probably want to start looking at is linux-ha. One of the tools they offer is the heartbeat program that can be used to fail servers over.

Zoredache
  • 128,755
  • 40
  • 271
  • 413
1

if you're not dead set on your linux distro, you could look into vyatta, the community edition is free http://www.vyatta.com/downloads/documentation.php

pQd
  • 29,561
  • 5
  • 64
  • 106
Cristian
  • 51
  • 1
  • 1
  • 3
0

You could also run OpenBSD on your boxes and simply use CARP + pf "out of the box".

Benoit
  • 3,499
  • 1
  • 18
  • 17