From owner-freebsd-questions@FreeBSD.ORG Mon Feb 27 09:26:56 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11A931065670 for ; Mon, 27 Feb 2012 09:26:56 +0000 (UTC) (envelope-from ronnyma@volatile.no) Received: from na3sys010aog105.obsmtp.com (na3sys010aog105.obsmtp.com [74.125.245.78]) by mx1.freebsd.org (Postfix) with SMTP id 9A1D48FC12 for ; Mon, 27 Feb 2012 09:26:53 +0000 (UTC) Received: from mail-tul01m020-f175.google.com ([209.85.214.175]) (using TLSv1) by na3sys010aob105.postini.com ([74.125.244.12]) with SMTP ID DSNKT0tMXXhG+NlMZi73m8RkaGx+wqoLt+Z0@postini.com; Mon, 27 Feb 2012 01:26:55 PST Received: by mail-tul01m020-f175.google.com with SMTP id x4so5421914obh.20 for ; Mon, 27 Feb 2012 01:26:53 -0800 (PST) Received-SPF: pass (google.com: domain of ronnyma@volatile.no designates 10.60.20.9 as permitted sender) client-ip=10.60.20.9; Authentication-Results: mr.google.com; spf=pass (google.com: domain of ronnyma@volatile.no designates 10.60.20.9 as permitted sender) smtp.mail=ronnyma@volatile.no; dkim=pass header.i=ronnyma@volatile.no Received: from mr.google.com ([10.60.20.9]) by 10.60.20.9 with SMTP id j9mr5532646oee.6.1330334813344 (num_hops = 1); Mon, 27 Feb 2012 01:26:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=volatile.no; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=TOnkdgszTlwDkbs9POG7kqWsF1YGlLucg6h2+7jhhdk=; b=ZwFu5oMz/YMgHuUE7eq+AiulDdXlfxDO+VNv3QoCsVQxXZe285kqXb0ebqOv9yDlpU L62b8kmV74tImtAO3iXcjZMzRBaC8zTqKeWBXEbhtaIhq8C1AtYU80Qt54vrfl9MgdVx k574yxZrIj4jpZE3BRtJfyBKqYO7zLy3xnyaE= MIME-Version: 1.0 Received: by 10.60.20.9 with SMTP id j9mr4849709oee.6.1330334813183; Mon, 27 Feb 2012 01:26:53 -0800 (PST) Received: by 10.182.20.1 with HTTP; Mon, 27 Feb 2012 01:26:53 -0800 (PST) In-Reply-To: <4F47A295.6020200@herveybayaustralia.com.au> References: <4F47A295.6020200@herveybayaustralia.com.au> Date: Mon, 27 Feb 2012 10:26:53 +0100 Message-ID: From: Ronny Mandal To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkmVcaE9PaguXJGgiexAJJ6hIGc3yVxNPV8yXbvOoGgp8mTRAyegYkx+UmrYFu6uGYBhgU3 Subject: Re: 9.0, Samba and two NICs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2012 09:26:56 -0000 On Fri, Feb 24, 2012 at 3:45 PM, Da Rock wrote: > On 02/24/12 21:39, Ronny Mandal wrote: >> >> Hi! >> >> I have been running Samba on FreeBSD 9.0 with a wireless card. A share >> is connected to my W7 computer. To get more speed between the >> computers, I decided to activate the 1GBit- Ethernet on the FreeBSD >> and establish a direct connection (cross-link) to the W7. I gave the >> new connection a static IP/subnet: 10.0.0.2/255.0.0.0 for the FreeBSD >> and 10.0.0.1/255.0.0.0 for the W7. SSH works fine, however Samba is >> utilizing the wireless card. >> >> My smb.conf looks something like this: >> >> .. >> ;The 192-address is the wireless, ath0. 10.0.0.2 is age0 >> interfaces = 127.0.0.1 192.168.0.232 10.0.0.2 >> bind interfaces only = yes >> ; the two latter is the IPs of the W7 >> hosts allow = 127.0.0.1 192.168.0.117 10.0.0.1 >> >> >> If I remove the 192* in the hosts allow, my W7 looses access via smb. >> >> netstat tells me that it is listening to both interfaces. >> >> What might be wrong? > > What address is the w7 using? > > If it is using 192.X, that could be the problem. That or some variation... > such as the w7 using wireless and 192.x? Sorry about the late answer and missing info. The W7 is using both, i.e. wireless and wired. Strangely enough, it works now. Here is what I did: The interface parameter; I put the 10.* before the 192.* and stopped and started the samba-service. After that, the wired card were utilized when I copied to and from the share. interfaces = 192.168.0.232 10.0.0.2 127.0.0.1 changed to interfaces = 10.0.0.2 192.168.0.232 127.0.0.1 (I tried this earlier, but it seems that /usr/local/etc/rc.d/samba restart did not properly re-read the configuration.) Regards, Ronny Mandal