Joseph Belesi
2003-Sep-23 14:33 UTC
[Samba] IP address restrictions and multiple interfaces
Using Samba (2nd edition) discusses using the "interfaces" network configuration option, along with "hosts allow", "hosts deny", etc, to provide support of multiple interfaces. The examples cited only discuss the scenario in which the interfaces are on different subnets. What about the case in which the interfaces of a multi-homed systems are on the same subnet? Can Samba work in this configuration? The book Understanding CIFS by Chris Hertel talks about NetBIOS name conflicts in this scenario (same name mapping to multiple IP addresses). Thanks. _________________________________________________________________ Instant message during games with MSN Messenger 6.0. Download it now FREE! http://msnmessenger-download.com
Stefan G. Weichinger
2003-Sep-23 15:00 UTC
[Samba] IP address restrictions and multiple interfaces
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@oops.co.at
Joseph Belesi schrieb:> Using Samba (2nd edition) discusses using the "interfaces" network > configuration option, along with "hosts allow", "hosts deny", etc, to > provide support of multiple interfaces. The examples cited only discuss > the scenario in which the interfaces are on different subnets.interfaces belongs to the interfaces on your server. (similar meaning of "ip address of the network card") hosts allow and hosts deny belongs to the client interfaces... also look at "bind interfaces only".> > What about the case in which the interfaces of a multi-homed systems are > on the same subnet? Can Samba work in this configuration? The book > Understanding CIFS by Chris Hertel talks about NetBIOS name conflicts in > this scenario (same name mapping to multiple IP addresses).we're working on a network with more than one ip address in the same segment, additionally our machines (even the clients) have more than one ip address in different segments. (this is nessecary because of costumer wks's) e.g. server has X.X.10.1 (eth0) X.X.10.254 (eth0:1) and X.X.30.1 (eth0:2) the notebook has X.X.10.198(lan) X.X.30.198(wireless) the configuration in this case means (the whole ..10 and ..30 has access) interfaces = X.X.10.1 X.X.30.1 hosts allow = X.X.10 X.X.30 bind interfaces only = yes ##attention - no answer on localhost... we're using only a nameserver. the nameserver has configured forward and reverse lookup zones. we have no problems with samba 2.2.8a i'm doing hard to understand your question exact, so i hope i'd gave u the right answer. gk> > Thanks. > > _________________________________________________________________ > Instant message during games with MSN Messenger 6.0. Download it now > FREE! http://msnmessenger-download.com >