From owner-freebsd-pf@FreeBSD.ORG Thu Sep 20 22:56:03 2007 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D620316A419 for ; Thu, 20 Sep 2007 22:56:03 +0000 (UTC) (envelope-from freebsd-pf@lessyv.com) Received: from postfix1-g20.free.fr (postfix1-g20.free.fr [212.27.60.42]) by mx1.freebsd.org (Postfix) with ESMTP id 772E713C459 for ; Thu, 20 Sep 2007 22:56:03 +0000 (UTC) (envelope-from freebsd-pf@lessyv.com) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by postfix1-g20.free.fr (Postfix) with ESMTP id 66E531A0D36F for ; Thu, 20 Sep 2007 17:31:30 +0200 (CEST) Received: from smtp5-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp5-g19.free.fr (Postfix) with ESMTP id 7AD2D82057 for ; Thu, 20 Sep 2007 17:31:00 +0200 (CEST) Received: from [192.168.0.33] (ves78-2-82-232-204-142.fbx.proxad.net [82.232.204.142]) by smtp5-g19.free.fr (Postfix) with ESMTP id 5D217820A8 for ; Thu, 20 Sep 2007 17:30:56 +0200 (CEST) Message-ID: <46F29235.7010706@lessyv.com> Date: Thu, 20 Sep 2007 17:31:01 +0200 From: "Christophe M." User-Agent: Icedove 1.5.0.12 (X11/20070731) MIME-Version: 1.0 To: freebsd-pf@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: ifconfig carpdev X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 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, 20 Sep 2007 22:56:03 -0000 On Wednesday 19 September 2007, Max Laier wrote: > On Saturday 15 September 2007, Max Laier wrote: > > On Saturday 15 September 2007, Ingo Flaschberger wrote: > > > Ingo Flaschberger wrote: > > > > I have implemented at FreeBSD 6.2-STABLE. > > > > http://www.nabble.com/file/p12686194/carpdev.diff carpdev.diff > > > > Is a working solution, but not 100% failsave. > > > > See fixme. > > > > > > argl.. need some more tweaks. > > > > > > carp adds only a hostroute, and no network. > > > fixed that it add a network, but now kernels cries to receive the arp > > > at the parent interface and not at the carp interface... > > > > There is a lot more to this. Please hold your breath just a few more > > days and I'll have a working sollution as promised. Also, the proposed > > ioctl change is not the preferred way of doing things. If you pass in > > an interface index, there is no way of making sure that the interface > > didn't change underneath you - that's why we rather pass the whole > > string and do the resolution in the kernel. > > So here you go ... this is the ***ALPHA*** version of carpdev support. > Note that there are *a lot* of raw edges, untested areas and missing > features still, but "it's working"[tm]. > > For the moment that means the IPv4 carpdev case is working. i.e. > configuring a carp on an otherwise unused interface: > > ifconfig carp create > ifconfig carp0 carpdev rl0 vhid 1 pass foo 10.0.0.1 > ifconfig rl0 up > > This patch is FYI, not something I'd recommend to use or even test. I'll > do cleanup, testing and polishing over the coming days and let you know > when it's in testable shape. > > This work is generously sponsored by pil.dk. Hello ! I wanna add CARP IP balancing support on FreeBSD. My work is based on the OpenBSD ip_carp.c diff of 03/18/2007, when mpf added IP balancing support. I already succesfully patch my freebsd to support carpdev, but mostly like Ingo F. . Mine is just able to show iface xname under ifconfig, forcing it doesn't work, like you said above. Goog think is carp_input (not the old one renamed as carp_proto_input according to OpenBSD) , because my results shown that multicast data packets (not the CARP advs, the real packets) never appear in ether_input on every other servers. Several misunderstanding about the input process let me think to add a right carp_input (who do an fresh ether_input) but it doesn't work with my code ;) Packet just appears on one CARP interface, and never on others servers/CARP ifaces. I am going to test your patch, thanks for it ! Is there someone who is working on IP balancing ? I'll reply here for any additional information. Bye list ! -- Christophe Malinge contactlessyv.com SysAdm padawan / Developer CCC - 'C' Comme Cirque president - jonglez les lundi @ EPiTA