From ts@postoffice.lta.lviv.ua  Mon Apr 14 11:26:21 2003
Return-Path: <ts@postoffice.lta.lviv.ua>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1856E37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 14 Apr 2003 11:26:21 -0700 (PDT)
Received: from fire.lta.lviv.ua (fire.lta.lviv.ua [194.44.202.154])
	by mx1.FreeBSD.org (Postfix) with SMTP id D3A3E43FAF
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 14 Apr 2003 11:26:16 -0700 (PDT)
	(envelope-from ts@postoffice.lta.lviv.ua)
Received: (qmail 2257 invoked from network); 14 Apr 2003 18:26:12 -0000
Received: from postoffice.lta.lviv.ua (194.44.202.145)
  by mail.lta.lviv.ua with SMTP; 14 Apr 2003 18:26:12 -0000
Received: (qmail 27165 invoked by uid 1000); 14 Apr 2003 18:26:18 -0000
Message-Id: <20030414182617.27159.qmail@postoffice.lta.lviv.ua>
Date: 14 Apr 2003 18:26:17 -0000
From: Yaroslav Terletskyy <ts@lta.lviv.ua>
Reply-To: Yaroslav Terletskyy <ts@lta.lviv.ua>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Ruslan Ermilov <ru@FreeBSD.org>, Charles Mott <cm@linktel.net>
Subject: [PATCH] natd / libalias support for multiple alias addresses
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         50955
>Category:       bin
>Synopsis:       [PATCH] natd / libalias support for multiple alias addresses
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 14 11:30:10 PDT 2003
>Closed-Date:    Fri Aug 26 15:41:02 GMT 2005
>Last-Modified:  Fri Aug 26 15:41:02 GMT 2005
>Originator:     Yaroslav Terletskyy
>Release:        FreeBSD 4.6-RELEASE i386
>Organization:
>Environment:
System: FreeBSD fire.lta.lviv.ua 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Wed Oct 30 10:26:05 EET 2002 pwr@fire.lta.lviv.ua:/usr/src/sys/compile/FIRE i386

Machine running natd as router/firewall, ipfw, libalias.

>Description:
	Current implementation of natd does not allow to use multiple alias
	addresses for IP aliasing. Libalias library does not set variable
	newDefaultLink to 1 when new "outgoing" aliased connection is created,
	thus PacketAliasCheckNewLink() does not return non-zero value when
	a new aliasing link is created for outgoing packets.

>How-To-Repeat:
	Enable natd on the router/firewall. To see libalias problem insert
	the following line into natd.c code before packet direction and
	protocol type of IP packet is printed in verbose mode:

		if(PacketAliasCheckNewLink()) printf("New link created.\n");

	Recompile natd and run it in verbose mode. Test it with incoming
	packets (LSNAT) and see that it works, test it with outgoing packets
	(originated from the box itself) and see that PacketAliasCheckNewLink()
	does not inform about new aliasing link being created.

>Fix:
	To fix libalias problem and add support for multiple alias addresses
	apply patches found at http://www.lta.lviv.ua/~ts/natd/natd-maa2.tgz

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->ru 
Responsible-Changed-By: kris 
Responsible-Changed-When: Fri Jul 18 15:10:58 PDT 2003 
Responsible-Changed-Why:  
Assign to natd maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50955 
Responsible-Changed-From-To: ru->freebsd-bugs 
Responsible-Changed-By: ru 
Responsible-Changed-When: Fri Apr 16 23:18:38 PDT 2004 
Responsible-Changed-Why:  
ENOTIME. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50955 
State-Changed-From-To: open->feedback 
State-Changed-By: glebius 
State-Changed-When: Fri Aug 26 15:36:17 GMT 2005 
State-Changed-Why:  
Yaroslav,  

in recent FreeBSD versions 5.4-RELEASE, 6.0-RELEASE natd(8) 
and libalias(3) can handle multiple aliasing instances. 

Can I close your PR? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50955 
State-Changed-From-To: feedback->closed 
State-Changed-By: glebius 
State-Changed-When: Fri Aug 26 15:40:30 GMT 2005 
State-Changed-Why:  
Email to submitter bounces. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50955 
>Unformatted:
