Hi everyone, samba 2.2.5 The server I'm using has 2 interfaces so using the interface parameter I'm telling samba to use eth0 but for some reason when I do netstat it is listening on eth1 interface = eth0 (the IP is 192.168.6.10) netstat -an udp 0 0 138.79.161.225:137 0.0.0.0:* udp 0 0 0.0.0.0:137 0.0.0.0:* udp 0 0 138.79.161.225:138 0.0.0.0:* 138.79.161.225 is the IP of eth1!??! I've also tried interface = 192.168.6.10/24 Any ideas?? Steve Simeonidis Network Engineer, Spherion Education Spherion Group Ltd The information contained in this email and any attachments to it: (a) may be confidential and if you are not the intended recipient, any interference with, use, disclosure or copying of this material is unauthorised and prohibited; and (b) may contain personal information of the recipient and/or the sender as defined under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to collect, hold and use such information and any personal information contained in a response to this email, for any reasonable purpose in the ordinary course of Spherion?s business, including forwarding this email internally or disclosing it to a third party. All personal information collected by Spherion will be handled in accordance with Spherion?s Privacy Policy. If you have received this email in error, please notify the sender and delete it. -------------- next part -------------- HTML attachment scrubbed and removed
On Tue, 10 Dec 2002, Simeonidis, Steve wrote:> Hi everyone, > > samba 2.2.5 > The server I'm using has 2 interfaces so using the > interface parameter I'm telling samba to use eth0 but > for some reason when I do netstat it is listening on eth1 > > interface = eth0 (the IP is 192.168.6.10)Try adding to smb.conf [globals]: interfaces = eth0 loOB bind interfaces only = Yes Then check - it should work. - John T.> > > netstat -an > udp 0 0 138.79.161.225:137 0.0.0.0:* > udp 0 0 0.0.0.0:137 0.0.0.0:* > udp 0 0 138.79.161.225:138 0.0.0.0:* > > 138.79.161.225 is the IP of eth1!??! > > I've also tried interface = 192.168.6.10/24 > > Any ideas?? > > > Steve Simeonidis > Network Engineer, Spherion Education > Spherion Group Ltd > > The information contained in this email and any attachments to it: > > (a) may be confidential and if you are not the intended recipient, any interference with, > use, disclosure or copying of this material is unauthorised and prohibited; and > > (b) may contain personal information of the recipient and/or the sender as defined > under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to > collect, hold and use such information and any personal information contained in a > response to this email, for any reasonable > > purpose in the ordinary course of Spherion’s business, including forwarding this email > internally or disclosing it to a third party. All personal information collected by Spherion > will be handled in accordance with Spherion’s Privacy Policy. If you have received > this email in error, please notify the sender and delete it. > >-- John H Terpstra Email: jht@samba.org
Just having a senior moment here, but, I recall vaguely that samba will listening on all NIC's but ignores the ones you tell it to ignore with. Joel On Tue, Dec 10, 2002 at 07:44:02PM +1100, Simeonidis, Steve wrote:> Hi everyone, > > samba 2.2.5 > The server I'm using has 2 interfaces so using the > interface parameter I'm telling samba to use eth0 but > for some reason when I do netstat it is listening on eth1 > > interface = eth0 (the IP is 192.168.6.10) > > > netstat -an > udp 0 0 138.79.161.225:137 0.0.0.0:* > udp 0 0 0.0.0.0:137 0.0.0.0:* > udp 0 0 138.79.161.225:138 0.0.0.0:* > > 138.79.161.225 is the IP of eth1!??! > > I've also tried interface = 192.168.6.10/24 > > Any ideas?? > > > Steve Simeonidis > Network Engineer, Spherion Education > Spherion Group Ltd > > The information contained in this email and any attachments to it: > > (a) may be confidential and if you are not the intended recipient, any interference with, > use, disclosure or copying of this material is unauthorised and prohibited; and > > (b) may contain personal information of the recipient and/or the sender as defined > under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to > collect, hold and use such information and any personal information contained in a > response to this email, for any reasonable > > purpose in the ordinary course of Spherion?s business, including forwarding this email > internally or disclosing it to a third party. All personal information collected by Spherion > will be handled in accordance with Spherion?s Privacy Policy. If you have received > this email in error, please notify the sender and delete it. >
I've tried the bind interfaces only = yes but still the same netstat gives the same results. What I'm really trying to do and why I need this is because I want to run 2 instances of SAMBA, a different one on each interface. The second instance doesn't even start properly. Thanks Steve Simeonidis Network Engineer, Spherion Education Spherion Group Ltd "Making the Workplace Work Better" 1st Floor, 493 St. Kilda Rd, Melbourne VIC 3004, Australia +61 3 9243 2382 stevesimeonidis@ap.spherion.com -----Original Message----- From: Eric Boehm [mailto:boehm@nortelnetworks.com] Sent: Tuesday, December 10, 2002 11:47 PM To: Simeonidis, Steve Cc: Joel Hammer; samba@lists.samba.org Subject: Re: [Samba] Using the right network interface On Tue, Dec 10, 2002 at 07:25:07AM -0500, Joel Hammer wrote:>>>>> "Joel" == Joel Hammer <Joel@HammersHome.com> writes:Joel> Just having a senior moment here, but, I recall vaguely that Joel> samba will listening on all NIC's but ignores the ones you Joel> tell it to ignore with. Yes, samba will listen on all interfaces. The problem is that Steve hasn't specified all the parameters necessary to restrict Samba to one interface. Try something like the following: interfaces = 192.168.6.10/24 127.0.0.1/8 bind interfaces only = yes You will want to include the loopback interfaces Check the sections in "man smb.conf" regarding these two directives. You need to include the loopback interface in the interfaces list or smbpasswd and swat will not work. Steve> Hi everyone, Steve> samba 2.2.5 The server I'm using has 2 interfaces so using Steve> the interface parameter I'm telling samba to use eth0 but Steve> for some reason when I do netstat it is listening on eth1 Steve> interface = eth0 (the IP is 192.168.6.10) Steve> netstat -an udp 0 0 138.79.161.225:137 0.0.0.0:* udp 0 0 Steve> 0.0.0.0:137 0.0.0.0:* udp 0 0 138.79.161.225:138 0.0.0.0:* Steve> 138.79.161.225 is the IP of eth1!??! Steve> I've also tried interface = 192.168.6.10/24 Steve> Any ideas?? -- Eric M. Boehm /"\ ASCII Ribbon Campaign boehm@nortelnetworks.com \ / No HTML or RTF in mail X No proprietary word-processing Respect Open Standards / \ files in mail The information contained in this email and any attachments to it: (a) may be confidential and if you are not the intended recipient, any interference with, use, disclosure or copying of this material is unauthorised and prohibited; and (b) may contain personal information of the recipient and/or the sender as defined under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to collect, hold and use such information and any personal information contained in a response to this email, for any reasonable purpose in the ordinary course of Spherion?s business, including forwarding this email internally or disclosing it to a third party. All personal information collected by Spherion will be handled in accordance with Spherion?s Privacy Policy. If you have received this email in error, please notify the sender and delete it. -------------- next part -------------- HTML attachment scrubbed and removed
Thanks for that, I'll give it a go! Will nmbd work properly if one "interface" belongs to a different domain than the other? Will it get mixed up? Thanks -----Original Message----- From: Eric Boehm To: Simeonidis, Steve Cc: samba@lists.samba.org Sent: 12/12/02 12:30 AM Subject: Re: [Samba] Using the right network interface On Wed, Dec 11, 2002 at 08:19:12AM -0500, Boehm, Eric [NCRTP:C28D:EXCH] wrote:>>>>> " Eric" == Boehm, Eric [NCRTP:C28D:EXCH] <Boehm> writes: >>>>> "Steve" == Simeonidis, Steve <SteveSimeonidis@ap.spherion.com>Steve> What I'm really trying to do and why I need this is because Steve> I want to run 2 instances of SAMBA, a different one on each Steve> interface. Eric> That's a different problem. I think I posted a message on Eric> this before. I'll try to find it and send you the Eric> reference. Here's the reference for the question I responded to on 2/7/2002. My suggestions worked for the person asking the question. http://marc.theaimsgroup.com/?t=101304737200002&r=1&w=2 -- Eric M. Boehm /"\ ASCII Ribbon Campaign boehm@nortelnetworks.com \ / No HTML or RTF in mail X No proprietary word-processing Respect Open Standards / \ files in mail The information contained in this email and any attachments to it: (a) may be confidential and if you are not the intended recipient, any interference with, use, disclosure or copying of this material is unauthorised and prohibited; and (b) may contain personal information of the recipient and/or the sender as defined under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to collect, hold and use such information and any personal information contained in a response to this email, for any reasonable purpose in the ordinary course of Spherion’s business, including forwarding this email internally or disclosing it to a third party. All personal information collected by Spherion will be handled in accordance with Spherion’s Privacy Policy. If you have received this email in error, please notify the sender and delete it. -------------- next part -------------- HTML attachment scrubbed and removed
Sorry Eric, I'm talking about Windows DOMAIN/WORKGROUPS. One interface will have a different Domain to the other. eg. eth0 Domain - DomainA eth1 Domain - DomainB I was just wondering if nmbd will work properly. Thanks Steve Simeonidis Network Engineer, Spherion Education Spherion Group Ltd "Making the Workplace Work Better" 1st Floor, 493 St. Kilda Rd, Melbourne VIC 3004, Australia +61 3 9243 2382 stevesimeonidis@ap.spherion.com -----Original Message----- From: Eric Boehm [mailto:boehm@nortelnetworks.com] Sent: Thursday, December 12, 2002 11:58 PM To: Simeonidis, Steve Cc: samba@lists.samba.org Subject: Re: [Samba] Using the right network interface On Thu, Dec 12, 2002 at 11:16:39PM +1100, Simeonidis, Steve wrote:>>>>> "Steve" == Simeonidis, Steve <SteveSimeonidis@ap.spherion.com> writes:Steve> Thanks for that, I'll give it a go! Will nmbd work Steve> properly if one "interface" belongs to a different domain Steve> than the other? What kind of domain do you mean? A Windows domain or a DNS domain? If its a DNS domain, I don't think it matters. If it is a Windows domain, I am not sure. I'm not sure I understand the question. In the link for the thread I sent you http://marc.theaimsgroup.com/?t=101304737200002&r=1&w=2 The examples I provide run a separate smbd *and* nmbd for each interface. BTW, I built 2.2.5 and it only binds to one interface for me if I just specify interfaces = 192.168.1.1/24 even if "bind interfaces only = yes" is commented out. Steve> Will it get mixed up? -- Eric M. Boehm /"\ ASCII Ribbon Campaign boehm@nortelnetworks.com \ / No HTML or RTF in mail X No proprietary word-processing Respect Open Standards / \ files in mail The information contained in this email and any attachments to it: (a) may be confidential and if you are not the intended recipient, any interference with, use, disclosure or copying of this material is unauthorised and prohibited; and (b) may contain personal information of the recipient and/or the sender as defined under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to collect, hold and use such information and any personal information contained in a response to this email, for any reasonable purpose in the ordinary course of Spherion?s business, including forwarding this email internally or disclosing it to a third party. All personal information collected by Spherion will be handled in accordance with Spherion?s Privacy Policy. If you have received this email in error, please notify the sender and delete it. -------------- next part -------------- HTML attachment scrubbed and removed