From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qc0-x229.google.com (mail-qc0-x229.google.com [IPv6:2607:f8b0:400d:c01::229]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by huchra.bufferbloat.net (Postfix) with ESMTPS id 996D321F1F1 for ; Fri, 21 Jun 2013 09:47:47 -0700 (PDT) Received: by mail-qc0-f169.google.com with SMTP id c10so4830685qcz.0 for ; Fri, 21 Jun 2013 09:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=jwT+QknNy+g4c/jGxb1azvoIGHddUbl3DW3xDCkSFd8=; b=LRrbZ5J3o7WnGTf1Bi2MGTNXUDhh07v4obWOV48NJHPjYGUhQSpIlLlY8ta6izz9UG o0Q2T2NIsQ7P/DmlRKNoJ0lXWEpU9HLfXhhIdIwqvcqOzABzjdYV0CLl9+LpJFVoHvTk K5uPxfzwmQRt/jOvYGCHj3lh6JvhwHraWu/yaQibcswcma7KaB6Jk+vYOntm4y05v8kA am9mXRZQcmSQg1eSGTzbGihMjGrL/y50i5JnDrSzS/7zUJBj8QE5TfYk+pvcm1JG1kcb OS0t3g1OHI6u6ecCaF1bGZK9g1ccw9PHEGLltI/PUbWRSgyRMOuve9WreTdG8ilMzSh7 zHyw== MIME-Version: 1.0 X-Received: by 10.49.29.106 with SMTP id j10mr15393914qeh.37.1371833266249; Fri, 21 Jun 2013 09:47:46 -0700 (PDT) Received: by 10.224.22.197 with HTTP; Fri, 21 Jun 2013 09:47:46 -0700 (PDT) In-Reply-To: References: Date: Fri, 21 Jun 2013 17:47:46 +0100 Message-ID: From: Robert Bradley To: "" Content-Type: text/plain; charset=UTF-8 Subject: Re: [Cerowrt-devel] [Bloat] Sharing Windows Files from wired to wireless (3.7.5-2) X-BeenThere: cerowrt-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: Development issues regarding the cerowrt test router project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jun 2013 16:47:47 -0000 On 20 June 2013 02:31, Jim Reisert AD1C wrote: > I made the changes to smb.conf.template that Robert Bradley > recommended and rebooted the router. > > OOOoooohhhh!! I can see the shared desktop file systems from the > wireless Windows 7 machine!!!! > It's probably worth seeing then if we can get "reset on zero vc = no" added to the default smb.conf.template. It might also be worth pointing out the changes needed for multiple routers too, since only one can be the WINS server (secondary routers have "wins support=no" and "wins server=172.30.x.x" in smb.conf.template, and /etc/config/dhcp entries use "44,172.30.x.x" instead of "44,0.0.0.0"). I also have a patch to luci-app-samba that allows you to set the listening interfaces via the UI: diff --git a/applications/luci-samba/luasrc/model/cbi/samba.lua b/applications/luci-samba/luasrc/model/cbi/samba.lua index 9152637..d5294b5 100644 --- a/applications/luci-samba/luasrc/model/cbi/samba.lua +++ b/applications/luci-samba/luasrc/model/cbi/samba.lua @@ -28,6 +28,15 @@ s:taboption("general", Value, "homes", translate("Share home-directories"), translate("Allow system users to reach their home directories via " .. "network shares")) +net = s:taboption("general", Value, "interface", translate("Served interfaces")) +net.template = "cbi/network_netlist" +net.widget = "checkbox" +net.nocreate = true + +function net.cfgvalue(self, section) + return m.uci:get("samba", section, "interface") + end + tmpl = s:taboption("template", Value, "_tmpl", translate("Edit the template that is used for generating the samba configuration."), translate("This is the content of the file '/etc/samba/smb.conf.template' from which your samba configuration will be generated. " .. ----- Unfortunately, I expect Gmail will mangle the lines in that patch, but it should be easy enough to fix. The CeroWRT version of the file is at /usr/lib/lua/luci/model/cbi/samba.lua if anyone wants to try adding this manually. For this to have any effect on Samba, you will need to restore/uncomment the original "interfaces = |INTERFACES|" line in smb.conf.template that my previous template set manually. -- Robert Bradley