DSM 2.3 folder encryption - how does it work ?

The much anticipated DSM 2.3 production release, with new features, such as easy volume management and storage with the Synology Hybrid RAID (SHR), AES-256 bit share level encryption to aid in protecting your sensitive data, backup to the cloud with Amazon S3 service, and so much more!

Re: DSM 2.3 folder encryption - how does it work ?

Postby abbe » Tue Mar 23, 2010 1:28 pm

I host a family photo album and would like to store the entire website encrypted. Thus, if the box get stolen, a thief would not be able to watch all the personal pictures of friends and family.

This goes for both the Photo and Web system folder and the rest of the system folders as well.

I have tried to encrypt these, but it is apparently not an option. The button for encryption is greyed out. Could we please have this? I am aware I would get a performance penalty, but it would be so nice to have.

Are there any plans to develop this?

/abbe
abbe
Trainee
Trainee
 
Posts: 15
Joined: Fri May 22, 2009 7:19 am

Re: DSM 2.3 folder encryption - how does it work ?

Postby abbe » Tue Mar 23, 2010 2:10 pm

BTW it is also needed, when users store personal data in their "home" folder.

I hope this is possible,

Cheers

/abbe
abbe
Trainee
Trainee
 
Posts: 15
Joined: Fri May 22, 2009 7:19 am

Re: DSM 2.3 folder encryption - how does it work ?

Postby taylorhq » Tue Mar 23, 2010 2:14 pm

abbe wrote:I host a family photo album and would like to store the entire website encrypted. Thus, if the box get stolen, a thief would not be able to watch all the personal pictures of friends and family.

This goes for both the Photo and Web system folder and the rest of the system folders as well.

I have tried to encrypt these, but it is apparently not an option. The button for encryption is greyed out. Could we please have this? I am aware I would get a performance penalty, but it would be so nice to have.

Are there any plans to develop this?

/abbe


I'm not party to Synology's plans, and agree that it would be nice to have the option to encrypt these 'special' folders.

One thing you could try, if you are comfortable with the unix command line. Create an encrypted folder called something like 'photox'. Then create a symbolic link under the 'photo' shared folder, which points to the encrypted folder. This may not be supported by Synology, and future firmware releases might break it, but it is worth a try.

Use the web interface to create a shared folder called 'photox' with encryption.
Do not automount it at startup - otherwise a potential thief will be able to read the data.
Login to the command line as root, and type the following...
Code: Select all
cd /volume1/photo
ln -s /volume1/photox family


You will now see a folder underneath photo, called 'family'. Anything stored there will be encrypted.

I haven't tested this, as personally I don't use the photo album feature. But it's worth a try!

A nice touch is to unmount the encrypted folder, and then do 'touch /volume1/photox/this_folder_is_locked'. This creates a file in the directory which will be visible only when the encrypted folder is unmounted. That way, you'll never find the folder is empty and panic.

Please report back if this option works, as it might help others.

Steve
taylorhq
I'm New!
I'm New!
 
Posts: 5
Joined: Mon Mar 22, 2010 11:29 am

Re: DSM 2.3 folder encryption - how does it work ?

Postby aurelieng » Tue Mar 23, 2010 2:21 pm

To encrypt a shared folder, shouldn't you click on the "Edit" button to set the encryption, so that the encryption button becomes accessible ?
aurelieng
Trainee
Trainee
 
Posts: 13
Joined: Mon Mar 15, 2010 10:24 am

Re: DSM 2.3 folder encryption - how does it work ?

Postby Greysoldier » Tue Mar 23, 2010 7:10 pm

@taylorhq

Thanks for the explanation - that's great :D
Greysoldier
I'm New!
I'm New!
 
Posts: 3
Joined: Wed Mar 17, 2010 10:36 am

Re: DSM 2.3 folder encryption - how does it work ?

Postby abbe » Thu Mar 25, 2010 8:18 am

@taylorhq

I tried your suggestion (great idea btw), but it doesnt work.

I created the encrypted folder webx.

I followed your procedure, and typed

cd /volume1/web
ln -s /volume1/webx webx
touch /volume1/webx/some_text_to_remind_me

It works beautifully via the command line, but I can't acces the webx folder via samba or filestation. I can see the symbolic link when I try FTP, but I can't follow it. I get an error message, telling me, that webx isn't accessible.

I tried the same with the default share "photo", just to make sure, that it is not just the web folder, that gives me trouble. It is the same story with the "photo" folder.

I think the problem is, that a user accessing a system default share is chrooted to that dir to enhance security, I read about it somewhere too. The only way to get around that right now is as root via command line and I am not giving that to my web users :-)

Any other suggestions?

Cheers,

abbe
abbe
Trainee
Trainee
 
Posts: 15
Joined: Fri May 22, 2009 7:19 am

Re: DSM 2.3 folder encryption - how does it work ?

Postby taylorhq » Thu Mar 25, 2010 5:24 pm

abbe wrote:I think the problem is, that a user accessing a system default share is chrooted to that dir to enhance security, I read about it somewhere too. The only way to get around that right now is as root via command line and I am not giving that to my web users :-)

Any other suggestions?

Cheers,

abbe


If your photo or web apps are running in a chroot jail, you'll need to mount the encrypted directory somewhere under the chrooted area, rather than via a symlink. Means doing it on the command line, rather than via the web control panel. Haven't got the command line to hand, but it will be similar to the one in my earlier post.

I'll try and run some tests and will report back if I have any luck. In the meantime, can you access the folder via the symlink through samba? I know that doesn't solve your problem, but I'd be interested to know if it works.
taylorhq
I'm New!
I'm New!
 
Posts: 5
Joined: Mon Mar 22, 2010 11:29 am

Re: DSM 2.3 folder encryption - how does it work ?

Postby abbe » Thu Mar 25, 2010 6:36 pm

Hi,

No, I can't via Samba either. The encrypted share shows up as a folder when I browse e.g. photo or web from the example above but when i try to acces the folder I get a message telling me, that the ressource is not available.
abbe
Trainee
Trainee
 
Posts: 15
Joined: Fri May 22, 2009 7:19 am

Re: DSM 2.3 folder encryption - how does it work ?

Postby vm.franklin » Fri Mar 26, 2010 3:45 am

@aurelieng
You need to click on "edit" to convert a folder to have encrypted abilities

@abbe
Using symbolic links can or will result in system stability errors, or data loss, as they do not work well over SMB, AFP, or File Station. They are designed to work at the command line level only.
**Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!**
Library ~ SynologyWiki ~ Synology FAQ ~ Compatibility Lists
Forum Links ~ Forum Policy ~ 3rd-party forums ~ Help us help you ~ Posting Images
Demo Links ~ DSM GUI ~ Photo Station
Downloads ~ Firmware Downloads ~ Beta Program
Support ~ Support Form ~ Submit Kernel Log ~ Synology eNews
vm.franklin
Synology Inc
Synology Inc
 
Posts: 374
Joined: Mon Oct 05, 2009 8:18 pm

Re: DSM 2.3 folder encryption - how does it work ?

Postby taylorhq » Mon Mar 29, 2010 9:41 am

vm.franklin wrote:Using symbolic links can or will result in system stability errors, or data loss, as they do not work well over SMB, AFP, or File Station. They are designed to work at the command line level only.


In theory you can tell Samba to follow symlinks. Specifying "follow symlinks=yes", "wide links=yes", "unix extensions=no" in /usr/syno/etc/smb.conf should work. But as vm.franklin says, it is not recommended. In any case, the Synology box will rebuild this file whenever you make changes to the shared folder settings, so you'd have to find a way of re-applying your changes.

In theory you can mount an encrypted folder in a subdirectory under an SMB share, by manually running the /usr/syno/sbin/mount.ecryptfs command. I managed to get this to work with a Windows client, but Mac clients give unpredictable write behaviour. The write succeeds, but reports an error. Something to do with the Synology custom extensions to Samba (SYNOEARename fails) which take care of indexing and thumbnails. Again, as vm.franklin says, it is not recommended.

So I would say, despite my suggestions earlier in this thread, that it is best to follow the Synology recipe for now. Keep your encrypted folders as separate shares and hope that Synology will add support for encrypted subdirectories in the future. For example, I'd like to be able to have a 'steve' samba share, with a 'finance' subdirectory that is encrypted. Encrypting the whole 'steve' share would put unnecessary load on the server. Having the finance directory as a separate share is a pain, but one that I can live with.

Of course, to maintain perspective here - support for the ecryptfs system is a great step forward and personally I find it much more convenient to centralise the encryption in the NAS and avoid the need for client-based solutions like Truecrypt. Well done Synology!
taylorhq
I'm New!
I'm New!
 
Posts: 5
Joined: Mon Mar 22, 2010 11:29 am

Re: DSM 2.3 folder encryption - how does it work ?

Postby abbe » Tue Mar 30, 2010 9:10 pm

I agree - this encryption feature rocks!

I am not sure if all the above applies to my initial problem - that the shares that the diskstation makes as default for the different services (web/photo) can't be encrypted right now.

I am only just familiar with linux and I don't know if my problem is connected with the sub-folder problem.

Does anyone now more about this?

@taylorhq

Thanks, you write great stuff.
abbe
Trainee
Trainee
 
Posts: 15
Joined: Fri May 22, 2009 7:19 am

Re: DSM 2.3 folder encryption - how does it work ?

Postby drawbridge » Thu Apr 15, 2010 7:15 am

Just a comment, not a criticism, because I think the DiskStation encryption feature is great (especially with hardware encryption on some models) but it should be noted that it does not protect data from network sniffing since encryption/decryption takes place at the DiskStation. Achieving data protection both on the device, AND end-to-end through the network, requires encryption/decryption at the client-side (e.g., using TrueCrypt or other such software-based tool). Of course, a TrueCrypt file container can be used with DiskStation already, but it might be interesting if DiskStation would support a TrueCrypt disk container. Although using client-side encryption/decryption would solve the network sniffing problem (if you care about that) it also defeats the value of hardware-based encryption.
drawbridge
I'm New!
I'm New!
 
Posts: 3
Joined: Sun Mar 28, 2010 11:15 pm

Re: DSM 2.3 folder encryption - how does it work ?

Postby PolliSoft » Wed May 05, 2010 4:14 pm

Hi,

I would like to convert an unencrypted Share vto an encrypted Share on one of my volumes. However, I get an "Operation failed because the available volume size is insufficient." even when the free speace is almost 60% of the volume. I have only one share on the volume so far. What can I do to encypt my Share?

/PolliSoft

Name Volume 2
Type RAID 0 (without data protection)
Status Normal
Capacity 3.58 TB
Used 1.5 TB
Available 2.08 TB
Disk Info
DS409 Disk 3 (1.82 TB), Disk 4 (1.82 TB)
PolliSoft
Trainee
Trainee
 
Posts: 10
Joined: Wed Apr 14, 2010 5:47 pm

Previous

Return to DiskStation Manager 2.3-1141/1144

Who is online

Users browsing this forum: No registered users and 0 guests