LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-05-2009, 01:48 PM   #1
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
How to tell samba on which interface to listen on?


I have samba server and I have set it up to on lo and eth1 interfaces, but it still listens on 0.0.0.0, meaning all interfaces.

interfaces = 127.0.0.0/8 192.168.10.0/24

but this doesnt work?

Does anyone know how to fix this?
 
Old 03-05-2009, 02:04 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
interfaces = 127.0.0.0/8 192.168.10.0/24
This is not correct. Those are not interfaces rather than networks. In your case you can use
Code:
interfaces = eth1
You can follow eth1 by its IP address if you want.

Regards
 
Old 03-05-2009, 02:10 PM   #3
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Original Poster
Rep: Reputation: 73
Doesnt work, i tried that before and didnt do the trick
 
Old 03-05-2009, 02:56 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Add

bind interfaces only = yes

for the interfaces restriction to take any useful effect.
 
Old 03-05-2009, 03:01 PM   #5
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Original Poster
Rep: Reputation: 73
Cool! That worked, thx a bunch!
 
  


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
VNC listen specific interface Shwick Linux - Server 5 12-07-2008 06:16 PM
make Apache-tomcat to listen to other interface the_imax Linux - Server 1 07-21-2008 08:14 AM
how can i set apache httpd to listen to interface tun0 ? kublador Linux - Software 1 08-31-2004 10:14 PM
X11 server to listen on single configured interface kailesmith Linux - Networking 0 08-09-2003 05:05 PM
Can Squid listen at TWO interface ? xanthium Linux - Networking 1 04-30-2001 06:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:05 AM.

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