From owner-freebsd-current@FreeBSD.ORG Fri Apr 2 05:03:20 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B949116A4E9 for ; Fri, 2 Apr 2004 05:03:20 -0800 (PST) Received: from ms-smtp-02-eri0.socal.rr.com (ms-smtp-02-qfe0.socal.rr.com [66.75.162.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id A691643D45 for ; Fri, 2 Apr 2004 05:03:20 -0800 (PST) (envelope-from sean@mcneil.com) Received: from mail.mcneil.com (rrcs-west-24-199-45-54.biz.rr.com [24.199.45.54])i32D3ISa017263 for ; Fri, 2 Apr 2004 05:03:18 -0800 (PST) Received: from localhost (localhost.mcneil.com [127.0.0.1]) by mail.mcneil.com (Postfix) with ESMTP id 5F85EFD266 for ; Fri, 2 Apr 2004 05:03:18 -0800 (PST) Received: from mail.mcneil.com ([127.0.0.1]) by localhost (server.mcneil.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00715-03 for ; Fri, 2 Apr 2004 05:03:17 -0800 (PST) Received: from [24.199.45.54] (mcneil.com [24.199.45.54]) by mail.mcneil.com (Postfix) with ESMTP id C0AECFD0D2 for ; Fri, 2 Apr 2004 05:03:17 -0800 (PST) From: Sean McNeil To: freebsd-current@freebsd.org In-Reply-To: <1080909341.1115.1.camel@server.mcneil.com> References: <1080907942.1033.2.camel@server.mcneil.com> <1080909341.1115.1.camel@server.mcneil.com> Content-Type: text/plain Message-Id: <1080910997.1560.0.camel@server.mcneil.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 02 Apr 2004 05:03:17 -0800 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at mcneil.com Subject: Re: natd no longer working - libalias is at fault X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2004 13:03:20 -0000 On Fri, 2004-04-02 at 04:35, Sean McNeil wrote: > On Fri, 2004-04-02 at 04:12, Sean McNeil wrote: > > Greetings, > > > > System from March 30th worked fine. Today, just rebuilt everything and > > tcp isn't working through nat anymore. udp still works. It isn't the > > kernel as I tried my old one and got the same problem. I'm guessing the > > recent changes to libalias did it. > > Confirmed. Rolling lib/libalias/alias.c back to version 1.40 fixed the > problem. The following line was unintentionally deleted: *** /home/sean/alias.c Fri Apr 2 04:59:52 2004 --- alias.c Fri Apr 2 05:01:12 2004 *************** TcpAliasIn(struct libalias *la, struct i *** 884,889 **** --- 884,890 ---- /* Restore original IP address */ accumulate = twowords(&pip->ip_dst); + pip->ip_dst = original_address; accumulate -= twowords(&pip->ip_dst); /* If this is a transparent proxy packet, then modify the source