Mapping Network Drives over Internet with WebDAV

The discussion room of webDAV based solution for file sharing.
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://account.synology.com/support/su ... 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.
User avatar
akahan
Distinguished
Distinguished
Posts: 855
Joined: Sat Jul 14, 2012 6:52 pm

Re: Native WebDAV connection quit working.....

Unread post by akahan » Sun Feb 12, 2017 4:30 pm

OK, but just to make sure we are understanding each other: Are you using the NAS's IP address, rather than the xxxxx.synology.me address?

Also, can you ping the machine at xxxxx.synology.me? What about at its IP address? Do you get the same result for both?

kdbmebk
Novice
Novice
Posts: 49
Joined: Mon Dec 05, 2016 11:15 pm

Re: Native WebDAV connection quit working.....

Unread post by kdbmebk » Sun Feb 12, 2017 5:11 pm

I get 'request timed out' for trying to ping the IP address.

User avatar
akahan
Distinguished
Distinguished
Posts: 855
Joined: Sat Jul 14, 2012 6:52 pm

Re: Native WebDAV connection quit working.....

Unread post by akahan » Sun Feb 12, 2017 5:14 pm

If you can't even ping the machine, and you're sure you're using it's actual IP address (and not the one generated by xxxx.synology.me), then it's lost its network connection, and this has nothing to do with WebDAV, or any particular application. So you might want to just reboot the machine.

kdbmebk
Novice
Novice
Posts: 49
Joined: Mon Dec 05, 2016 11:15 pm

Re: Native WebDAV connection quit working.....

Unread post by kdbmebk » Sun Feb 12, 2017 8:17 pm

akahan wrote:If you can't even ping the machine, and you're sure you're using it's actual IP address (and not the one generated by xxxx.synology.me), then it's lost its network connection, and this has nothing to do with WebDAV, or any particular application. So you might want to just reboot the machine.
Thanks for your help.... And yes I may have been using a wrong IP Address.

The one I was using was in the DSM Tool Control Panel>External Access>DDNS>External Address

Can I reboot the Machine Remotely?

User avatar
akahan
Distinguished
Distinguished
Posts: 855
Joined: Sat Jul 14, 2012 6:52 pm

Re: Native WebDAV connection quit working.....

Unread post by akahan » Sun Feb 12, 2017 8:50 pm

Catch-22. You can't reboot the machine remotely (from outside your own LAN) unless you can contact it, and you can't contact it without its IP address.

davidmf
I'm New!
I'm New!
Posts: 2
Joined: Tue Oct 25, 2016 10:10 am

Re: Mapping Network Drives over Internet with WebDAV

Unread post by davidmf » Mon Mar 27, 2017 12:31 pm

No WebDAV access through DDNS

I have configured the external connection by DDNS "http://xxxxx.synology.me:5000" and it works correctly.
I have configured WebDAV and from the local network if I mount a drive like so "http://xxxxx.synology.me:5005" or "http://80.34.x.xx.synology.me:5005", it works correctly.
But if I try to do the same from an external computer to the network, from the internet, WebDAV does not work.
It is not able to mount the unit.

The ports were not open at first and it did not work on the local network, but I thought the ports would be and opened them.
But after opening the ports, on the local network worked but from the internet does not work.
In WebDAV do you need to create or export some certificate for the connection from the internet even by http?

Can I miss some configuration in Synology?

Thank you
Last edited by davidmf on Tue Mar 28, 2017 12:27 pm, edited 1 time in total.

User avatar
akahan
Distinguished
Distinguished
Posts: 855
Joined: Sat Jul 14, 2012 6:52 pm

Re: Mapping Network Drives over Internet with WebDAV

Unread post by akahan » Mon Mar 27, 2017 3:44 pm

If you can connect from within your LAN, but not from the Internet, the problem is most likely that you haven't forwarded the necessary ports in your router.

guibara
I'm New!
I'm New!
Posts: 2
Joined: Fri Mar 03, 2017 7:20 pm

WebDAV Issues

Unread post by guibara » Thu May 04, 2017 10:50 pm

Hi everybody,

I'm having issues connecting my 916+ via WebDAV whether remotely or even at home. I've followed all the steps and check all the prefs but still no luck.

I'm on a Mac and every time I try to "Connect To Server", I input http://myusername.synology.me:5005 click OK and it goes thru (my username and password are already saved in my keychain). I can see MyUserName.synology.me in my "Shared" tab, but when I click on it, there's nothing. I have two shared folders that are not showing up (permissions are set to read/write on both with my log in). I've also tried logging in via WebDAV using Transmit, and I get the same results: I connect, but there's nothing. This happens whether I'm away from home or even when I'm at home.

At home, I can access the NAS via Connect To Server if I use afp://MyIPAdress or smb://MyNAS with no problems.... but I really need to be able to remotely access it via WebDAV.

Any help is much appreciated!!! Thanks!!!

User avatar
sjeph8je
Seasoned
Seasoned
Posts: 551
Joined: Fri Jan 29, 2010 10:06 pm
Location: Netherlands

Re: WebDAV Issues

Unread post by sjeph8je » Fri May 05, 2017 7:18 pm

Hi,

you need to specify the share you want to access in the url like this http://myusername.synology.me:5005/shareName. it is not possible to access the "root" normally.
DS-218+ (10GB) | DSM 6.2-23739 | 1 x WD20EFRX (Basic-btrfs) (Hyper backup vault, DS, Docker, Tvheadend)
DS-916+ (8GB) | DSM 6.2-23739 | 2 x WD40EFRX (RAID1-btrfs) | 2 x WD10EFRX (RAID1-btrfs) (AS, Calendar, Chat, CMS, Docker, Hyper backup, PS, Snapshot Replication, SVN, VS, WS, Webdav)
  • Startech S3510SMU33 | WD20EFRX (ext-4)
DS-213J | DSM 6.2-23739 | 1 x WD20EFRX (Basic-ext4) (Hyper backup vault)
DS-209 | DSM 6.2-23648

Corruption wears infinite disguises.

nutz77
I'm New!
I'm New!
Posts: 7
Joined: Sun Dec 26, 2010 4:02 pm

Re: Mapping Network Drives over Internet with WebDAV

Unread post by nutz77 » Mon Jun 19, 2017 4:42 pm

Since i got some help here to setup my Webdav in both http and https mode. I shall do a simplified guide here.

1) Make sure permission setting is enable for Admin or respective users in Control panel/Group

By default webdav is not enable for admin group users even though webdav is enabled in Control Panel/File Services/WebDAV

2) Windows user, do this, but make sure you know what you are doing. Credits to MarekT

https://forum.synology.com/enu/viewtopi ... 15#p461510

On computer running Windows 10:

1. In windows search, type run and select “Run” Desktop app
2. Type regedit (Under User Account control click Yes) Registry Entry window opens
!!!!! Caution!!!!!! If you not sure or don’t want to mess with registry, STOP right here!
3. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters
4. In the Name Column Look for the BasicAuthLevel
5. Right click and then click Modify, change in the Value data box, to type 2
6. If BasicAuthLevel is not present, go to step 8
7. Close Registry Editor and Reboot computer
8. On the Edit menu, point to New, and then click DWORD Value.
9. Type BasicAuthLevel, and then press Enter.
10. Right-click BasicAuthLevel, and then click Modify.
11. In the Value data box, type 2, and then click OK.
12. Close Registry Editor and Reboot computer

Note The mapping is as follows:
0 - Basic authentication disabled
1 - Basic authentication enabled for SSL connections only
2 - Basic authentication enabled for SSL and non-SSL connections

Original article: https://support.microsoft.com/en-us/kb/2123563

For me it works on computers running Windows 10 Home and Windows 10 Pro

3) Connecting to your WebDAV folder thru File explorer. Credits to SweetGenius

https://forum.synology.com/enu/viewtopi ... 82#p434514

Using HTTP:

\\domain.name@5005

Using HTTPS: (Must have signed certificate)

\\domain.name@SSL@5006

Select the box Connect using different credentials. It will prompt for username and password twice but it will connect and map the drive.

4) If https connection is required and is not working in step 3.

Export the existing cert from Control Panel/Security/Certificate
Import the certs into your Windows environment.
Store location : Local Machine
Place all certificates in the following store: Trusted Root Certification Authorities

5) Follow this link to check if your certs are installed.

https://docs.microsoft.com/en-us/dotnet ... mc-snap-in

Hope this helps in your troubleshooting.

sincarne
Virtuoso
Virtuoso
Posts: 1348
Joined: Wed Feb 15, 2017 9:57 pm

Re: Mapping Network Drives over Internet with WebDAV

Unread post by sincarne » Mon Jun 19, 2017 5:47 pm

just use let's encrypt cert and HTTPS much simpler than you make it here

also you can just map network drive and put in full url with port like https://domain.com:5006

DBgroup
I'm New!
I'm New!
Posts: 1
Joined: Sun Jul 16, 2017 11:25 pm

Re: Mapping Network Drives over Internet with WebDAV

Unread post by DBgroup » Sun Jul 16, 2017 11:37 pm

thank you to everybody that contributed to this topic and to nutz77 for summing it all up

i finally got it too work using all the help from all the geekwizz on this forum, thanks again

i want to add
that if you are using multiple certificates: control panel -> security -> certificate -> right click on any -> configure -> choose the correct certificate for webDAV

speed has kind of dropped after adding SSL though, but im stuck here at upload speeds 4.5Mbps

SergSlim
I'm New!
I'm New!
Posts: 7
Joined: Thu Jan 18, 2018 10:51 pm
Location: Ukraine, Lviv
Contact:

Re: Mapping Network Drives over Internet with WebDAV

Unread post by SergSlim » Tue May 15, 2018 11:01 am

Can someone help a noob with this?

So I have a DS418play at home, and want to Map its drives in My Computer on Windows 10 at work.
Started reading about it all just today, but my head is already spinning.

I stumbled across this Tutorial from Synology.
I installed WebDAV on Synology. Instead of using NetDrive I would like to use Windows tools, so I would like to dive into all this HTTPS stuff, and that's where I know nothing at all.
Tutorial says to export certificate through Control Panel - Security - Certificate. Ok, did that. Got an archive with *.pem files.
Tutorial says: On your client device, import the certificate you have exported. For detailed instructions, please see the Help and tutorials of your client device.

Ok, great. Where do I find a tutorial for that on Windows?

I read about buying a domain name, creating Let's Encrypt certificates, etc...

So my question is - can I do it all with just a basic stuff that Synology provides? Can I somehow use those *.pem files in Windows? Or should I definitely use other methods to achieve this?

User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
Posts: 19437
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: Mapping Network Drives over Internet with WebDAV

Unread post by HarryPotter » Tue May 15, 2018 7:00 pm

Forget about this certification exporting thing, not needed.

You need a DDNS name like yourname.synology.me or any third party DDNS, then simply use the "map network drive" function of Windows 10 and enter the path:
https://yourname.synology.me:5006 for all shares or
https://yourname.synology.me:5006/nameofshare for a single shared folder.

On your router you must forward port 5006 to your NAS.
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS718+ / DSM 6.2-23511 / ST4000VN000-2AH166 / SA400S37120G SSD cache /16 GB RAM
DS415+ / DSM 6.2-23511

LMS 7.9.1-166, 2 Squeezebox 3 + Boom

APC Smart UPS SUA750i

SergSlim
I'm New!
I'm New!
Posts: 7
Joined: Thu Jan 18, 2018 10:51 pm
Location: Ukraine, Lviv
Contact:

Re: Mapping Network Drives over Internet with WebDAV

Unread post by SergSlim » Wed May 16, 2018 12:27 pm

HarryPotter wrote:
Tue May 15, 2018 7:00 pm
Forget about this certification exporting thing, not needed.

You need a DDNS name like yourname.synology.me or any third party DDNS, then simply use the "map network drive" function of Windows 10 and enter the path:
https://yourname.synology.me:5006 for all shares or
https://yourname.synology.me:5006/nameofshare for a single shared folder.

On your router you must forward port 5006 to your NAS.
It asks for a certificate during connection.
Image

Post Reply

Return to “WebDAV”