LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-13-2006, 01:11 PM   #1
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Rep: Reputation: 32
Samba and binding interfaces in the global smb.conf


I have a situation where I have 2 interfaces on a machine but I only want one of those interfaces to allow access to the samba shares. I was wondering if i added:

[global]
interfaces = 192.168.2.101/255.255.255.0
bind interfaces only = yes

To the global file if that would be sufficient to keep that particuar interface allowed only.

Also, would this stop the service on the other interface or would it simply block it?
 
Old 03-14-2006, 10:12 AM   #2
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
Quote:
Originally Posted by Thaidog
I was wondering if i added:

[global]
interfaces = 192.168.2.101/255.255.255.0
bind interfaces only = yes

To the global file if that would be sufficient to keep that particuar interface allowed only.
Yes.

Quote:
Originally Posted by Thaidog
Also, would this stop the service on the other interface or would it simply block it?
Short answer: Samba runs 2 services: name service (nmdb) and file service (smbd). It will 'simply block' for the name service and 'stop the service' (not bind it) for the file service.

Long answer: search for "bind interfaces only" in the smb.conf man page where all this is very well explained.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reinstalling Samba doesn't recover the original /etc/samba/smb.conf Akhran Debian 2 11-11-2005 12:54 AM
samba conf smb.conf regnier Mandriva 5 02-17-2005 04:27 AM
samba smb.conf lukalinuix Linux - Networking 5 06-21-2004 06:32 AM
/etc/samba/smb.conf tsitras Linux - Newbie 2 04-09-2004 08:33 PM
samba server and smb.conf gogo Linux - Software 1 05-04-2001 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration