From owner-freebsd-current@FreeBSD.ORG Tue Oct 14 20:34:56 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5F0F16A4B3 for ; Tue, 14 Oct 2003 20:34:56 -0700 (PDT) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1299A43F93 for ; Tue, 14 Oct 2003 20:34:56 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.12.9/8.12.9) with ESMTP id h9F3YmN1076210; Tue, 14 Oct 2003 20:34:52 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <200310150334.h9F3YmN1076210@gw.catspoiler.org> Date: Tue, 14 Oct 2003 20:34:48 -0700 (PDT) From: Don Lewis To: jamnt@knology.net In-Reply-To: <3F8CA11A.1030905@knology.net> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii cc: freebsd-current@FreeBSD.org Subject: Re: samba 3 on CURRENT and net.inet.tcp.blackhole X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2003 03:34:57 -0000 On 14 Oct, Michal wrote: > Hello, > I have a problem with samba 3.0. > I had to reinstall FreeBSD-CURRENT after known problems with ATAng and > atapicam (beginning of September(?)), since then I can't set > net.inet.tcp.blackhole=2 in /etc/sysctl.conf. If I add the option to > sysctl then > samba will hung until I press ^C. If I boot without this option then samba > starts fine. However running now > sysctl net.inet.tcp.blackhole=2 prevent smbclient from running. I still > will be > able to connect to smb shere from another computer. How long did you wait before interrupting samba? My suspicion is that it is attempting to connect to a port that doesn't have a listener, and it is relying on receiving the ICMP unreachable to cause a connect() call to fail with ECONNREFUSED before it makes a connection attempt to another port that succeeds. If this is the situation, then the connect() call should eventually fail with ETIMEDOUT if you wait long enough. You might try disabling net.inet.tcp.blackhole and enabling net.inet.tcp.log_in_vain instead. That will tell you if samba is attempting to connect to a port without a listener when it starts up and might give you a hint about possible configuration changes that you could make so that you can re-enable net.inet.tcp.blackhole.