Mounting a Share over VPN

Questions regarding Mac OS X Specifically can be placed here, such as questions regarding TimeMachine, for example.
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:
https://myds.synology.com/support/suppo ... p?lang=enu
2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.

Mounting a Share over VPN

Postby rooney1111 » Sun Apr 15, 2012 11:19 am

Assuming I have set up a PPTP VPN between my 112j and Mac Lion Server how do I then mount a share on the Mac. I realise the 112j will be set up with a virtual IP address for the VPN - can I simply mount a shared folder by accessing its IP address and if so how will I know the (virtual) IP address of the 112j. Thanks in advance!
rooney1111
Trainee
Trainee
 
Posts: 14
Joined: Fri Apr 13, 2012 12:40 pm

Re: Mounting a Share over VPN

Postby myCloud » Sun Apr 15, 2012 11:55 am

First, the DiskStation with the VPN won't have a "virtual IP address." Inside the local network, it will have either a Fixed or Reserved IP address you've assigned in the router, or whatever you're using to serve internal DHCP. The PPTP VPN will be on port 1723 of this address. If you want to access the VPN from outside your local network, you need to port forward in the router from 1723 external to 1723 on the DS, and get yourself a DDNS account, which provides a fully-qualified domain name (FQDN) to your network. You can set this up in the DS or in some routers. All it does is make a connection to the DDNS provider with your DDNS account username and password, and the DDNS server gets your current external IP address from that connection and applies it to your FQDN.

Assuming the Mac is not at this location (why else would you connect it to the DS via the VPN), go into System Preferences -> Network and add a VPN connection. The server address will be your DDNS FQDN. Create a cryptically named admin level account with a robust password on the DS used for this instead of using the admin user and put it in here. I advise you use Maximum encryption (128-bit), but will mention here, PPTP isn't all that secure. Then click Connect.

Once you've connected, the Mac is now inside the local network. In the Finder, select Go -> Connect to Server, enter the IP address of the PPTP range you configured in the DSM, and you should be able to choose shared folders in the resulting menu.. Click on the share you want to use from the DS on the Mac and it will mount, with your DiskStation showing in the left side of Finder windows.
Last edited by myCloud on Sat Apr 21, 2012 2:31 pm, edited 2 times in total.
DS 1512+ w/3GB, 5 x 3TB Seagate ST3000DM001 8.2TB RAID 6, half files/half Time Machine.
Icy Dock MB559U3S-1SB enclosure w/4TB Hitachi UltraStar via USB 3 for files backup
UVERSE to AirPort Extreme + 2 AirPort Express w/speakers. TRENDnet TV-IP312WN camera
CyberPower CP1500PFCLCD Sine Wave UPS
DSM 4.1-2661 w/SSH + SFTP, VPN Server, Syslog Server, Media Server, Mail Server, Mail Station,
Audio Station, Surveillance Station, Photo Station, Web Station - DS Apps on iPad & iPod Touch.
User avatar
myCloud
Skilled
Skilled
 
Posts: 648
Joined: Fri Mar 23, 2012 11:28 am

Re: Mounting a Share over VPN

Postby rooney1111 » Sun Apr 15, 2012 12:23 pm

Many thanks for that, it was principally how to mount the remote DS shares!
rooney1111
Trainee
Trainee
 
Posts: 14
Joined: Fri Apr 13, 2012 12:40 pm

Re: Mounting a Share over VPN

Postby jltnol » Tue Apr 17, 2012 4:42 am

In Advanced, you'll need to use Send all Traffic through the VPN connection



I would respectfully disagree with this.

The big limiting factor with VPN's run from your home(and since you've mentioned DDNS, I would assume this to be the case) is the UPLOAD speed on the VPN server side. At home, I've got a 6Mb/512k DSL line, so when I'm at the office, and connect to my home DS via VPN, when I want to copy a file from the home DS to work, the fastest that file can travel will be 512k. Great for a small file, but impossibly slow for big files(or even a lot of little files)

Checking the above mentioned box will force all of your internet traffic... even non-VPN stuff onto the VPN. So when you request a web page, look for new mail, download attachments, that request is sent down the VPN to your server, and then back thru the VPN at that same slow 512k connection. There is nothing wrong with this, but it will slow things down, when they don't really need to be.

Once you have the VPN connection setup, you can access files stored on the remote server, AND surf the internet without that box checked.
jltnol
Experienced
Experienced
 
Posts: 110
Joined: Wed Aug 24, 2011 5:05 am

Re: Mounting a Share over VPN

Postby rooney1111 » Tue Apr 17, 2012 8:36 am

Once again many thanks for input! As I understand it from Synology's VPN User's Guide the default set up for the Mac is NOT to route all internet traffic over the VPN, unlike the PC set up which does. Furthermore as I will be scheduling Retrospect to carry out incremental backups during the night speed shouldn't be a problem in any case ... watch this space, I will be implementing the set up this Fri (20/04/12)

It's a real pity the WebDAV doesn't work properly, hopefully this will get solved by Apple/Retrospect/WebDAV at some time!
rooney1111
Trainee
Trainee
 
Posts: 14
Joined: Fri Apr 13, 2012 12:40 pm

Re: Mounting a Share over VPN

Postby rooney1111 » Fri Apr 20, 2012 2:16 pm

Have set up the VPN and it's working OK. I do not see the DS shares in the left pane of the Finder. HELP - how do I get to mount the shares?
rooney1111
Trainee
Trainee
 
Posts: 14
Joined: Fri Apr 13, 2012 12:40 pm

Re: Mounting a Share over VPN

Postby myCloud » Fri Apr 20, 2012 4:25 pm

Finder menu Go, Connect to server, afp://inside_IP_address_of_DiskStation
DS 1512+ w/3GB, 5 x 3TB Seagate ST3000DM001 8.2TB RAID 6, half files/half Time Machine.
Icy Dock MB559U3S-1SB enclosure w/4TB Hitachi UltraStar via USB 3 for files backup
UVERSE to AirPort Extreme + 2 AirPort Express w/speakers. TRENDnet TV-IP312WN camera
CyberPower CP1500PFCLCD Sine Wave UPS
DSM 4.1-2661 w/SSH + SFTP, VPN Server, Syslog Server, Media Server, Mail Server, Mail Station,
Audio Station, Surveillance Station, Photo Station, Web Station - DS Apps on iPad & iPod Touch.
User avatar
myCloud
Skilled
Skilled
 
Posts: 648
Joined: Fri Mar 23, 2012 11:28 am

Re: Mounting a Share over VPN

Postby rooney1111 » Fri Apr 20, 2012 6:39 pm

When you say inside address of the remote server do you mean for example 192.168.1.25 even though my local IP subnet is eg 192.168.20.20?, where 192.168.1.x is the remote IP subnet.
rooney1111
Trainee
Trainee
 
Posts: 14
Joined: Fri Apr 13, 2012 12:40 pm

Re: Mounting a Share over VPN

Postby myCloud » Fri Apr 20, 2012 6:45 pm

Try it. I've never tried to connect to the DS from another NAT'd network.
DS 1512+ w/3GB, 5 x 3TB Seagate ST3000DM001 8.2TB RAID 6, half files/half Time Machine.
Icy Dock MB559U3S-1SB enclosure w/4TB Hitachi UltraStar via USB 3 for files backup
UVERSE to AirPort Extreme + 2 AirPort Express w/speakers. TRENDnet TV-IP312WN camera
CyberPower CP1500PFCLCD Sine Wave UPS
DSM 4.1-2661 w/SSH + SFTP, VPN Server, Syslog Server, Media Server, Mail Server, Mail Station,
Audio Station, Surveillance Station, Photo Station, Web Station - DS Apps on iPad & iPod Touch.
User avatar
myCloud
Skilled
Skilled
 
Posts: 648
Joined: Fri Mar 23, 2012 11:28 am

Re: Mounting a Share over VPN

Postby rooney1111 » Fri Apr 20, 2012 7:03 pm

I'll try it and let you know, thanks.
rooney1111
Trainee
Trainee
 
Posts: 14
Joined: Fri Apr 13, 2012 12:40 pm

Re: Mounting a Share over VPN

Postby rooney1111 » Fri Apr 20, 2012 8:10 pm

Hi there, tried that but no joy. If I try connecting to the DDNS Name/Path to the share I get a user name/password challenge. If I put in the wrong password then this is reported as a password failure but when I put in the correct user name/password it says 'The xxxx volume could not be mounted'
rooney1111
Trainee
Trainee
 
Posts: 14
Joined: Fri Apr 13, 2012 12:40 pm

Re: Mounting a Share over VPN

Postby myCloud » Fri Apr 20, 2012 8:35 pm

What happens if you make a VPN connection to your DDNS in the Mac's System Preferences -> Network -> VPN connection as I detailed above, then Finder -> Go -> Connect to Server 192.168.1.25 ?
DS 1512+ w/3GB, 5 x 3TB Seagate ST3000DM001 8.2TB RAID 6, half files/half Time Machine.
Icy Dock MB559U3S-1SB enclosure w/4TB Hitachi UltraStar via USB 3 for files backup
UVERSE to AirPort Extreme + 2 AirPort Express w/speakers. TRENDnet TV-IP312WN camera
CyberPower CP1500PFCLCD Sine Wave UPS
DSM 4.1-2661 w/SSH + SFTP, VPN Server, Syslog Server, Media Server, Mail Server, Mail Station,
Audio Station, Surveillance Station, Photo Station, Web Station - DS Apps on iPad & iPod Touch.
User avatar
myCloud
Skilled
Skilled
 
Posts: 648
Joined: Fri Mar 23, 2012 11:28 am

Re: Mounting a Share over VPN

Postby rooney1111 » Fri Apr 20, 2012 8:52 pm

This is exactly what I tried, the connecting just times out!
rooney1111
Trainee
Trainee
 
Posts: 14
Joined: Fri Apr 13, 2012 12:40 pm

Re: Mounting a Share over VPN

Postby myCloud » Fri Apr 20, 2012 9:08 pm

rooney1111 wrote:This is exactly what I tried, the connecting just times out!


Oh, okay. I misunderstood.
DS 1512+ w/3GB, 5 x 3TB Seagate ST3000DM001 8.2TB RAID 6, half files/half Time Machine.
Icy Dock MB559U3S-1SB enclosure w/4TB Hitachi UltraStar via USB 3 for files backup
UVERSE to AirPort Extreme + 2 AirPort Express w/speakers. TRENDnet TV-IP312WN camera
CyberPower CP1500PFCLCD Sine Wave UPS
DSM 4.1-2661 w/SSH + SFTP, VPN Server, Syslog Server, Media Server, Mail Server, Mail Station,
Audio Station, Surveillance Station, Photo Station, Web Station - DS Apps on iPad & iPod Touch.
User avatar
myCloud
Skilled
Skilled
 
Posts: 648
Joined: Fri Mar 23, 2012 11:28 am

Re: Mounting a Share over VPN

Postby rooney1111 » Fri Apr 20, 2012 9:32 pm

I have to say to Synology in particular that there appears to be no knowledge coming from them regarding mounting a remote DS share on a Mac over their own VPN!!! C'mon Synology, either this is possible and you know how, or it isn't!! I wasted hours on this! Many thanks to contributors to this thread and let's hope we can find the solution.
rooney1111
Trainee
Trainee
 
Posts: 14
Joined: Fri Apr 13, 2012 12:40 pm

Next

Return to Mac OS X

Who is online

Users browsing this forum: No registered users and 2 guests