From owner-freebsd-cluster@FreeBSD.ORG Tue May 31 13:10:21 2005 Return-Path: X-Original-To: freebsd-cluster@freebsd.org Delivered-To: freebsd-cluster@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9B8916A41C; Tue, 31 May 2005 13:10:21 +0000 (GMT) (envelope-from so14k@so14k.com) Received: from ender.liquidneon.com (ender.liquidneon.com [64.78.150.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 943CE43D1D; Tue, 31 May 2005 13:10:21 +0000 (GMT) (envelope-from so14k@so14k.com) Received: from localhost (localhost [127.0.0.1]) by ender.liquidneon.com (Postfix) with ESMTP id 770EEA6C70; Tue, 31 May 2005 07:10:20 -0600 (MDT) Received: from ender.liquidneon.com ([127.0.0.1]) by localhost (ender.liquidneon.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 89734-06; Tue, 31 May 2005 07:10:20 -0600 (MDT) Received: by ender.liquidneon.com (Postfix, from userid 1000) id 3CA5CA6C6E; Tue, 31 May 2005 07:10:20 -0600 (MDT) Date: Tue, 31 May 2005 07:10:20 -0600 From: Brad Davis To: Sunil Sunder Raj Message-ID: <20050531131020.GA50106@ender.liquidneon.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at ender.liquidneon.com Cc: freebsd-cluster@freebsd.org, freebsd-pf@freebsd.org Subject: Re: (no subject) X-BeenThere: freebsd-cluster@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Clustering FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2005 13:10:22 -0000 On Tue, May 31, 2005 at 11:14:26AM +0000, Sunil Sunder Raj wrote: > Hi, > I have 3 smtp servers 10.0.0.2, 10.0.0.3, 10.0.0.4 under a cluster with the > load balancing done by 10.0.0.1. The pf rule on 10.0.0.1 is > > ext_if="fxp0" > internal_smtp_servers="{ 10.0.0.2, 10.0.0.3, 10.0.0.4 }" > rdr on $ext_if proto tcp from any to any port 25 -> $internal_smtp_servers > round-robin sticky-address > > If 10.0.0.4 port 25 goes down, how do I force pf to remove 10.0.0.4 from > its table. Hi, I would use something line Nagios[1] or a perl script to do this. It is not in PFs realm to handle this sort of thing. [1]: http://www.nagios.org/ See the parts about Event handlers. Regards, Brad Davis