From owner-freebsd-cluster@FreeBSD.ORG Mon Oct 9 08:00:26 2006 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 6A1ED16A4E7 for ; Mon, 9 Oct 2006 08:00:26 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: from aurynhome1sv1.zirakzigil.org (mail.zirakzigil.org [82.63.178.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D0BF43D46 for ; Mon, 9 Oct 2006 08:00:24 +0000 (GMT) (envelope-from auryn@zirakzigil.org) Received: (qmail 37515 invoked by uid 98); 9 Oct 2006 08:00:25 -0000 Received: from 192.168.229.254 by aurynhome1sv1.zirakzigil.org (envelope-from , uid 89) with qmail-scanner-1.25 (uvscan: v4.4.00/v4642. Clear:RC:0(192.168.229.254):. Processed in 0.804592 secs); 09 Oct 2006 08:00:25 -0000 X-Qmail-Scanner-Mail-From: auryn@zirakzigil.org via aurynhome1sv1.zirakzigil.org X-Qmail-Scanner: 1.25 (Clear:RC:0(192.168.229.254):. Processed in 0.804592 secs) Received: from unknown (HELO ?192.168.229.254?) (auryn@zirakzigil.org@192.168.229.254) by 0 with SMTP; 9 Oct 2006 08:00:24 -0000 Message-ID: <452A018D.8080602@zirakzigil.org> Date: Mon, 09 Oct 2006 10:00:13 +0200 From: Giulio Ferro User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-cluster@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Problems with carp 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: Mon, 09 Oct 2006 08:00:26 -0000 I'm some strange behaviour with carp in FreeBSD. I have a simple redundant firewall configuration: Each machine has three Realtek Gibabit network interfaces, one toward Internet, one toward LAN, and one toward each other with a cross cable for syncronization The PCs have 2GHz. celerons. The firewall software is pf, the os is Freebsd 6.2 prerel. (updated last friday). In the rules I have: pass quick proto carp pass quick proto pfsync On the master firewall the redundant interfaces are set like this ifconfig_carp0="vhid 1 pass /" ifconfig_carp1="vhid 2 pass /" on the backup firewall ifconfig_carp0="vhid 1 pass / advskew 100" ifconfig_carp1="vhid 2 pass / advskew 100" As long as there is only one firewall everything works fine. When I start the backup firewall this unexplainadly becomes the master, and the one which was master becomes backup! Another strange behavior is that an ifconfig on firewall 2 will show the advskew of the LAN carp interface to be 0, not 100 (on the Internet if it's set correctly to 100). I have to set it manually to 100 to make it work. This configuration works fine, even if it's not what I want (I'd like the first firewall to be master). Another problem comes out when I power down the second firewall. The first firewall becomes master again, BUT the common interface is lost. That is, if I try to ping the common IP from a machine on the LAN, it doesn't get any answer. Only the physical interace seems to work. Even a ifconfig carp0 arp doesn't any good. I have to restart the firewall to make it work properly again.. Another problem is that the interfaces don't fail as a group. Of course I have net.inet.carp.preempt=1 but if I try to unplug a cable from firewall 2, that carp interface becomes INIT, but the other interface stays MASTER. Specularly on firewall 1 the corrisponding carp interface becomes MASTER, but the other stays BACKUP. Result : nothing works any more... I hope someone has some good ideas why this happens. I hope this is the right place to ask these questions, but I couldn't find a carp-related mailing list... From owner-freebsd-cluster@FreeBSD.ORG Mon Oct 9 08:51:08 2006 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 3D8E416A40F for ; Mon, 9 Oct 2006 08:51:08 +0000 (UTC) (envelope-from dsurovtsev@yahoo.com) Received: from web30203.mail.mud.yahoo.com (web30203.mail.mud.yahoo.com [209.191.69.50]) by mx1.FreeBSD.org (Postfix) with SMTP id 9354D43D45 for ; Mon, 9 Oct 2006 08:51:07 +0000 (GMT) (envelope-from dsurovtsev@yahoo.com) Received: (qmail 68052 invoked by uid 60001); 9 Oct 2006 08:51:06 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=WqPtRhRW0JAUj9nOO4sLsem+RypgEy0mz/DXO+CyULA3xsY3qH/ibAWhUK/g4n2fgksTNxUzsxk1z/2jb86Krin4CTxKSctf26tEbJCcSV/8nwjgOM1xjR0Q2QgFNBYDqllLGL2Yqo8fsdUZ7PWp8auPAnEA3/K+eeYxazl753s= ; Message-ID: <20061009085106.68050.qmail@web30203.mail.mud.yahoo.com> Received: from [81.21.0.3] by web30203.mail.mud.yahoo.com via HTTP; Mon, 09 Oct 2006 01:51:06 PDT Date: Mon, 9 Oct 2006 01:51:06 -0700 (PDT) From: dmitry surovtsev To: freebsd-cluster@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Content-Transfer-Encoding: quoted-printable Subject: CARP and spontaneous switching between MASTER - BACKUP 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: Mon, 09 Oct 2006 08:51:08 -0000 Hi all, =0ADid anybody face the problem with spontaneous switching between = MASTER - BACKUP carp machines? =0A=0AThe configuration is: =0A=0AFirst comp= uter (MASTER): =0Asysctl net.inet.carp.allow=3D1 =0Asysctl net.inet.carp.pr= eempt=3D1 (or 0, it doesn't matter) =0Asysctl net.inet.carp.arpbalance=3D0 = =0Aifconfig carp0 create =0Aifconfig carp0 vhid 1 advbase 1 pass pass1 192.= 168.1.1/24 =0A=0ASecond computer (BACKUP): =0Asysctl net.inet.carp.allow=3D= 1 =0Asysctl net.inet.carp.preempt=3D1 (or 0, it doesn't matter) =0Asysctl n= et.inet.carp.arpbalance=3D0 =0Aifconfig carp0 create =0Aifconfig carp0 vhid= 1 advbase 2 pass pass1 192.168.1.1/24 =0A=0ABoth computers are connected b= y direct cable (one pair of network cards with IP, say 192.168.2.1 and 192.= 168.2.2). =0AAnother network card of each copmuter has IP 192.168.1.1. =0A= =0AThe problem is: =0AWhen i go to my squirrelmail web application by typin= g https://192.168.1.1 =0Ai got a connection with master computer indeed. = =0AI type a login and password and then go to my Mailbox. =0A=0AAfter some = time however I got an error from Squirrelmail: =0A"You need to authorized t= o have an acces to your mail", then Squirrelmail =0Aproposes me to enter lo= gin and password again, second time. =0A=0AI do that and then have an acces= s to mailbox, BUT on the second, BACKUP, server. =0Aifconfig shows that fir= st computer is still in MASTER mode, =0Aand the second is still in BACKUP m= ode. =0A=0AWhat may be the problem? =0A=0AThanks in advance, =0ADmitry=0A= =0A From owner-freebsd-cluster@FreeBSD.ORG Mon Oct 9 09:07:41 2006 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 BE71F16A412 for ; Mon, 9 Oct 2006 09:07:41 +0000 (UTC) (envelope-from dkirhlarov@oilspace.com) Received: from office.oilspace.com (ns2.oilspace.com [194.129.65.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id D381B43D77 for ; Mon, 9 Oct 2006 09:07:34 +0000 (GMT) (envelope-from dkirhlarov@oilspace.com) Received: from dkirhlarov.mow.oilspace.com (hq.oilspace.com [81.222.156.185]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by office.oilspace.com (Postfix) with ESMTP id BED78136CF8 for ; Mon, 9 Oct 2006 10:07:32 +0100 (BST) Received: from dkirhlarov.mow.oilspace.com (localhost [127.0.0.1]) by dkirhlarov.mow.oilspace.com (8.13.8/8.13.8) with ESMTP id k9997WL3086868 for ; Mon, 9 Oct 2006 13:07:32 +0400 (MSD) (envelope-from dkirhlarov@dkirhlarov.mow.oilspace.com) Received: (from dkirhlarov@localhost) by dkirhlarov.mow.oilspace.com (8.13.8/8.13.8/Submit) id k9997VYQ086867 for freebsd-cluster@freebsd.org; Mon, 9 Oct 2006 13:07:31 +0400 (MSD) (envelope-from dkirhlarov) Date: Mon, 9 Oct 2006 13:07:31 +0400 From: Dmitriy Kirhlarov To: freebsd-cluster@freebsd.org Message-ID: <20061009090730.GC86010@dkirhlarov.mow.oilspace.com> Mail-Followup-To: freebsd-cluster@freebsd.org References: <20061009085106.68050.qmail@web30203.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061009085106.68050.qmail@web30203.mail.mud.yahoo.com> X-Mailer: Mutt-ng devel (2005-03-13) based on Mutt 1.5.9 X-Operating-System: FreeBSD 6.2-PRERELEASE User-Agent: mutt-ng/devel-r804 (FreeBSD) Subject: Re: CARP and spontaneous switching between MASTER - BACKUP 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: Mon, 09 Oct 2006 09:07:41 -0000 On Mon, Oct 09, 2006 at 01:51:06AM -0700, dmitry surovtsev wrote: > Did anybody face the problem with spontaneous switching between > MASTER - BACKUP carp machines? It can be result of drop packet for example. You use very frequently advbase. > The configuration is: My good worked config: on master: inet ${carp_ip} vhid 1 pass password netmask 0xffff0000 advbase 2 advskew 240 on slave: inet ${carp_ip} vhid 1 pass carptest netmask 0xffff0000 advbase 3 advskew 250 I use 6_Stable from end of summer. > After some time however I got an error from Squirrelmail: > "You need to authorized to have an acces to your mail", then Squirrelmail > proposes me to enter login and password again, second time. It look like, you start work with second node. > I do that and then have an access to mailbox, BUT on the second, BACKUP, server. > ifconfig shows that first computer is still in MASTER mode, > and the second is still in BACKUP mode. > > What may be the problem? switch on net.inet.carp.log on both machines and look log. WBR -- Dmitriy Kirhlarov OILspace, 26 Leninskaya sloboda, bld. 2, 2nd floor, 115280 Moscow, Russia P:+7 495 105 7247 ext.208 F:+7 495 105 7246 E:DmitriyKirhlarov@oilspace.com OILspace - The resource enriched - www.oilspace.com From owner-freebsd-cluster@FreeBSD.ORG Mon Oct 9 09:42:28 2006 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 7FE4116A403 for ; Mon, 9 Oct 2006 09:42:28 +0000 (UTC) (envelope-from jon.mercer@achean.com) Received: from ajax.achean.com (ajax.achean.com [212.87.82.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id D54E943D45 for ; Mon, 9 Oct 2006 09:42:27 +0000 (GMT) (envelope-from jon.mercer@achean.com) Received: from ajax.achean.com (ajax.achean.com [212.87.82.16]) by ajax.achean.com (8.13.1/8.13.1) with ESMTP id k999gQ7I012608 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 9 Oct 2006 10:42:26 +0100 (BST) (envelope-from jon.mercer@achean.com) Received: (from www@localhost) by ajax.achean.com (8.13.1/8.13.1/Submit) id k998xQVp012529; Mon, 9 Oct 2006 09:59:26 +0100 (BST) (envelope-from jon.mercer@achean.com) X-Authentication-Warning: ajax.achean.com: www set sender to jon.mercer@achean.com using -f Received: from 217.37.75.83 (SquirrelMail authenticated user jon.mercer) by webmail.achean.com with HTTP; Mon, 9 Oct 2006 09:59:26 +0100 (BST) Message-ID: <12914.217.37.75.83.1160384366.squirrel@webmail.achean.com> In-Reply-To: <20061007183115.62261.qmail@host169.ipowerweb.com> References: <20061007183115.62261.qmail@host169.ipowerweb.com> Date: Mon, 9 Oct 2006 09:59:26 +0100 (BST) From: "Jon Mercer" To: "George W bush" User-Agent: SquirrelMail/1.4.8 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Greylist: Delayed for 00:42:59 by milter-greylist-2.0.2 (ajax.achean.com [212.87.82.16]); Mon, 09 Oct 2006 10:42:26 +0100 (BST) X-Virus-Scanned: ClamAV 0.88.4/2012/Mon Oct 9 08:05:11 2006 on ajax.achean.com X-Virus-Status: Clean Cc: freebsd-cluster@freebsd.org Subject: Re: http://www.freewebtown.com/bustar00t/Musliman%20Vs%20Christian.exe 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: Mon, 09 Oct 2006 09:42:28 -0000 Is this what's called a weapon of mass destruction? On Sat, October 7, 2006 19:31, George W bush wrote: > > Hey look at that funny video.You will have damn fun.hahahaha.Musliman > Kicking christians ass. > http://www.freewebtown.com/bustar00t/Musliman%20Vs%20Christian.exe > > > > _______________________________________________ > freebsd-cluster@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-cluster > To unsubscribe, send any mail to "freebsd-cluster-unsubscribe@freebsd.org" > ----------------------------------------------------------------------- Achean Ltd http://www.achean.com Jon Mercer jon.mercer@achean.com Director ----------------------------------------------------------------------- From owner-freebsd-cluster@FreeBSD.ORG Mon Oct 9 08:39:29 2006 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 D28CB16A412 for ; Mon, 9 Oct 2006 08:39:29 +0000 (UTC) (envelope-from dsurovtsev@yahoo.com) Received: from web30208.mail.mud.yahoo.com (web30208.mail.mud.yahoo.com [209.191.69.55]) by mx1.FreeBSD.org (Postfix) with SMTP id 5D6E343D46 for ; Mon, 9 Oct 2006 08:39:29 +0000 (GMT) (envelope-from dsurovtsev@yahoo.com) Received: (qmail 78649 invoked by uid 60001); 9 Oct 2006 08:39:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=LuraTWMIqT8zTbXON6P7SJxVTKzHuak0bKtAyocOgWMFO3Xcl4KLsLqBOZ4cfqWF4HxmLx2CWu2gROdc+8wWqzVCJS8vVd8kN+pXCflmYr5fW0rfi24AMqNom6OiJKj4SlifOeLg0XCdZef3f3a1znlGxwUD5IAFAEJ/HCy4xvM= ; Message-ID: <20061009083928.78647.qmail@web30208.mail.mud.yahoo.com> Received: from [81.21.0.3] by web30208.mail.mud.yahoo.com via HTTP; Mon, 09 Oct 2006 01:39:28 PDT Date: Mon, 9 Oct 2006 01:39:28 -0700 (PDT) From: dmitry surovtsev To: freebsd-cluster@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Mon, 09 Oct 2006 14:36:24 +0000 Subject: CARP and spontaneous switching between MASTER - BACKUP 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: Mon, 09 Oct 2006 08:39:29 -0000 Hi all, =0A=0ADid anybody face the problem with spontaneous switching betwe= en MASTER - BACKUP carp machines? =0AThe configuration is: =0A=0AFirst comp= uter (MASTER): =0Asysctl net.inet.carp.allow=3D1 =0Asysctl net.inet.carp.pr= eempt=3D1 (or 0, it doesn't matter) =0Asysctl net.inet.carp.arpbalance=3D0 = =0A=0Aifconfig carp0 create =0Aifconfig carp0 vhid 1 advbase 1 pass pass1 1= 92.168.1.1/24 =0A=0ASecond computer (BACKUP): =0Asysctl net.inet.carp.allow= =3D1 =0Asysctl net.inet.carp.preempt=3D1 (or 0, it doesn't matter) =0Asysct= l net.inet.carp.arpbalance=3D0 =0A=0Aifconfig carp0 create =0Aifconfig carp= 0 vhid 1 advbase 2 pass pass1 192.168.1.1/24 =0A=0ABoth computers are conne= cted by direct cable (one pair of network cards with IP, say 192.168.2.1 an= d 192.168.2.2). =0AAnother network card of each copmuter has IP 192.168.1.1= . =0A=0AThe problem is: =0AWhen i go to my squirrelmail web application by = typing https://192.168.1.1 =0Ai got a connection with master computer indee= d. =0AI type a login and password and then go to my Mailbox. =0AAfter some = time however I got an error from Squirrelmail: =0A"You need to authorized t= o have an acces to your mail", then Squirrelmail =0Aproposes me to enter lo= gin and password again, second time. =0AI do that and then have an access t= o mailbox, BUT on the second, BACKUP, server. =0A=0Aifconfig shows that fir= st computer is still in MASTER mode, =0Aand the second is still in BACKUP m= ode. =0A=0AWhat may be the problem? =0A=0AThanks in advance, =0ADmitry=0A= =0A