[Samba] IP address restrictions and multiple interfaces

Stefan G. Weichinger monitor at oops.co.at
Tue Sep 23 15:00:41 GMT 2003


Hi, Joseph Belesi,

23. September 2003 you wrote:

JB> Using Samba (2nd edition) discusses using the "interfaces" network
JB> configuration option, along with "hosts allow", "hosts deny", etc, to
JB> provide support of multiple interfaces.  The examples cited only discuss the
JB> scenario in which the interfaces are on different subnets.

JB> What about the case in which the interfaces of a multi-homed systems are on
JB> the same subnet?  Can Samba work in this configuration?  The book 
JB> Understanding CIFS by Chris Hertel talks about NetBIOS name conflicts in
JB> this scenario (same name mapping to multiple IP addresses).

Read the thread "Multiple NICs" from earlier today.
I just changed my smb.conf at my customerŽs site to use 2 NICs.

Just leave the interfaces-option away and it will use all NICs except
127.0.0.1.

For "hosts allow" use something like:

hosts allow = 192.168.16.

to just let in the local C-class-hosts. (Note the trailing dot)

IŽm right now monitoring the log.?mbd-files on that host and it works
like a charm.

You can verify the usage of both (or all) NICs via

"smbclient -L sambaserver"

it will list the used interfaces first. And you will hopefully notice
the increased performance ;-)

best regards,
Stefan G. Weichinger
mailto:monitor at oops.co.at






More information about the samba mailing list