Archive

Posts Tagged ‘DNS323’

Hacking on the DNS-323 part 1: share names

June 2nd, 2008

The D-Link DNS-323 is a reasonably low-cost two-drive NAS (I just bought mine for £150) which allows you to set up a slice of RAIDed redundant disk storage on your network and access it from any number of different computers and devices. For example, you can back up a laptop to it and use it to stream media to a PS3. Compared to the option of leaving a PC on all the time, the DNS-323 is very small, very quiet, and consumes far less power.

It can do a lot more however. It’s actually a small solid state Linux PC, with 8Mb of flash RAM to store the OS, 64M of RAM, and a 500 Mhz ARM-based processor. As such, it is capable of quite a lot more. Even better, the nice blokes at Dlink have left a deliberate sort of back door into the system — via which you can inject extra features alongside the ones it has. This backdoor is known as funplug in the community that has grown up around the device.

An aside: this article is up to date as of 3rd June 2008, but the community moves quickly. More up to date software and instructions may be found at the community wiki.

First update the firmware

Go to the D-Link support site and get any newer firmware for the device that you can find there. Early firmware releases have improved stability and added features, so are definitely worth having, and you should do this bit first.

Better share names

Say (like me) you buy the device, bung in two hard disks, connect to its tidy but basic web interface, and tell it to make a RAID-1 (mirrored) array out of them. Give the device a name under Setup | Device (I called mine homer, which I mention as you will see it below) and immediately you can navigate (I’ll assume you have a Windows client) to \\homer\ and see the hard disk shared out there with the boring name “Volume_1″. If you tell it to format the hard disks separately you’ll also have a Volume_2, but that’s not that good — part of the point of one of these things is to get some redundancy around the disks so if you lose a disk you don’t lose any data. But I digress.

Volume_1 is a pretty crappy name but fortunately we can change it. First we need to connect to the DNS-323’s FTP server, and to do that, we need to add a new user account onto the DNS-323. In the web admin interface, select Advanced | Users/Groups. Add a new username and a password. Then select FTP Server, and fill in the first box like this:

  • Category: User
  • User: the username you created
  • Folder: root
  • Permission: Read/write

…then click Add.

Now you need an FTP client on your machine to connect to the DNS-323. If you don’t have one Filezilla is excellent and free. Fire it up and give it your DNS-323’s name, and the user name and password you created earlier. You should see something like this:

Connecting to the DNS-323 from an FTP client

Now, yours won’t look quite like that — you won’t have any folders below Volume_1. That’s why we’re doing this; you’re going to make the folders (in Filezilla, right-click and select Create Folder) for each of the shares that you want to appear. In the example above I’ve made shares for Audio, Video, Pictures, Documents, and so on.

Finally, we need to tell the DNS-323 to share these newly created folders.

Back in the admin interface, select Advanced | Network Access. Down at the bottom is the default “Volume_1″ share — you can delete that one with the little trash can icon next to it. Then you can create a bunch of new ones in the bit at the top of the page. Use settings like this:

  • Category: User
  • User: All accounts
  • Folder: click Browse and select one of the folders you made earlier
  • Permission: Read/Write
  • Leave other values at their default

Repeat for all the other folders you made. When you’re finished, reboot the DNS-323 (Tools | System) and you should end up with something like this:

A browser window on the DNS-323\'s shares, showing lots of different names

Personal ,