Skip site navigation (1)Skip section navigation (2)
Date:      14 Apr 2003 18:26:17 -0000
From:      Yaroslav Terletskyy <ts@lta.lviv.ua>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Charles Mott <cm@linktel.net>
Subject:   bin/50955: [PATCH] natd / libalias support for multiple alias addresses
Message-ID:  <20030414182617.27159.qmail@postoffice.lta.lviv.ua>
Resent-Message-ID: <200304141830.h3EIUBro058602@freefall.freebsd.org>

index | next in thread | raw e-mail


>Number:         50955
>Category:       bin
>Synopsis:       [PATCH] natd / libalias support for multiple alias addresses
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 14 11:30:10 PDT 2003
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030414182617.27159.qmail>