Re: Samba, network interfaces, launchd, etc.
Re: Samba, network interfaces, launchd, etc.
- Subject: Re: Samba, network interfaces, launchd, etc.
- From: James Peach <email@hidden>
- Date: Thu, 5 Mar 2009 09:06:44 -0800
2009/3/4 David Farber <email@hidden>:
> 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.
There's no way to specify this in the launchd plist. You could file an
enhancement request for launchd.
>
> If so, then my second question would be if it would be appropriate to file a
> radar?
IMHO, yes.
>
> 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.)
Try using the "hosts allow" smb.conf parameter, eg. append this to yr
/etc/smb.conf:
[global]
hosts deny = ALL
hosts allow = 127.0.0.1
--
James Peach | email@hidden
_______________________________________________
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