Samba, network interfaces, launchd, etc.
Samba, network interfaces, launchd, etc.
- Subject: Samba, network interfaces, launchd, etc.
- From: David Farber <email@hidden>
- Date: Wed, 4 Mar 2009 14:58:03 -0700
I'd like to make Samba listen on a specific network interface instead
of listening on all interfaces. According to the Samba docs, I need
to do something like this:
[global]
; interfaces = vmnet1
interfaces = 192.168.144.0/24
bind interfaces only = yes
But this doesn't work on 10.5.4.
$ sudo lsof -Pi | grep smbd
smbd 1127 root 19u IPv4 0x5446e64 0t0 TCP *:
445 (LISTEN)
smbd 1127 root 20u IPv4 0x681d66c 0t0 TCP *:
139 (LISTEN)
Since Samba is under launchd control and the sockets it is listening
on are passed to it, my first question is, should I and can I specify
the interface I want in the smbd.plist? Looking through the launchd
docs, I didn't see anything that looked like it would specify an
interface. So maybe specifying the interface is the responsibility
of the daemon.
If so, then my second question would be if it would be appropriate to
file a radar?
Thanks.
(The interface I want to listen on is VMWare Fusion network interface
that is bound only to the virtual machine that it is running. In
other words, I want to use Samba to privately share files with a
virtual machine that is running locally. I *don't* want Samba
running on my local network.)
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden