Common Address Redundancy Protocol Introduction

The Common Address Redundancy Protocol or CARP is a protocol which allows multiple hosts on the same local network to share a set of IP addresses. Its primary purpose is to provide failover redundancy, especially when used with firewalls and routers. In some configurations CARP can also provide load balancing functionality. It is a free, non patent-encumbered alternative to CISCO’s VRRP, implemented mostly in BSD operating systems.

pfsyncd:

pfsync is a network interface that helps a number of computers running OpenBSD’s pf (packet filter) keep their state tables the same. pfsync can send messages indicating changes, or listen for such changes. pfsync can be configured using ifconfig. pfsync can be used in conjunction with CARP to make sure a backup firewall has the same information as the main firewall.

Example

If there is a single computer running a packet filter, and it goes down, the networks on either side of the packet filter can no longer communicate with each other, or they communicate without any packet filtering. If, however, there are two computers running a packet filter, running CARP, then if one fails, the other will take over, and computers on either side of the packet filter will not be aware of the failure, so operation will continue as normal. In order to make sure the new master operates the same as the old one, pfsyncd is used to synchronize packet filter states.

Principle of redundancy

A group of hosts using CARP is called a “group of redundancy”. The group of redundancy allocates itself an IP address which is shared or divided among the members of the group. Within this group, a host is designated as “Master”. The other members are called “slaves”. The main host is that which “takes” the IP address. It answers any traffic or ARP request brought to the attention of this address. Each host can belong to several groups of redundancy. It should be noted that each host must have a second unique IP address.

A common use of CARP is the creation of a group of redundant firewalls. The virtual IP address allotted to the group of redundancy is indicated as the address of the default router on the computers behind this group of firewalls. If the main firewall breaks down or is disconnected from the network, the virtual IP address will be taken by one of the firewall slaves and the service availability will not be interrupted.

时间: 2024-09-20 15:07:34

Common Address Redundancy Protocol Introduction的相关文章

(Moose File System)HOW TO PREPARE A FAIL PROOF SOLUTION WITH A REDUNDANT MASTER?

HOW TO PREPARE A FAIL PROOF SOLUTION WITH A REDUNDANT MASTER? A redundant master functionality is right now not a built-in functionality. But this subject is for us very crucial because we know how important this is and we receive lots of requests ab

[From OpenBSD Man Page]CARP

NAME carp – Common Address Redundancy Protocol SYNOPSIS pseudo-device carp DESCRIPTION The carp interface is a pseudo-device which implements and controls the CARP protocol.  carp allows multiple hosts on the same local network to share a set of IP a

BSDRP v0.35发布 一个可定制的FreeBSD发行版

SD Router Project (BSDRP) 是一个可定制的 FreeBSD 发行版,主要提供 IP 路由服务,适合小型的 ISP .新版本主要基于刚刚发布不久的 FreeBSD 8.2 版本,增加多链路的 PPP 守护进程,拥有 PPPoE.L2TP.PPTP 等特性. 更新日志: - Update to FreeBSD 8.2-RELEASE- BSDRP's nanobsd patches were include to FreeBSD-current, then replace B

[From OpenBSD]PF: Firewall Redundancy with CARP and pfsync

Table of Contents Introduction to CARP CARP Operation Configuring CARP CARP Example Introduction to pfsync pfsync Operation Configuring pfsync pfsync Example Combining CARP and pfsync for Failover and Redundancy Operational Issues Configuring CARP an

Linux tcpdump

简介 用简单的话来定义tcpdump,就是:dump the traffic on a network,根据使用者的定义对网络上的数据包进行截获的包分析工具. tcpdump可以将网络中传送的数据包的"头"完全截获下来提供分析.它支持针对网络层.协议.主机.网络或端口的过滤,并提供and.or.not等逻辑语句来帮助你去掉无用的信息. 实用命令实例 默认启动 tcpdump 普通情况下,直接启动tcpdump将监视第一个网络接口上所有流过的数据包. 监视指定网络接口的数据包 tcpdu

Securing Your Smart Home Network

Introduction The Internet of Things (IoT) has led to the innovation of a variety solutions, covering both consumer and industrial applications. Smart home is one of the most prominent application of IoT, and many companies have invested heavily in th

Access Logging Tomcat

  73.6 Configure Access Logging server.tomcat.accesslog.buffered=true # Buffer output such that it is only flushed periodically. server.tomcat.accesslog.directory=logs # Directory in which log files are created. Can be relative to the tomcat base dir

Linux tcpdump命令详解大全_linux shell

简介 用简单的话来定义tcpdump,就是:dump the traffic on a network,根据使用者的定义对网络上的数据包进行截获的包分析工具. tcpdump可以将网络中传送的数据包的"头"完全截获下来提供分析.它支持针对网络层.协议.主机.网络或端口的过滤,并提供and.or.not等逻辑语句来帮助你去掉无用的信息. 实用命令实例 默认启动 tcpdump 普通情况下,直接启动tcpdump将监视第一个网络接口上所有流过的数据包. 监视指定网络接口的数据包 tcpdu

Linux tcpdump操作命令详解_unix linux

简介 用简单的话来定义tcpdump,就是:dump the traffic on a network,根据使用者的定义对网络上的数据包进行截获的包分析工具. tcpdump可以将网络中传送的数据包的"头"完全截获下来提供分析.它支持针对网络层.协议.主机.网络或端口的过滤,并提供and.or.not等逻辑语句来帮助你去掉无用的信息. 实用命令实例 默认启动 复制代码 代码如下: tcpdump 普通情况下,直接启动tcpdump将监视第一个网络接口上所有流过的数据包. 监视指定网络接