From owner-freebsd-hackers Fri Sep 17 5:51:13 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from relay.ucb.crimea.ua (relay.ucb.crimea.ua [212.110.138.1]) by hub.freebsd.org (Postfix) with ESMTP id 8B9B514A0E for ; Fri, 17 Sep 1999 05:49:49 -0700 (PDT) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.9.3/8.9.3/UCB) id PAA03722; Fri, 17 Sep 1999 15:46:00 +0300 (EEST) (envelope-from ru) Date: Fri, 17 Sep 1999 15:45:59 +0300 From: Ruslan Ermilov To: Doug White Cc: hackers@FreeBSD.ORG Subject: Re: Multiple NAT alias addresses Message-ID: <19990917154559.A72386@relay.ucb.crimea.ua> Mail-Followup-To: Doug White , hackers@FreeBSD.ORG References: <19990915104350.G86648@relay.ucb.crimea.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Doug White on Thu, Sep 16, 1999 at 11:25:53PM -0700 X-Operating-System: FreeBSD 3.2-STABLE i386 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Sep 16, 1999 at 11:25:53PM -0700, Doug White wrote: [...] > An update: > > I set up a test config at work with some spare boxes. I found that if you > specify an aliasIP that is the primary alias address (as determined by the > -n or -a options), those redirections will be ignored. Others continue to > work. I don't know why they weren't working on the real box, I may had > made a mistake there. > > So this file is wrong: > > interface fxp0 > redirect_port 10.0.0.1:ssh 128.1.1.1:ssh > redirect_port 10.0.0.2:ssh 128.1.1.2:ssh > > But this correct: > > interface fxp0 > redirect_port 10.0.0.1:ssh ssh > redirect_port 10.0.0.2:ssh 128.1.1.2:ssh > > There is some logic in natd to handle the wrong case so that it is > equivalent to the right case, but that logic may be flawed. > You know, natd(8) is not guilty, this is a bug in libalias(3) :-( I have made a patch for this and yet another bug and will send my patch for review to Brian Somers and Eivind Eklund. Please let me know if you would like to test these patches, and THANK YOU VERY MUCH for digging this out, there was a cool hacking! Cheers, -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank, ru@FreeBSD.org FreeBSD committer, +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message