Option to specify host name for AFP service

Status
Not open for further replies.

kjp4756

Contributor
Joined
Feb 11, 2014
Messages
102
I've been trying to get SMB shares and AFP shares to work together with my mac machines. I want to use AFP for time machine and SMB for all my other shares. When I have AFP and SMB enabled my mac only shows the AFP shares in finder under "Shared".

One way I have found to work around this is to have AFP announce a different host name by specifying "hostname = freenas-afp" in the afp.conf under [global]. For now I am able to "hack" this in by modifying generate_afpd_conf.py.

I think I remember in an older version of freenas that you could specify a server name under AFP. Is there a reason this was removed? I figured I would post here before opening an actual feature request.
 

rogerh

Guru
Joined
Apr 18, 2014
Messages
1,111
No answer to your question, but if you let AFP use the hostname in the GUI config for FreeNAS you can put a different Netbios name in the CIFS service dialogue. As far as my Mac (10.8.5) this has the same effect of separating the AFP and CIFS shares in Finder.
 

rogerh

Guru
Joined
Apr 18, 2014
Messages
1,111

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Does it work? It wouldn't for me.

It's said to work, but you'll have to research the details (not a Mac user myself).
 

Mlovelace

Guru
Joined
Aug 19, 2014
Messages
1,111
You don't have to do any of that. The AFP share is nice because you can specify it as a Time Machine volume, and Time Machine will auto discover it (helpful for the odd time that you have to reboot the NAS). To connect to the CIFS shares just specify smb in the connection string, the same would apply if you were using NFS in lieu of CIFS . So, in finder go to "Connect to Server" and in the server address string you would use <smb://servername/share> or <nfs://servername/mnt/poolname/share> or <afp://servername/share>...
 
Last edited:

rogerh

Guru
Joined
Apr 18, 2014
Messages
1,111
And Finder will auto-discover CIFS shares, and automatically apply the username and password you last used for them. Unfortunately, it won't do so if there are AFP shares on the same server. But, as I said above, you can get round this by giving the CIFS shares a different Netbios name (which the Mac then quotes as though a hostname) in the CIFS service dialogue on Freenas. So everything is point-and-click nirvana.
 
Status
Not open for further replies.
Top