Scenario: One Samba server with multiple network adapters each hooked to a different network. Question: How can I configure Samba (nmdb) to show different shares when browsing the Samba server from clients connected to the different networks? Background: The nmdb is always running in a single instance, doesn't matter how often it is started. Regards Richard
On Wednesday 03 August 2005 02:34, Richard Zimmer wrote:> Scenario: > One Samba server with multiple network adapters each hooked to a > different network. > > Question: > How can I configure Samba (nmdb) to show different shares when browsing > the Samba server from clients connected to the different networks?Your subject says that you want different browse lists. That is NOT possible. A browse list is the list of machines that are known to your network. In your question you have asked for a different list of shares on the Samba server. So which is it? Browse list or share list? The browse list can not be different, the shares lists can be. Follow chapter 33 of the Samba3-HOWTO.pdf for insight into how you might achieve your goals. Hint: Use the "netbios aliases" option, for each alias create it's own smb.conf include file. Use one alias for each network. It can be restricted to its own network address by using the "hosts allow" and "hosts deny" facility. Each included smb.conf can have its own share definitions.> > Background: > The nmdb is always running in a single instance, doesn't matter how > often it is started.Correct. And that is the way it was designed to be too. Cheers, John T. -- John H Terpstra Samba-Team Member Phone: +1 (650) 580-8668 Author: The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556 Samba-3 by Example, ISBN: 0131472216 Hardening Linux, ISBN: 0072254971 Other books in production.
On?Wednesday, August 03, 2005 6:02 PM John H Terpstra wrote:> >?So which is it? Browse list or share list?Sorry for being not precise and thanks for making it clear! I meant share lists.> The browse list can not be different, the shares lists can be. Follow chapter > 33 of the Samba3-HOWTO.pdf for insight into how you might achieve your goals.Great document, very detailed and very new.> Hint: > Use the "netbios aliases" option, for each alias create it's own smb.conf > include file. Use one alias for each network. It can be restricted to its own > network address by using the "hosts allow" and "hosts deny" facility. Each > included smb.conf can have its own share definitions.Since I have 16 interfaces I am afraid to confuse my users with 16 virtual server names. I am looking for using the interface or IP address the virtual server is running on? ? Samba3-HOWTO?is talking about the %i macro on page?873 which seems to be new in Samba3 (I am using Samba 2.2 from Debian Woody stable). ? I think this macro is what I was searching for. I going to upgrade to Debian Sarge, which in my test installations was terrific. ? Good whishes to everyone ? Richard Zimmer