From owner-freebsd-pf@FreeBSD.ORG Wed Aug 22 22:00:11 2007 Return-Path: Delivered-To: freebsd-pf@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA39716A420 for ; Wed, 22 Aug 2007 22:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B4E2213C4A3 for ; Wed, 22 Aug 2007 22:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7MM0Bge027235 for ; Wed, 22 Aug 2007 22:00:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7MM0BIK027234; Wed, 22 Aug 2007 22:00:11 GMT (envelope-from gnats) Date: Wed, 22 Aug 2007 22:00:11 GMT Message-Id: <200708222200.l7MM0BIK027234@freefall.freebsd.org> To: freebsd-pf@FreeBSD.org From: Max Laier Cc: Subject: Re: kern/115725: pf nat -> ($if) works only intermittently X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Max Laier List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 22:00:11 -0000 The following reply was made to PR kern/115725; it has been noted by GNATS. From: Max Laier To: bug-followup@freebsd.org, kjelderg@gmail.com Cc: Subject: Re: kern/115725: pf nat -> ($if) works only intermittently Date: Wed, 22 Aug 2007 23:44:39 +0200 > nat pass on $ext_if from $freenx_jail_ip to any -> ($ext_if) > > When I then jexec a shell in the jail and try to do things on the > network, only 1 in 3 or so connections would work. Ideally they should > have all worked. This usually happens when you have aliases on $ext_if. In this case ($ext_if) expands to a round-robin pool with all addresses assigned to the interface. If you want to use the primary address on that interface you can use the "($ext_if:0)" syntax to exclude aliases. If the address you want to use is an alias, you have to specify it manually. -- Max