From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Oct 4 12:00:25 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30F97106567F for ; Tue, 4 Oct 2011 12:00:25 +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 A08868FC14 for ; Tue, 4 Oct 2011 12:00:20 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p94C0INs048112 for ; Tue, 4 Oct 2011 12:00:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p94C0IxR048110; Tue, 4 Oct 2011 12:00:18 GMT (envelope-from gnats) Resent-Date: Tue, 4 Oct 2011 12:00:18 GMT Resent-Message-Id: <201110041200.p94C0IxR048110@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Rudolf Polzer Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40AA01065670 for ; Tue, 4 Oct 2011 11:57:20 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 304E58FC18 for ; Tue, 4 Oct 2011 11:57:20 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p94BvJXs006278 for ; Tue, 4 Oct 2011 11:57:19 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p94BvJq1006277; Tue, 4 Oct 2011 11:57:19 GMT (envelope-from nobody) Message-Id: <201110041157.p94BvJq1006277@red.freebsd.org> Date: Tue, 4 Oct 2011 11:57:19 GMT From: Rudolf Polzer To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/161278: [net/dante] getoutaddr(): address [...] selected, but not set for external interface X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2011 12:00:25 -0000 >Number: 161278 >Category: ports >Synopsis: [net/dante] getoutaddr(): address [...] selected, but not set for external interface >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 04 12:00:18 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Rudolf Polzer >Release: 7.4-RELEASE >Organization: @one IT GmbH >Environment: FreeBSD balogin.ba.vftest.net 7.4-RELEASE FreeBSD 7.4-RELEASE #0: Thu Dec 23 18:31:48 CET 2010 root@balogin.tnd.lab.arcor.de:/usr/obj/usr/src/sys/DL380DNS i386 >Description: We run a dante sockd with multiple external interfaces, defined in sockd.conf by: external: address1 external: address2 .. external.rotation: route This means that sockd is supposed to pick the external interface the same way the system would do when connecting to the target address of the connection. This worked absolutely fine in dante-1.1.19_1, however in dante-1.3.2, it fails: Oct 4 10:47:21 (1317718041.076916) sockd[66696]: info: pass(2): tcp/accept [: 145.253.194.41.8642 192.168.51.131.1080 Oct 4 10:47:21 (1317718041.078002) sockd[66697]: warning: getoutaddr(): address 192.168.51.131.0 selected, but not set for external interface Indeed, 192.168.51.131.0 is not defined as an external address. Also the target address of the connection was not in any range that would be reached through 192.168.51.131. How can this happen, if external.rotation is route? It MIGHT be the case that it treats it as same-same... >How-To-Repeat: Configure sockd as described above Connect See that the connect tries to go through the wrong interface and eventually fails. Observe the warning in syslog. >Fix: >Release-Note: >Audit-Trail: >Unformatted: