Date: Thu, 28 May 2009 16:23:37 -0400 From: Scott Ullrich <sullrich@gmail.com> To: Alexandre Biancalana <biancalana@gmail.com> Cc: freebsd-pf@freebsd.org Subject: Re: Multiple ftp servers behind pf with carp multi-ip Message-ID: <d5992baf0905281323n43d15c24i897332d29374e020@mail.gmail.com> In-Reply-To: <8e10486b0905281317h40250894rb98d19f063cd8a1c@mail.gmail.com> References: <8e10486b0905271442j224b37f5nceccaba929a08f8a@mail.gmail.com> <d5992baf0905271512n7a66ad26n91c1a645fd526d3c@mail.gmail.com> <8e10486b0905281125l662e1f98r5b5a68e172d56684@mail.gmail.com> <d5992baf0905281137j38b54733q40c753fb712a69a7@mail.gmail.com> <8e10486b0905281317h40250894rb98d19f063cd8a1c@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 28, 2009 at 4:17 PM, Alexandre Biancalana <biancalana@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d5992baf0905281323n43d15c24i897332d29374e020>