From owner-freebsd-pf@FreeBSD.ORG Thu Nov 11 19:47:17 2004 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86AF516A4CE for ; Thu, 11 Nov 2004 19:47:17 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B9A943D1D for ; Thu, 11 Nov 2004 19:47:17 +0000 (GMT) (envelope-from max@love2party.net) Received: from [212.227.126.209] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CSKua-0004hv-00; Thu, 11 Nov 2004 20:47:16 +0100 Received: from [217.227.159.25] (helo=donor.laier.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1CSKuZ-0002fZ-00; Thu, 11 Nov 2004 20:47:16 +0100 From: Max Laier To: freebsd-pf@freebsd.org Date: Thu, 11 Nov 2004 20:47:21 +0100 User-Agent: KMail/1.7.1 References: <20041111124311.GR20446@moof.catpipe.net> In-Reply-To: <20041111124311.GR20446@moof.catpipe.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2297524.c7IZZW7Ig7"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200411112047.28310.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:61c499deaeeba3ba5be80f48ecc83056 Subject: Re: carp and internal dependencies on a router X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical discussion and general questions about packet filter (pf) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2004 19:47:17 -0000 --nextPart2297524.c7IZZW7Ig7 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 11 November 2004 13:43, S=F8ren Vrist wrote: > Ive been toying with carp for a customer and found out that if fx. a > port in the switch goes wild, and the redundant router boxs current > master loses one of the interfaces, its only one of the carp interfaces > that switch over. On a router that means that still no traffic comes > thorugh. > Ive hacked a perl script for looking at ifconfig and doing som choices > based on carp-interfaces-parent status and carpinterfaces status, in a > way so a box is either all-master or all-slave if at anyway is possible. > (With prempt and advskew). > Im i all wrong here, is ther a way to do these dependencies a better > way. > Freevrrp does it with a config option called dependson or something like > that. OpenBSD has a daemon called ifstated(8) - unfortunately they haven't synced= =20 their online manpages lately: > DESCRIPTION > The ifstated daemon runs commands in response to network state chang= es, > which it determines by monitoring interface link state or running=20 > external tests. For example, it can be used with carp(4) to change= =20 > running services or to ensure that carp(4) interfaces stay in sync, = or=20 > with pf(4) to test server or link availability and modify translatio= n=20 > or routing rules. The options are as follows: =20 This is the one you probably want. I didn't come round to port it, yet. It'= s=20 certainly on my list, but first I want to get CARP itself into committable= =20 shape. So please, try your hands at it. It's even useful without CARP so=20 seeing it in ports would be nice for many people ;) =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart2297524.c7IZZW7Ig7 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBk8HQXyyEoT62BG0RAlj0AJ4x2dmVIGNbxtVXq6kp04NNIfq5TwCff0xp MKSMruAExwkb/ddMqZpsiqU= =CyHT -----END PGP SIGNATURE----- --nextPart2297524.c7IZZW7Ig7--