site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=661TI7l5g8L8d9pnY7q2vzrUw63ByvbirQSaseBPYRg=; b=hYG5TtCfO3KSFo4TyIOeQXpl6nbKA80dT+ew15f4XUjRreQG7nHn6bY3idiPqHYFFu B0BdTF3vRNc1daMTq/zE1yRHOwVX5XTbPT8k5BK050ssSztwN3ueNwCR5Oiuq2sjlCWe V34/tLVGEeN5TeTWRGK9Y208xCRfoLanD++rE= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=sGuFTNak/NXv9WDkmupcf4qOAaXjkT+vzrmoz6FVQuHBVsJ5Dd5v2jv5M0aG8DsSiz b4eu1FPNtCJyDj+W7+MBbzuulWFWO02LdzxhmUPUSJRB7UKQBxTP6fv8rW6LRXlnJ2Cx nFcDW3Wfh6/NHkpv9zOrFZqGVtW8VfZbGlmok= 2009/3/4 David Farber <caveat+applelists@numenor.com>:
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 | jorgar@gmail.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com