From owner-freebsd-pf@FreeBSD.ORG Thu May 28 20:23:59 2009 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 2DB2C106567D for ; Thu, 28 May 2009 20:23:59 +0000 (UTC) (envelope-from sullrich@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id A9CAD8FC16 for ; Thu, 28 May 2009 20:23:58 +0000 (UTC) (envelope-from sullrich@gmail.com) Received: by bwz9 with SMTP id 9so5787818bwz.43 for ; Thu, 28 May 2009 13:23:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=fGt9oCzateQZSf8KRUul0l7X5BAQN4FXdSEWxnxXQbM=; b=ef8X/dG333Zt3yLaOjLhwVzJGBCSriOmkiL00ZwfSj2ETKOo3tisT8cGOi/W9lPuv3 9igHvsDQQPOQyIYSCUZFG5m/ez66kFvqNVP5QAns8p4DNPKtODUo96cEKzSuKQBUk0tt 9jv4fftPT1sEGZWF7g7W47lyzZi7jO4vQR0OE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=NsErxyBngo/Im+0EgI2I1alkIJCSj7AjW5NiA+xpWeeIpEG84WQj62svHYG6xPWese Vv5bZ9cBAC3CEx+qDqiSmnvNQhBwD8WSE6om6m36GzmlnCv5cxwSs5VINyVHMMtiv5W2 PQa+PiPZhPofGso53pHEqNEaVcT13wyOg3RxM= MIME-Version: 1.0 Received: by 10.204.31.71 with SMTP id x7mr1581715bkc.2.1243542237176; Thu, 28 May 2009 13:23:57 -0700 (PDT) In-Reply-To: <8e10486b0905281317h40250894rb98d19f063cd8a1c@mail.gmail.com> References: <8e10486b0905271442j224b37f5nceccaba929a08f8a@mail.gmail.com> <8e10486b0905281125l662e1f98r5b5a68e172d56684@mail.gmail.com> <8e10486b0905281317h40250894rb98d19f063cd8a1c@mail.gmail.com> From: Scott Ullrich Date: Thu, 28 May 2009 16:23:37 -0400 Message-ID: To: Alexandre Biancalana Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-pf@freebsd.org Subject: Re: Multiple ftp servers behind pf with carp multi-ip 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, 28 May 2009 20:23:59 -0000 On Thu, May 28, 2009 at 4:17 PM, Alexandre Biancalana wrote: > The patch does not apply clearly, I merge they by hand (the final diff > is attached) and compiled Ok. I will give a try and let you know. > > I'm curious about the two new command line options -i and -2, what's > the exacly purpose of this options ? That might be a little bit outdated. The most up to date port is here: http://redmine.pfsense.org/repositories/browse/pfsense-tools/pfPorts/pftpx-routeto I quickly glanced at the source and did not see the -i argument but the -2 argument should be the routeto IP address: if (routeto) { memset(&hints, 0, sizeof hints); hints.ai_flags = AI_NUMERICHOST; hints.ai_family = ipv6_mode ? AF_INET6 : AF_INET; hints.ai_socktype = SOCK_STREAM; error = getaddrinfo(routeto, NULL, &hints, &res); if (error) errx(1, "getaddrinfo route-to address failed: %s", gai_strerror(error)); memcpy(&routeto_ss, res->ai_addr, res->ai_addrlen); logmsg(LOG_INFO, "using route-to (%s %s)", routeto_if, sock_ntop(sstosa(&routeto_ss))); freeaddrinfo(res); } Scott