VPN and Network Shares

Discussion in 'Mac OS X Server, Xserve, and Networking' started by tameanaka, Jan 24, 2014.

  1. tameanaka macrumors newbie

    Joined:
    Sep 23, 2005
    #1
    So I recently setup a Mac mini with Mavericks Server to basically share files between a group of people. It is not the only server on the network, with the other being a Win2008 Server. It does all the DHCP, DNS, Exchange, Sharing, etc. for all the PCs.

    So the issue is when I'm on the Local network I can connect to the Mac share simply with smb://servername/sharename. When I connect via VPN however I cannot connect with names, but need to use servers IP address. I entered the correct DNS Server IP and Search Domain in VPN Client settings as well. The search domain is simply servername.local if that makes a difference.

    Currently I only have the File Sharing and VPN enabled on the Mac server. Is there any other settings I need to get shares to work over VPN with names?
     
  2. meme1255 macrumors 6502

    Joined:
    Jul 15, 2012
    Location:
    Czech Republic
    #2
    You need to create Bonjour beacon over VPN: For AFP:

    ssh -L 54800:127.0.0.1:548 -N user@VPN-IP-OF-SERVER -g &
    trap "kill $!" SIGINT SIGHUP SIGTERM
    dns-sd -P "name of share you want to see in Finder" _afpovertcp._tcp local 54800 localhost.local. YOUR_LOCAL_IP

    This way, you at least see it in Finder as Bonjour share ...
     

Share This Page