From owner-freebsd-bugs@FreeBSD.ORG Sun May 29 02:00:10 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2160316A41C for ; Sun, 29 May 2005 02:00:10 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B81FE43D48 for ; Sun, 29 May 2005 02:00:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4T209cs016254 for ; Sun, 29 May 2005 02:00:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4T209L4016253; Sun, 29 May 2005 02:00:09 GMT (envelope-from gnats) Resent-Date: Sun, 29 May 2005 02:00:09 GMT Resent-Message-Id: <200505290200.j4T209L4016253@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexander Melkov Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 989FE16A41C for ; Sun, 29 May 2005 01:51:46 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78BDA43D1F for ; Sun, 29 May 2005 01:51:46 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j4T1pkou092677 for ; Sun, 29 May 2005 01:51:46 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j4T1pk4v092676; Sun, 29 May 2005 01:51:46 GMT (envelope-from nobody) Message-Id: <200505290151.j4T1pk4v092676@www.freebsd.org> Date: Sun, 29 May 2005 01:51:46 GMT From: Alexander Melkov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: bin/81611: natd runs with -same_ports by default X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 May 2005 02:00:10 -0000 >Number: 81611 >Category: bin >Synopsis: natd runs with -same_ports by default >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 29 02:00:09 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Alexander Melkov >Release: 5.4-STABLE >Organization: >Environment: FreeBSD melkov.ru 5.4-STABLE FreeBSD 5.4-STABLE #4: Sun May 29 03:46:03 MSD 2005 spamtrap@melkov.ru:/usr/obj/usr/src/sys/MELKOV i386 >Description: even without -same_ports | -m switch natd tries to allocate the same source port as in the original packet. PKT_ALIAS_SAME_PORTS flag is set up in LibAliasInit function, -m switch can also only set this flag. Probably this default behaviour is actually good, and that's the manpage should be shanged, not libalias :). >How-To-Repeat: run natd without -m and inspect incoming and outgoing packet ports with tcpdump. >Fix: Workaround: create and use a config have with same_ports no >Release-Note: >Audit-Trail: >Unformatted: