Installation of the Fonz fun_plug 0.5 for CH3SNAS, CH3MNAS, DNS-323 and many more

This tutorial is outdated and no longer maintained! Please check for the current tutorial here

German version of this tutorialThe Conceptronic CH3SNAS runs an embedded version of the Linux operating system (OS). This includes a kernel and various Linux programs (mainly servers). Because the CH3SNAS (and many others) runs on an ARM processor, the executable version of Linux and the programs are binaries generated for the ARM processor.

The Firmwares includes a very interesting bonus: the user can execute a script (file) named “fun_plug” when the OS is booted. Unlike all the other Linux software which is loaded when the NAS boots, this file is located on Volume_1 of the hard disk rather than within the flash memory. This means the user can easily and safely modify the file because the contents of the flash memory is not changed. If you delete the fun_plug file (see here for instructions), or replace your hard disk, the modification is gone.

Fun_plug allows the user to start additional programs and tools on the NAS. A Berlin-based developer named “Fonz” created a package called “ffp” (Fonz fun_plug), which includes the script and some extra software which can be invoked by fun_plug.

Installation of fun_plug is easy and takes about 6 steps (with two optional more if you want to do some sightseeing rather than just racing over the Autobahn). These steps should be performed carefully, as they depend on typed commands and running with “root” privileges.

Contents

Purpose, risks, and benefits

Fun_plug is essentially a technique to stepwise turn a NAS with fixed out-of-the-box functionality into an open Linux machine on which you can install additional software packages and, if you want, learn a bit about Linux.

Responsibility

This also implies that you are (temporarily or permanently) turning a stable turnkey system into a system that Conceptronic no longer supports. This is similar to buying a notebook with Microsoft software, and installing Linux on it. The shop where you bought it can no longer help you if you claim the audio no longer works. Although there is a Tutorial on how to disable and even remove fun_plug, and although the authors have tested their recipes, checked the wording and added warnings, these are advanced tools which can, if you experiment more than your own know-how can handle, give advanced problems.

Risks involved in all this are not so much damaging your hardware (shouldn’t be possible), but loss of reliability of the NAS (you bought a file server to reliably store files, didn’t you). This risk may be acceptable because the software was preintegrated and tested by competent people. But you yourself are, at the end of the day, responsible for deciding to use this.

Possibly a less obvious, but more real risk is that some kind of extensions to the NAS (e.g. adding a server) imply that you may decide to open your local network a bit to the outside world. For example, to allow others to view your holiday videos stored on the device. The out-of-the-box NAS can already have this problem (via the ftp server). The point here is that you are responsible for the security of your device and entire network. This site doesn’t even have tutorials on basic security issues like firewalls, etc. because these are all NAS independent and the tutorials would never be foolproof anyway. So when used wrongly, the NAS and firewall obviously do allow others to read more data than you intended. Or to delete your valuable data. Or to replace software by other software (chance is small, but the impact is high).

Conclusion: as the NAS is a powerful networked device, and as these tutorials can help you make it even more powerful, you are responsibility for having the basic understanding of networked security. Again, this also applies to an out-of-the-box NAS. But the more you mess with it, the more you need to apply some common sense. This is incidentally the reason why we provide some explanation on what you are doing in the tutorials, rather than just telling you what to type 😉

Benefits

The main reason why people go this route is to extend their NAS with servers such as BitTorrent clients and Web servers. Other typical uses are to add extensions which fix current limitations of the device (e.g. time accuracy, fan noise).

Technical synopsis

In a first step, we install a script named fun_plug that provides a hook to extend the boot process of Linux on the NAS. That hook was intentionally added by the vendor to enable this. But Conceptronic does not document or support all of this.

An initial set of packages (downloaded as a single compressed archive) gives you enough tools to get started and, if you are curious about the machine or its software, to carefully look around.

This set of tools gives you the ability to install even more software packages (typically servers) from trusted sources. These packages should obviously all have been compiled for the ARM-type processor in the CHS3SNAS and should have been tested on the device (or a very similar device) by a software expert.

Tested Devices

This Tutorial has been tested on various devices. Other devices may work, please leave a comment in case you have tested an additional device.

Steps for installing fun_plug

Download

Download the latest files from fonz’ fun_plug repository:

  • fun_plug (this is a text file, you probably have to right-click to save it to disk)
    Note: If you want to install fun_plug on the D-Link DNS-320/DNS-325/DNS-345, download this file: fun_plug
  • fun_plug.tgz (this is a 10 MByte “tarball” file, roughly the Linux counterpart of a Zip file)

Place a copy of both files in the topmost directory of Volume_1 of your NAS using Windows Explorer (see Screenshot of what shared network drives looks like in Explorer, or alternatively use Samba or FTP).

Option: view the fun_plug script

For fun, you may want to open the file fun_plug by left-clicking here. Alternatively you can open it in Windows’ Wordpad or, better, Notepad++ under Windows. Please be careful not to accidentally modify it. Avoid using Windows’ Notepad for viewing/editing Linux text files: Windows and Linux use different end-of-line conventions.

The script fun_plug is an ASCII file with commands which are executed by the Linux command interpreter (sh for “shell”).

Lines starting with “#” are comments (“#!/bin/sh” is a special case).

You might be able to decode that the program creates a log file called ffp.log (an ASCII file used here to capture the lines which start with “echo”).

Firstly, a number of named constants are defined for various file names and fragments of file names (the lines like “FFP_SOMETHING=...“).

You can see that Fonz developed it for a D-Link DNS-323 (rather than a Conceptronic CH3SNAS, but this doesn’t matter as Uli, PeterH and others have tested in on the CH3SNAS).

The command date will copy the current date and time to the log file.

Next, a first script setup.sh is run if it is found in the expected /mnt/HD_a2/.bootstrap/ folder. Initially it will not be found.

Then a new directory “ffp” is created (mkdir) and the fun_plug.tgz file is unpacked (tar) into that directory. This step is a bit more complex than normal due to a problem with the tar version supplied with the NAS. As a workaround tar is run twice (first the older version, and then the tar version which was untarred from fun_plug.tgz).

If all went well, the log file gets an extra “OK” string. And the tarball input file is deleted (rm). This obviously only happens once (the script skips the unpacking if the tarball file is not found using the if [condition]; commands fi construct).

The “chown” is about changing ownership for a program called busybox. And “chmod” is about changing access privileges.

Then, a script file /ffp/etc/fun_plug.init (“containing the ffp-scripts package”) is executed if it is detected.

Next, a script file /ffp/etc/fun_plug.local is executed if it is detected. It can be used to add your own startup commands: it will not be overwritten by package updates.

Finally, a script file /ffp/etc/rc is run if it exists.

Reboot

Reboot the NAS by holding down the power button 5 seconds or via the web interface (”Tools” -> ”System” -> ”Reboot”). This causes the NAS to go and find the file fun_plug on Volume_1 and execute it.


Option: view ffp.log

If you are interested, you will find that the fun_plug.tgz tarball has disapeared, and has been unpacked into the newly created ffp directory.

You will also find the ffp.log file created during execution of the fun_plug script and while executing some of its commands. It is longish (e.g. 47 KBytes) because the tar program generates a lot of warnings about repairing links (this only happens once). You can view the log file with WordPad or NotePad++.

From now on, whenever the NAS is rebooted and thus the fun_plug script is re-executed, the script appends about 15 extra text lines to the end of this log file. These contain the date/time of reboot and the status of various servers which you may enable in the future (see below). This appending of information to ffp.log gives you one way to determine whether fun_plug is really running: if you last reboot of the NAS is listed, fun_plug and any servers that it actives are running.

Note that the end of the initial log file already states that a server called telnetd is already running. We will use Telnet in the next step.

Connect via telnet

Telnet Session
Telnet Session
After rebooting, you need to connect to the NAS using a protocol called Telnet. Telnet allows you to “login” on a remote machine via a command line window.

Windows users can use an open-source telnet client called PuTTY. PuTTY is a self-contained program: the PuTTY.exe file can be stored wherever convenient and executed without any prior installation. In the PuTTY configuration screen you need to set the following before pressing Open:

  • Host name (or IP address): use the name of the share (e.g. CH3SNAS) or its IP address (the factory default is 192.168.0.20)
  • Select Connection type “Telnet” (which defaults to port 23)

Now you can press Open (PuTTY can save these settings under a default or name if you want, but you will likely be using ssh instead of telnet later on).

Linux users are “supposed to be” familiar with how to use telnet.

After connecting to the device, the first line telnet will show:

/ #

Now you are logged in. This command “prompt” is where you can type in commands. The prompt shows you are in the root directory. Note that Linux command lines are not very communicative. These Rambo-like social skills are generally attributed to Linux’ resource-deprived childhood.


Change root password

We proceed with updating /etc/shadow by using the program pwconv. It uses /etc/passwd to generate the necessary lines in the shadow-file.

pwconv

Now we need to change the password of user “root” to prevent unauthorized access.
Run the passwd command and enter a new password twice (note that Linux passwords are case-sensitive):

passwd

Next, activate the root-user which is disabled by default:

usermod -s /ffp/bin/sh root

And change the home-directory of root to a permanent one:

mkdir -p /ffp/home/root/
usermod -d /ffp/home/root/ root

Now check if everything went right using:

login

If this was successful, proceed to the next step, otherwise return to “passwd“.

Store the password in the NAS. This step is essential, otherwise your password will be cleared on the next reboot! Please check the following section before executing the command itself:

  • Note: For the D-Link DNS-343, you need a different store-passwd.sh script. See DNS-343 store-passwd.sh
  • Note: For the D-Link DNS-320/DNS-325/DNS-345, you need a different store-passwd.sh script. See this entry for further details

Now execute the command:

store-passwd.sh

This invokes another shell (.sh) script which copies the password-related files to data partitions in Flash memory (mtd1 and mtd2).

Activate SSH

Now activate SSH (secure shell: telnet has major security limitations). Such lines can best be copied line-by-line or together into PuTTY:

chmod a+x /ffp/start/sshd.sh
sh /ffp/start/sshd.sh start

First Connection with SSH
First Connection with SSH
Note that executing sshd.sh takes a while to execute and generates three pairs encryption keys for secure communication between the CH3SNAS and a remote client (computer). Each pair has a “fingerprint” for the public key and a corresponding graphical “randomart” image. The fingerprint for the RSA encryption algorithm will incidentally show up again in the next step.

As shown in one of the pictures, the first time you connect to this new (as far as ssh is concerned) machine, you will get a stern warning from ssh. This is because ssh expects to be connecting to this machine through an encrypted connection (now and likely in the future). But ssh wants to be sure that you are connecting to the intended machine rather than to an imposter (“man-in-the-middle”) and has no way of knowing if this is the case. Assuming that you are connecting to via your own (safe) LAN, you don’t need to worry whether the presented identification (public-key fingerprint) is the right one. If you need to connect over the internet (very unlikely) or are paranoid (unlikely), you can follow the confirmation procedure described in this website.

Note that this step associates the name and IP number of your NAS with this public key (this is stored on your computer). This means that during future ssh sessions to this machine the confirmation of the public key is done automatically.

Logging in using SSH

Now you can try to login using an ssh session as user root. This involves starting a second copy of PuttY.

Once you were logged in sucessfully, you can deactivate telnet using:

chmod -x /ffp/start/telnetd.sh

SSH Session
SSH Session
If the login was not successful, please check that you executed all necessary steps from above. If you still cannot login, please contact us in our forums.

Note that at this point telnet is actually still running, but it will stop working the next time you reboot the NAS. Once you have tested that the ssh server and the associated root password, and encryption keys are working fine you can reboot the NAS: from then on your NAS appliance has essentially been turned into a (somewhat) general purpose Linux computer which you can tweak via “normal” (sic) ssh command line sessions.

Now what?

Congratulations! With the last step, you’ve installed your fun_plug 🙂

You can now install additional packages or (carefully) look around using the command line!

Notes

Fun_plug and user accounts

Note that the initial execution of the fun_plug script creates a new usGerman version of this tutorialThe Conceptronic CH3SNAS runs an embedded version of the Linux operating system (OS). This includes a kernel and various Linux programs (mainly servers). Because the CH3SNAS (and many others) runs on an ARM processor, the executable version of Linux and the programs are binaries generated for the ARM processor.

The Firmwares includes a very interesting bonus: the user can execute a script (file) named “fun_plug” when the OS is booted. Unlike all the other Linux software which is loaded when the NAS boots, this file is located on Volume_1 of the hard disk rather than within the flash memory. This means the user can easily and safely modify the file because the contents of the flash memory is not changed. If you delete the fun_plug file (see here for instructions), or replace your hard disk, the modification is gone.

Fun_plug allows the user to start additional programs and tools on the NAS. A Berlin-based developer named “Fonz” created a package called “ffp” (Fonz fun_plug), which includes the script and some extra software which can be invoked by fun_plug.

Installation of fun_plug is easy and takes about 6 steps (with two optional more if you want to do some sightseeing rather than just racing over the Autobahn). These steps should be performed carefully, as they depend on typed commands and running with “root” privileges.

Contents

Purpose, risks, and benefits

Fun_plug is essentially a technique to stepwise turn a NAS with fixed out-of-the-box functionality into an open Linux machine on which you can install additional software packages and, if you want, learn a bit about Linux.

Responsibility

This also implies that you are (temporarily or permanently) turning a stable turnkey system into a system that Conceptronic no longer supports. This is similar to buying a notebook with Microsoft software, and installing Linux on it. The shop where you bought it can no longer help you if you claim the audio no longer works. Although there is a Tutorial on how to disable and even remove fun_plug, and although the authors have tested their recipes, checked the wording and added warnings, these are advanced tools which can, if you experiment more than your own know-how can handle, give advanced problems.

Risks involved in all this are not so much damaging your hardware (shouldn’t be possible), but loss of reliability of the NAS (you bought a file server to reliably store files, didn’t you). This risk may be acceptable because the software was preintegrated and tested by competent people. But you yourself are, at the end of the day, responsible for deciding to use this.

Possibly a less obvious, but more real risk is that some kind of extensions to the NAS (e.g. adding a server) imply that you may decide to open your local network a bit to the outside world. For example, to allow others to view your holiday videos stored on the device. The out-of-the-box NAS can already have this problem (via the ftp server). The point here is that you are responsible for the security of your device and entire network. This site doesn’t even have tutorials on basic security issues like firewalls, etc. because these are all NAS independent and the tutorials would never be foolproof anyway. So when used wrongly, the NAS and firewall obviously do allow others to read more data than you intended. Or to delete your valuable data. Or to replace software by other software (chance is small, but the impact is high).

Conclusion: as the NAS is a powerful networked device, and as these tutorials can help you make it even more powerful, you are responsibility for having the basic understanding of networked security. Again, this also applies to an out-of-the-box NAS. But the more you mess with it, the more you need to apply some common sense. This is incidentally the reason why we provide some explanation on what you are doing in the tutorials, rather than just telling you what to type 😉

Benefits

The main reason why people go this route is to extend their NAS with servers such as BitTorrent clients and Web servers. Other typical uses are to add extensions which fix current limitations of the device (e.g. time accuracy, fan noise).

Technical synopsis

In a first step, we install a script named fun_plug that provides a hook to extend the boot process of Linux on the NAS. That hook was intentionally added by the vendor to enable this. But Conceptronic does not document or support all of this.

An initial set of packages (downloaded as a single compressed archive) gives you enough tools to get started and, if you are curious about the machine or its software, to carefully look around.

This set of tools gives you the ability to install even more software packages (typically servers) from trusted sources. These packages should obviously all have been compiled for the ARM-type processor in the CHS3SNAS and should have been tested on the device (or a very similar device) by a software expert.

Tested Devices

This Tutorial has been tested on various devices. Other devices may work, please leave a comment in case you have tested an additional device.

Steps for installing fun_plug

Download

Download the latest files from fonz’ fun_plug repository:

  • fun_plug (this is a text file, you probably have to right-click to save it to disk)
    Note: If you want to install fun_plug on the D-Link DNS-320/DNS-325/DNS-345, download this file: fun_plug
  • fun_plug.tgz (this is a 10 MByte “tarball” file, roughly the Linux counterpart of a Zip file)

Place a copy of both files in the topmost directory of Volume_1 of your NAS using Windows Explorer (see Screenshot of what shared network drives looks like in Explorer, or alternatively use Samba or FTP).

Option: view the fun_plug script

For fun, you may want to open the file fun_plug by left-clicking here. Alternatively you can open it in Windows’ Wordpad or, better, Notepad++ under Windows. Please be careful not to accidentally modify it. Avoid using Windows’ Notepad for viewing/editing Linux text files: Windows and Linux use different end-of-line conventions.

The script fun_plug is an ASCII file with commands which are executed by the Linux command interpreter (sh for “shell”).

Lines starting with “#” are comments (“#!/bin/sh” is a special case).

You might be able to decode that the program creates a log file called ffp.log (an ASCII file used here to capture the lines which start with “echo”).

Firstly, a number of named constants are defined for various file names and fragments of file names (the lines like “FFP_SOMETHING=...“).

You can see that Fonz developed it for a D-Link DNS-323 (rather than a Conceptronic CH3SNAS, but this doesn’t matter as Uli, PeterH and others have tested in on the CH3SNAS).

The command date will copy the current date and time to the log file.

Next, a first script setup.sh is run if it is found in the expected /mnt/HD_a2/.bootstrap/ folder. Initially it will not be found.

Then a new directory “ffp” is created (mkdir) and the fun_plug.tgz file is unpacked (tar) into that directory. This step is a bit more complex than normal due to a problem with the tar version supplied with the NAS. As a workaround tar is run twice (first the older version, and then the tar version which was untarred from fun_plug.tgz).

If all went well, the log file gets an extra “OK” string. And the tarball input file is deleted (rm). This obviously only happens once (the script skips the unpacking if the tarball file is not found using the if [condition]; commands fi construct).

The “chown” is about changing ownership for a program called busybox. And “chmod” is about changing access privileges.

Then, a script file /ffp/etc/fun_plug.init (“containing the ffp-scripts package”) is executed if it is detected.

Next, a script file /ffp/etc/fun_plug.local is executed if it is detected. It can be used to add your own startup commands: it will not be overwritten by package updates.

Finally, a script file /ffp/etc/rc is run if it exists.

Reboot

Reboot the NAS by holding down the power button 5 seconds or via the web interface (”Tools” -> ”System” -> ”Reboot”). This causes the NAS to go and find the file fun_plug on Volume_1 and execute it.


Option: view ffp.log

If you are interested, you will find that the fun_plug.tgz tarball has disapeared, and has been unpacked into the newly created ffp directory.

You will also find the ffp.log file created during execution of the fun_plug script and while executing some of its commands. It is longish (e.g. 47 KBytes) because the tar program generates a lot of warnings about repairing links (this only happens once). You can view the log file with WordPad or NotePad++.

From now on, whenever the NAS is rebooted and thus the fun_plug script is re-executed, the script appends about 15 extra text lines to the end of this log file. These contain the date/time of reboot and the status of various servers which you may enable in the future (see below). This appending of information to ffp.log gives you one way to determine whether fun_plug is really running: if you last reboot of the NAS is listed, fun_plug and any servers that it actives are running.

Note that the end of the initial log file already states that a server called telnetd is already running. We will use Telnet in the next step.

Connect via telnet

Telnet Session
Telnet Session
After rebooting, you need to connect to the NAS using a protocol called Telnet. Telnet allows you to “login” on a remote machine via a command line window.

Windows users can use an open-source telnet client called PuTTY. PuTTY is a self-contained program: the PuTTY.exe file can be stored wherever convenient and executed without any prior installation. In the PuTTY configuration screen you need to set the following before pressing Open:

  • Host name (or IP address): use the name of the share (e.g. CH3SNAS) or its IP address (the factory default is 192.168.0.20)
  • Select Connection type “Telnet” (which defaults to port 23)

Now you can press Open (PuTTY can save these settings under a default or name if you want, but you will likely be using ssh instead of telnet later on).

Linux users are “supposed to be” familiar with how to use telnet.

After connecting to the device, the first line telnet will show:

/ #

Now you are logged in. This command “prompt” is where you can type in commands. The prompt shows you are in the root directory. Note that Linux command lines are not very communicative. These Rambo-like social skills are generally attributed to Linux’ resource-deprived childhood.


Change root password

We proceed with updating /etc/shadow by using the program pwconv. It uses /etc/passwd to generate the necessary lines in the shadow-file.

pwconv

Now we need to change the password of user “root” to prevent unauthorized access.
Run the passwd command and enter a new password twice (note that Linux passwords are case-sensitive):

passwd

Next, activate the root-user which is disabled by default:

usermod -s /ffp/bin/sh root

And change the home-directory of root to a permanent one:

mkdir -p /ffp/home/root/
usermod -d /ffp/home/root/ root

Now check if everything went right using:

login

If this was successful, proceed to the next step, otherwise return to “passwd“.

Store the password in the NAS. This step is essential, otherwise your password will be cleared on the next reboot! Please check the following section before executing the command itself:

  • Note: For the D-Link DNS-343, you need a different store-passwd.sh script. See DNS-343 store-passwd.sh
  • Note: For the D-Link DNS-320/DNS-325/DNS-345, you need a different store-passwd.sh script. See this entry for further details

Now execute the command:

store-passwd.sh

This invokes another shell (.sh) script which copies the password-related files to data partitions in Flash memory (mtd1 and mtd2).

Activate SSH

Now activate SSH (secure shell: telnet has major security limitations). Such lines can best be copied line-by-line or together into PuTTY:

chmod a+x /ffp/start/sshd.sh
sh /ffp/start/sshd.sh start

First Connection with SSH
First Connection with SSH
Note that executing sshd.sh takes a while to execute and generates three pairs encryption keys for secure communication between the CH3SNAS and a remote client (computer). Each pair has a “fingerprint” for the public key and a corresponding graphical “randomart” image. The fingerprint for the RSA encryption algorithm will incidentally show up again in the next step.

As shown in one of the pictures, the first time you connect to this new (as far as ssh is concerned) machine, you will get a stern warning from ssh. This is because ssh expects to be connecting to this machine through an encrypted connection (now and likely in the future). But ssh wants to be sure that you are connecting to the intended machine rather than to an imposter (“man-in-the-middle”) and has no way of knowing if this is the case. Assuming that you are connecting to via your own (safe) LAN, you don’t need to worry whether the presented identification (public-key fingerprint) is the right one. If you need to connect over the internet (very unlikely) or are paranoid (unlikely), you can follow the confirmation procedure described in this website.

Note that this step associates the name and IP number of your NAS with this public key (this is stored on your computer). This means that during future ssh sessions to this machine the confirmation of the public key is done automatically.

Logging in using SSH

Now you can try to login using an ssh session as user root. This involves starting a second copy of PuttY.

Once you were logged in sucessfully, you can deactivate telnet using:

chmod -x /ffp/start/telnetd.sh

SSH Session
SSH Session
If the login was not successful, please check that you executed all necessary steps from above. If you still cannot login, please contact us in our forums.

Note that at this point telnet is actually still running, but it will stop working the next time you reboot the NAS. Once you have tested that the ssh server and the associated root password, and encryption keys are working fine you can reboot the NAS: from then on your NAS appliance has essentially been turned into a (somewhat) general purpose Linux computer which you can tweak via “normal” (sic) ssh command line sessions.

Now what?

Congratulations! With the last step, you’ve installed your fun_plug 🙂

You can now install additional packages or (carefully) look around using the command line!

Notes

Fun_plug and user accounts

Note that the initial execution of the fun_plug script creates a new user group utmp.

The script that installs the ssh server creates a new user named sshd and adds the user to utmp. This user is for internal use only, and has no ability to login. It is standard procedure when installing OpenSSH, and believed to be safe.

On a NAS, user sshd also shows up as having read-only ftp access to Volume_1. Although it is doubtful that this user really can access ftp, this seems to be a bug and is being investigated.er group utmp.

The script that installs the ssh server creates a new user named sshd and adds the user to utmp. This user is for internal use only, and has no ability to login. It is standard procedure when installing OpenSSH, and believed to be safe.

On a NAS, user sshd also shows up as having read-only ftp access to Volume_1. Although it is doubtful that this user really can access ftp, this seems to be a bug and is being investigated.

271 thoughts on “Installation of the Fonz fun_plug 0.5 for CH3SNAS, CH3MNAS, DNS-323 and many more”

  1. Hi Uli,
    thanks for all the great posts on the DNS-323;

    i am a bit stumped trying to setup cron + rsync from my DNS-323 to a remote machine outside my network.

    what i want to do is create a user “andy” on the dns-323 and drop my private key in .ssh/. then i’d want to setup a cron job to rsync all my files on the nas to the remote machine.

    is this possible? or can it only be done as root user?

    1. Hello andy,

      try this Tutorial about Private/Public-Key-Authentication, i think this will help to solve your problem. It is possible 🙂

      -Uli

      1. Hi Uli,
        So i was able to get it all working. Thanks for your help.

        But now I’m a bit troubled. rsync stopped working and i went to ssh in to the NAS to read the logs and i couldn’t ssh in.

        tried telnet ( which i had disable a long time ago ) and it worked.
        so i checked /ffp/start and sure enough telnet had 755 permissions and ssh had 644 permissions.

        have you heard anyone else see this behavior? i did restart the machine a couple times, only because i was making changes to a cron execution.

        it appears the /ffp/etc/sshd_config file was overwritten to – i had added an AllowUser line to the file and now it is gone

        any ideas what could have caused this? not a huge deal because i could telnet in, but it makes me a bit nervous that this happened.

        andy

          1. no, no fun_plug.tgz anywhere on the disk i just ran find . -name fun_plug.tgz from “/”.

            weird. well, it hasn’t happened again. i’ll chalk it up to some bizarre action that i took without knowing what might happen?

    2. Thanks Uli,
      Just when I was ready to give up and decide I am too blond for all this work I got to your instructions.
      Super helpful.
      Cheers!

    3. Hi Uli,

      Thanks for your guides, it’s been really a great help fore newbies like me 🙂

      I have followed the instruction for fun_plug installation on a DNS-320L step by step, except for this:

      Note: For the D-Link DNS-320/DNS-325/DNS-345, you need a different store-passwd.sh script. See this entry for further details

      and now I seem to be having issues to ssh to my device with this message in telnet:

      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
      @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
      Permissions 0777 for ‘/ffp/etc/ssh/ssh_host_ecdsa_key’ are too open.
      It is required that your private key files are NOT accessible by others.
      This private key will be ignored.
      bad permissions: ignore key: /ffp/etc/ssh/ssh_host_ecdsa_key
      Could not load host key: /ffp/etc/ssh/ssh_host_ecdsa_key
      Disabling protocol version 2. Could not load host key

      I have managed to regenerate the key pair but now it says and it says :

      Your identification has been saved in /ffp/etc/ssh/ssh_host_ecdsa_key.
      Your public key has been saved in /ffp/etc/ssh/ssh_host_ecdsa_key.pub.

      Starting /ffp/sbin/sshd
      /ffp/var/lib/sshd must be owned by root and not group or world-writable.

      also when i check the sshd.sh status it is not runnig and I can not get it to in order to make an ssh connection via Putty.

      Can you please help me? Putty keeps saying Network Error:Connection refused and is driving me crazy.

      Thanks,
      Petar

      1. I do the same error 🙂 In this case should try this:

        chmod 0600 /ffp/etc/ssh/ssh_host_rsa_key
        chmod 0600 /ffp/etc/ssh/ssh_host_dsa_key
        chmod 0600 /ffp/etc/ssh/ssh_host_ecdsa_key
        chmod 0600 /ffp/var/lib/sshd

  2. Hi,

    This is a very useful instruction, thank you for your guide. I’m having some issue with my NAS. I followed your instruction enabling ssh and disabled telnet. However, there was some issue which prompt me to factory reset through the default web portal tool, and now I am not able to login through SSH anymore. It keeps on sayins Access Denied, which I just login few minutes ago prior to factory reset. Since I cannot telnet into it nor SSH into it, is there anyway to reset the root password?

    Thanks

    1. Hello Alex,

      it is possible to reenable telnet, just copy this File als fun_plug.tgz on Volume_1, reboot and there you are. This file only enables telnet and doesn’t do any harm to the existing fun_plug.

      Best Regards,
      Uli

      1. Hi thanks I lost telnet but for some reason had not set pass so to get telnet back with out looseing set up is good ty

  3. Hi Uli,

    Do you know if it’s possible to run a svn server on a CH3SNAS?

    I’ve got the complete fun_plug setup including the (additional) packages. Here I also found subversion. But how can I use this to turn my NAS into a svn server?

    Cheers,

    Erik

    1. Hi Erik,

      there is a start-file for svnserve available, so i think that should be possible.

      It’s probably as easy as editing /ffp/start/svnserve.sh for the correct repository (created with svnadmin in advance) and then running /ffp/start/svnserve.sh start

      Cheers,
      Uli

  4. This is a great guide.
    I wanted to get ssh going on my DNS-323 andnow it all works.
    Next, I’d like to be able to log in with no explicit password. To do that, I created
    /home/root/.ssh/ and put in my authorizied_keys file. After getting the file ownership
    and permissions just right (very fussy), it worked!

    But after rebooting, all the files I created are gone.
    What’s the proper way to do this thing?
    Can I modify a startup script somewhere to re-create this stuff?

      1. That’s a great solution. Thanks!

        While waiting for a reply, I got it working in a more cumbersome way:
        I added a few lines to fun_plug.init to create the /home/root/.ssh directory, set permissions, copy in authorized_keys, etc. But I like your method much better. “I shoudda thoughtta that!”

        Thanks again

    1. Hi Uli, wondering if you can help me out. After installing fun_plug I am unable to see my DNS-321 network share. I know samba is functional because I am able to map smb://nas-ip to the share just fine. However, prior to installing fun_plug I did not have to manually map the shares, I was able to see them under network drives from any computer in my network.

      While the manual mapping is a good workaround, it’s not good enough. I have many different types of machines on my network that need to access this drive, and not all of them allow me to manually map shares; some of them explicitly require the shares to show up on the network on their own. Also, I would like it to be easy for guests to see the shares instead of having to manually map to ip everytime someone wants to connect.

      I have doublechecked my workgroup name and tried messing around with smb.conf but I’m not very familiar with what I’m doing. As far as I can tell, everything is set up correctly, and indeed I had not changed anything in regards to samba (other than deleting and adding users), so the only thing I think may have caused a conflict is fun_plug.

      Has anyone else experienced this or know where I could start diagnosing the problem? When I search the web, I see lots of people with issues pertaining to mapping shares, or seeing them from a particular computer, etc. In my case the share functions via manual mapping, it just doesn’t seem to broadcast itself or think it’s in the correct workgroup, I’m not really sure. I have little to no experience with samba, but I am very technically inclined and not afraid to edit .conf files. Please help!

      1. Hi Sasha,

        i don’t have a explanation for that as my devices show up even with installed fun_plug. Maybe you could check if it’s really the fun_plug (just rename the file fun_plug to something else and reboot), maybe it was just a coincidence.

        Cheers,
        Uli

  5. HI, please excuse a dumb question, but will installing fun_plug disable the windows web GUI? I actually need both.. Thanks in advance.

  6. I need some help. I have 2 DNS-323 both running 1.09 and after a power failure yesterday they both lose their network access tables on boot up. It looks like fun_plug can help here.

    I downloaded the fun_plug file and the tarball, put them both in the top-level directory of volume_1 and reboot. NAS comes back up with no network access table and the 2 fun_plug files still in the directory. The top-level directory has other directories in it, so I don’t know if this is the problem (do the 2 fun_plug files need to be the OLNY files in root?).

    Cananyone help?

    Thanks

    1. Try putting the two files additionally on the other drive, maybe these are mixed up in the naming.

      Best Regards,
      Uli

      1. Not sure what you mean by ‘the other drive”. My ‘Volume_1″ has the 2 fun plug files and 9 subdirectories. Where else should the fun plug files go?

    1. This can also happen on earlier Versions. Sometimes this happens, which is why i recommend putting the two files on the other drive if nothing happens.

      Cheers,
      Uli

      1. Yep, I installed FW 2.0 and put the fun_plug files on Volume_1 and nothing happened but then I tried to copy them into Volume_2 and it worked.

        1. I only have a Volume_1 – no Volume_2 at all – but putting the files there does nothing…firmware 1.08. Permissions are correct and there’s no bogus extension on the fun_plug script file name. Well, this sucks.

          1. Hi Uli,

            Having the same problem as Adam. I’ve reset my DNS-320 to factory settings, copied the files to Volume_1 (only have 1 HDD) and rebooted. The tarball didn’t unpack.
            Can you help?

          2. No, I don’t think it would. Did you try moving the one drive to the other slot? Mine runs the ffp from my Volume_2

            Joe

      2. hello,

        If i made a raid, i’ve only volume_1 and unfortunately, it doesn’t work. I have FW2.0. I made executable fun_plug. Do you have an other idea ?

  7. Thanks for the guide! I need some help! I have SSH working on my DNS-323 using Port 22, but I’d like it to use Port 443.

    I changed the line in /ffp/etc/ssh/sshd_config from #Port 22 to Port 443. But the SSH service won’t start with that change. When I comment out #Port 443, it starts up fine… on port 22.

    Any idea why when I try to specify Port 443 in sshd_config, I can’t start the sshd service. However when I comment out #Port it runs fine?

  8. Hello,

    Can I run fun_plugg with FW2.0 an Raid0? When I put the two files to Volume_1 an restart the complete Share is gone an I have to reformat the device.

    Thanks for Help so far

    1. Yes, that works on my side, did you check the webinterface if you simply need to create the share again? Without formatting, i mean.

  9. Hi, very useful hints you have Uli!!
    I’m not a linux expert, and I having problems when trying to mount a network drive in the DNS 312. It would be really nice if you could describe to me the steps to mount a network drive. I’m trying to see my Time Capsule (ip 192.168.15.2) while sshing the DNS 321, so after a download from internet to the DNS 321 I can remotely start copying the new files to my Time Capsule. Any help will be appreciated!!
    Regards

  10. Hi,
    my router wont let me telnet to the default port, as a work around I added

    echo "Run telnet d `date`"
    /ffp/sbin/telnetd -l /ffp/bin/sh -p 8000

    to the end of fun_plug
    works like a charm 🙂

  11. Hi Uli,
    After a few tries, I’ve got ffp installed. I can telnet to my CH3HNAS, as root with no password first time, but when I try to SSH, it ask me a user and a password.

    I’ve change root password, but when i try to use usermod, I got a:

    “usermod: can’t resolve symbol ‘__ctype_b'”

    and can´t continue.

    So, SSH is up and running, but I can´t login.

    Telnet is also up, but can’t use usermod.

    I’m a little locked up. Could you gave me a hand?

    Thanks in advance.

      1. Hello Uli,

        The link you specified for CH3HNAS does not work.

        Can you help please?
        Thanks

  12. Pingback: D-Link DNS-325 2-Bay network storage ShareCenter review | Latest FireWall review and Computer security
  13. if I install FFP, would i be able to use at the same time either the new packages either the original ones of the nas?
    I.e., my nas has already a web server and a bittorrent client. If I install the FFP, will the activities of Bittorrent client and web services stop or they will still go on?
    I ask you as I’m trying to use the nas with a package that let me do backup on a ftp-server and email me if and when the public ip address of my connection changes.
    Can anyone help me? Thank you

    1. Hello fed,

      yes that would be possible. Everything can be run in parallel if you want.

      Cheers,
      Uli

  14. Greetings Uli,

    Great thanks for your website.
    Have you ever tried installing SANE on one of these devices? my idea is to scan images from a USB attached scanner to the storage.

    cheers,

    1. Hi Mad,

      not yet, but it is possible, you can find SANE in the optware repository. A tutorial on how to install Optware can be found here.

      Cheers,
      Uli

  15. Hi,

    Sorry for my english.
    Thanks for this post !
    But my dns-320 don’t want to execute the fun_plug at reboot.
    Could you help me ?
    Thanks

      1. There is only one disk inside …

        I haven’t found other solution. I hope you can hepl me more.

        Cheers

  16. I am preatty impressed. Still in shock. Its really amazing work.
    And now the question :), is there any manual of adding shares to samba in dns-323, cause add user through the DNS-323 web site dont work properly (eventhough I gave full rights to share it still ask for administrative password). So I would like add users and shares manually, but manual would be really helpful.

    1. And one more.
      I have changed manually
      /etc/passwd
      /etc/shadow
      /etc/group
      /etc/samba/smb.conf
      /etc/samba/smbpasswd
      What to do to change them forever? Cause after rebooting all changes are gone.

      1. /etc/passwd
        /etc/shadow
        /etc/group
        /etc/samba/smbpasswd

        solved: store-passwd.sh

        /etc/samba/smb.conf
        I have tried many howtos, but still cant find how to change whole file, I have only found how to change some part of configuration (by change two smb.default files on sda4 and sdb4.
        Any user manual would be nice.

        1. mount -t minix /dev/mtdblock0 /sys/mtd1
          mount -t minix /dev/mtdblock1 /sys/mtd2
          #EDIT both copies of smb.default
          sync
          umount /sys/mtd1 /sys/mtd2

  17. Thanks Uli,

    I still have my problem :
    My script won’t execute at boot.

    I tried a simple script after unpack the Fun_plug.tgz with 7-Zip:

    – /mnt/HD/HD_a2/bin/echo “test” > /mnt/HD/HD_a2/test.txt

    but i didn’t see any file on my Volume_1

    Thanks for your help
    I’m desperate!!!!

    1. Hi Micka1er,

      I have a similar problem than you; wherever I put fun_plug an fun_plug.tgz, it wasn´t executed at boot, neither on Hard Disk 1, Volume 1, or Volume 2.

      I solved it doing this:

      – Reset to Factory Default
      – Delete all partitions on disk
      – Format Disk.
      – Reboot
      – Set NFS for Public folder.
      – Copy the 2 fun_plug files in Public folder
      – Reboot. Now it executes the script and create the whole tree of ffp.

      By the way, I got a CH3HNAS, and in the fun_plug.tgz provided by Conceptronic (version 1.0), is not included the ssh. The BusyBox (for telnet) is 1.5.0 version, and pwconv, usermod store-passwd.sh, and many others commands are not recognized.

      Could somebody help in how to install SSH in a CH3HNAS using BusyBox with funplug 1.0?

      Thanks in advance,

      Jesus

      1. Hi Jesus,

        Please what do you mean about : “set NFS for public folder” ?

        Thanks

  18. Hi Micka1er,

    Go to Service Tab; there you have NFS on the left side.

    Set NFS Service on “Enable”, and current share folder on : “/home/Public”.
    check on “NFS Share Folder” the Public folder.

    1. Thanks for help !!

      But I have an other question :

      Why I lost all my config when I reboot ? When I reboot the NAS ssh refuse the acces to me …

      Thanks again

      1. Hi Micka1er,

        As I said before, the fun_plug.tgz provided by Conceptronic (version 1.0),
        NOT include the ssh.

        The BusyBox (for telnet) is 1.5.0 version, and pwconv, usermod store-passwd.sh, and many others commands are not recognized.

        Could somebody help in how to install SSH in a CH3HNAS using BusyBox with funplug 1.0?

        Thanks in advance,

        Jesus

  19. Can anyone help with installing fun_plug on DNS-320 with v2 firmware? I followed the instructions and the ffp folder was created. When I tried to telnet, I get a connection refused.

    This is my ffp.log
    * Installing /mnt/HD/HD_a2/fun_plug.tgz …
    * OK
    * Running /ffp/etc/fun_plug.init …
    * Running /ffp/etc/rc …
    * /ffp/start/syslogd.sh inactive
    * /ffp/start/SERVERS.sh inactive
    * /ffp/start/portmap.sh inactive
    * /ffp/start/unfsd.sh inactive
    * /ffp/start/nfsd.sh inactive
    * /ffp/start/ntpd.sh inactive
    * /ffp/start/LOGIN.sh inactive
    * /ffp/start/telnetd.sh …
    Starting /ffp/sbin/telnetd -l /ffp/bin/sh
    * /ffp/start/sshd.sh inactive
    * /ffp/start/rsyncd.sh inactive
    * /ffp/start/mediatomb.sh inactive
    * /ffp/start/kickwebs.sh inactive
    * /ffp/start/lighttpd.sh inactive
    * /ffp/start/inetd.sh inactive
    * OK

    1. Hello dino,

      The installation was successful according to the logfile. Did you choose the right IP-Address for connecting to the NAS? Is the Logfile the current one and not from an older Installation?

      Cheers,
      Uli

      1. Hi Uli.

        Thanks for this guide. I rebooted the dns 320 and finally telnet is working!

  20. Hi Uli, thanks for this useful piece of software. I just loaded ffp on a Sarotech Wizplat NAS-20, and it’s all working fine. I’ve just started to configure and use mediatomb. So far so good. Thank you !!

  21. Hi,

    Finaly, I used a Ubuntu LiveCD to download the funplug files. I put them on the volume-1 (with ubuntu) and it worked fine. I’m on the configuration of mediatomb now (it’s a bit hard for me). Thanks to everybody helped me !!

  22. Thanks Uli for the guide, great work!

    I’m trying to get sshd working properly on a DNS-343 with a RAID 5 (4x1TB disks). I tried to follow your guide, but I noticed some issues with the store-passwd.sh script for the DNS-343. Both scripts assume the system has 2 HD (mounted on HD_a4 and HD_b4), but I have 4 (HD_[a-d]4) so I changed the line:
    for d in /sys/mtd1 /sys/mtd2 /mnt/HD_a4/.systemfile/AccountFile /mnt/HD_b4/.systemfile/AccountFile; do
    to:
    for d in /sys/mtd1 /sys/mtd2 /mnt/HD_?4/.systemfile/AccountFile; do

    After that, the passwords are not reset after reboot.

    Now the sshd issue. I have sshd enabled, but this is what the log says:

    * /ffp/start/telnetd.sh …
    Starting /ffp/sbin/telnetd -l /ffp/bin/sh
    * /ffp/start/sshd.sh …
    WARNING: sshd: Already running

    So telnet is started fine, but this NAS comes with an ssh service I cannot disable. If I then telnet in, I can stop the sshd daemon and start yours fine.

    How can I fix this behaviour? Could I just modify the start/sshd.sh script to stop the service before it tries to start? I’d also like to do the same with rsync.

    Thanks again!

    Pedro.

  23. My SSH has broken.. what shall do?
    I reactivated telnet, and tried to start over but it wont start any way? se my log.
    * /ffp/start/sshd.sh ...
    Starting /ffp/sbin/sshd
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Permissions 0755 for '/ffp/etc/ssh/ssh_host_rsa_key' are too open.
    It is recommended that your private key files are NOT accessible by others.
    This private key will be ignored.
    bad permissions: ignore key: /ffp/etc/ssh/ssh_host_rsa_key
    Could not load host key: /ffp/etc/ssh/ssh_host_rsa_key
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Permissions 0755 for '/ffp/etc/ssh/ssh_host_dsa_key' are too open.
    It is recommended that your private key files are NOT accessible by others.
    This private key will be ignored.
    bad permissions: ignore key: /ffp/etc/ssh/ssh_host_dsa_key
    Could not load host key: /ffp/etc/ssh/ssh_host_dsa_key
    Disabling protocol version 2. Could not load host key
    sshd: no hostkeys available -- exiting.
    * /ffp/start/rsyncd.sh ...
    /ffp/etc/rsyncd.conf: Required file not found or not readable
    * /ffp/start/optware.sh ...
    Running: mkdir -p /opt
    Running: mount --bind /ffp/opt/optware /opt
    mv: cannot overwrite directory with non-directory
    mv: cannot overwrite directory with non-directory

    1. Okey then..
      I solved this one my self. I hade to clean up my old ssh_host_keys and then create new ones.

      Remove old files..
      rm /ffp/etc/ssh/ssh_host_*

      and then create new..
      sh /ffp/start/sshd.sh start

      It’s not easy when your are a linux noob like me and takes very much google time.. 😐
      But how’s searching is finding.. 🙂

  24. This article was hugely useful, and very straightforward. My patience is low with such things, and I could just go through and whack in the commands and voila – all done!

    Thanks again.

  25. Hi,

    I made everything (theoretically) that this topic was written (DNS-320). After reboot, root password is forgotten and the ssh doesn’t work. What is the problem? There are two errors int the ffp.log:

    **** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
    Mon Jun 27 22:29:22 CEST 2011
    ln -snf /mnt/HD/HD_a2/ffp /ffp
    * Running /ffp/etc/fun_plug.init …
    * Running /ffp/etc/fun_plug.local …
    * Running /ffp/etc/rc …
    * /ffp/start/syslogd.sh inactive
    * /ffp/start/SERVERS.sh inactive
    * /ffp/start/portmap.sh inactive
    * /ffp/start/unfsd.sh inactive
    * /ffp/start/nfsd.sh inactive
    * /ffp/start/ntpd.sh inactive
    * /ffp/start/LOGIN.sh inactive
    * /ffp/start/telnetd.sh …
    Starting /ffp/sbin/telnetd -l /ffp/bin/sh
    * /ffp/start/sshd.sh …
    WARNING: sshd: Already running
    * /ffp/start/rsyncd.sh inactive
    * /ffp/start/optware.sh …
    Running: mkdir -p /opt
    Running: mount –bind /ffp/opt/optware /opt
    mv: cannot overwrite directory with non-directory
    mv: cannot overwrite directory with non-directory
    * /ffp/start/minidlna.sh …
    * /ffp/start/mediatomb.sh inactive
    * /ffp/start/kickwebs.sh inactive
    * /ffp/start/lighttpd.sh inactive
    * /ffp/start/inetd.sh inactive
    * OK

  26. So I had everything running perfectly for months – my only reason for going through all of this was to install Twonky since the stock media server is rubbish.

    A couple of days ago the system crashed, no media server, no access to the admin page. I rebooted the unit and now the Twonky daemon isnt running and I cant SSH into the device.

    Tried to remove and reinstall the fun_plug but with no luck… Help…??

    Please…

  27. Hey there,

    First of all: Great job Uli!

    Though, I’ve got a problem with the DNS-320 and Firmware 2.0.
    After logging in with SSH as root, setting the new password, executing the store-passwd.sh and reboot, my password for root doesn’t work?!
    Before rebooting, it worked perfectly.

    Seems, like it is getting lost on startup 🙁

    Do you have an idea?
    Bye,
    Oliver

    1. I have the same issue, I even downloaded the latest store-passwd.sh, but it still loses the changed root password.

      Any Ideas anyone?

  28. Hi,

    I went through this installation on my 1 day old NAS-320 today. Everything went according to plan until I rebooted after the final step. Volume_1 is now showing as degraded. Is this a side effect of the fun plug installation or did I get something wrong?

    The disks are brand new WD 2TB drives in RAID 1 config.

    Regards,
    Jon.

  29. I have a DNS-321 fw 1.03. I put the two files mentioned in Volume_1’s root and rebooted the NAS. The folder ffp was created and a log file was created, but the log file shows the following and Telnet doesn’t work. I presume because everything that ffp is trying to do isn’t found as the log files states. Can anyone tell me what I might be doing wrong?

    **** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
    Tue Jul 26 14:46:46 CDT 2011
    ln -snf /mnt/HD_a2/ffp /ffp
    * Installing /mnt/HD_a2/fun_plug.tgz …
    tar: WARNING: Converting hard link to symlink
    tar: WARNING: Converting hard link to symlink
    tar: WARNING: Converting hard link to symlink
    tar: WARNING: Converting hard link to symlink
    tar: WARNING: Converting hard link to symlink
    tar: WARNING: Converting hard link to symlink
    tar: WARNING: Converting hard link to symlink
    tar: WARNING: Converting hard link to symlink
    tar: WARNING: Converting hard link to symlink
    tar: WARNING: Converting hard link to symlink
    tar: WARNING: Converting hard link to symlink
    tar: WARNING: Converting hard link to symlink
    tar: WARNING: Converting hard link to symlink
    tar: WARNING: Converting hard link to symlink
    tar: Invalid tar magic
    * Running /ffp/etc/fun_plug.init …
    /mnt/HD_a2/fun_plug: /ffp/etc/fun_plug.init: No such file or directory
    * Running /ffp/etc/rc …
    /mnt/HD_a2/fun_plug: /ffp/etc/rc: No such file or directory
    * OK
    **** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
    Tue Jul 26 15:16:41 CDT 2011
    ln -snf /mnt/HD_a2/ffp /ffp
    * Running /ffp/etc/fun_plug.init …
    /mnt/HD_a2/fun_plug: /ffp/etc/fun_plug.init: No such file or directory
    * Running /ffp/etc/rc …
    /mnt/HD_a2/fun_plug: /ffp/etc/rc: No such file or directory
    * OK
    **** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
    Tue Jul 26 15:39:14 CDT 2011
    ln -snf /mnt/HD_a2/ffp /ffp
    * Running /ffp/etc/fun_plug.init …
    /mnt/HD_a2/fun_plug: /ffp/etc/fun_plug.init: No such file or directory
    * Running /ffp/etc/rc …
    /mnt/HD_a2/fun_plug: /ffp/etc/rc: No such file or directory
    * OK
    **** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
    Tue Jul 26 15:56:07 CDT 2011
    ln -snf /mnt/HD_a2/ffp /ffp
    * Running /ffp/etc/fun_plug.init …
    /mnt/HD_a2/fun_plug: /ffp/etc/fun_plug.init: No such file or directory
    * Running /ffp/etc/rc …
    /mnt/HD_a2/fun_plug: /ffp/etc/rc: No such file or directory
    * OK

    Is HD_a2 my Volume_1 or even my Volume_2?

    Thanks!

    1. Hey Mark- I know my comment is a little late in getting to you, but did you ever figure out your issue with getting fun_plug to work on your DNS-321?

      I have a 321 with fun_plug that I had to fiddle with to get it to install correctly. Let me know if you still need any help 🙂

      1. I too am having this issue. What were some things that you had to do in order to get it working? I really would like to use this to host a website (just a small one, while I learn the logistics of hosting and website development). Thank you, and sorry too that this is posted a year after your comment.

  30. Please add the NAS-321 to the list of confirmed working devices.

    You should also add that fun_plug needs to be ‘executable’ in order to be run on boot.

  31. After installing funplug, I’ve lost the ability to manage the nas (DNS-323) using the native web page. It sees it, but the page never loads. Anybody ever see this problem?

  32. Hi there, I have a small question. Recently I installed ch3hnas in a linux (openSUSE) homenetwork. Everything works as aspected. But I like to use nfs for file-system, but in nfs I can only select one dir Public or Media. With samba I see both dirs. How can I change this?
    Thanks in advance, Ed

  33. Hello,

    Like other people recently, I have followed these directions on my DNS-320 with 2.0 firmware. Upon reboot after the last step and logging in with SSH, my password no longer works.

    Also, I cannot re-log into Telnet to repeat the steps.

    Anyone have any clues? Please keep in mind my Linux knowledge is extremely minimal.

    Thanks

    1. Hi Dan,

      yes that is normal. You lost the user-stuff as the firmware wipes everything. You need to reactivate telnet (just put this file to the share where the file fun_plug lies, reboot once) and then execute the hole user-stuff using telnet:

      • passwd
      • chsh -s /ffp/bin/sh root
      • pwck
      • grpck
      • login
      • store-passwd.sh

      Done.
      Cheers,
      Uli

  34. I got a strange issue with rsync for more than several months. After trying all kinds of solutions I desperatly seeking for some help.
    My situation:
    Two CH3SNAS with DNS-323 1.09 fw on it
    Both funplugged and at this moment rsync 3.0.9 on both boxes.

    December last year I configured rsync for backing up my data from box1 to box2 and some config files from box2 to box 1.
    I’ve tested the backup and restore process deliberatly. All worked fine foir several months.

    Two months ago I noticed that my rsync hadn’t run for two months (at that time).
    On box1 rsync runs in daemon mode. When on box2 a rsync is initiated it immediatly halts.
    When I delete my backupfolder on box2 I noticed in verbose mode that only the first file copied. After that the process remains active but nothing happens.
    Process halts at ‘receiving incremental file list’ and no datatraffic at all.

    When I start an rsync with an external rsync daemon (eg UlI’s site: /ffp/bin/rsync -av –delete ffp.wolf-u.li::ffp/additional .)
    rsync works perfectly, on both boxes.

    Rysnc process and daemon runs as root. All directories and files do have root as owner.
    Rsync processes authenticate with rsa public keys.

    Is there anyone who can guide me to a solution as it took me last months an enormous amounth of time. Thanks in advance.

    1. Rsync daemon on box1:
      rsync --daemon --config=/mnt/HD_a2/ffp/etc/rsyncd.conf

      listing rsyncd.conf:
      uid = root
      gid = root
      port = 5000
      strict modes = false
      [vol1]
      path = /mnt/HD_a2
      read only = no
      [vol2]
      path = /mnt/HD_b2
      read only = no

      Rsync from box1 to box2 (starts on box 2):
      –-port=5000 –-force –-delete –avP 10.0.1.4::vol1/Mediaserver/Photos /mnt/HD_a2/backups

      1. I managed to solve this behaviour. The issue was the MTU size. For some odd reason jumbo frames are no longer working with this configuration. After swithching jumbo frame support off rsync functions like it should intended.

  35. Hi, my name is Jose, I am from Spain so please be patient with my English, I will try to do my best.
    I have a DNS-323, I just started to install ‘fonz fun_plug’ and as fas as I know everything has gone well, I didn’t get any error.
    Right know I have finished to install the lighttpd and that’s why I am writting this message.
    It is supposed that my ports has changed from 80 to 81 (I mean to connect the standard configuration screen) and I will enjoy my new web server on 80. But nothing at all has happened in that way.
    I still have the configuration screen in 192.168.1.11 as always (wich is my local ip for the NAS), even I have rebooted the system.
    Althought, I created the three files; index, page1 and page2.html as the manual indicates me and located them into /www I can not reach them, of course.
    Does anybody know what was wrong? I had read very carefully all the steps many times and I think I have not forgotten any of them.
    It is like ‘sh /ffp/start/kickwebs.sh’ were not doing its job.
    Thanks for your help.
    I will be looking for an answer.
    Kind regards.
    Jose.

  36. Hi,

    I would appreciate your assistance on a problem I have.

    I have installed the fun_plug on my DNS320 and updated to Twonky using the two tutorials which were perfect (many thanks). The issue I have is that when I connect (ssh) and provide “root” as the user, I am logged in with out authenticating. This nas needs to be externally accessible so I need to enable this. I have a password set for root and can “login” with the user/password successfully.
    I tried to set the root password again and got this error.
    Multiple entries named ‘root’ in /etc/shadow. Please fix this with pwck or grpck.
    Any ideas what I have done wrong?

    Thanks in advance Matt

  37. Hi all,

    I’m having a strange issue on dns-320(FW 2.01Beta). After installing fun_plug the read speed significally drops. With fun_plug installed the read speed (transmission client pasued) is about 8 MB/sec. Without the script it’s 34-35MB/sec.
    Anyone having the same problem? Any advice is appreciated.
    Thanks,

    Vanyo

  38. Hi all,
    I’m got the NAS dlink 320, and was wondering the best way to go about installing ffp on it?

    Currently the NAS-320 is still in the box, should I update it to the latest dlink firmware provided, and then install ffp on it?
    or should I just run it as is, and the put ffp on it, then set up all my configuration afterwards (then update the dlink firmware)?

    Just wanted to know which was most recommended?

    Thanks!

  39. Hi:

    I have been trying to install fun_plug and I cannot get past the first step. The NAS is a DNS-320 and I am trying to use the script that has been modified for this device. I have copied the fun_plug files to the Volume_1 folder and rebooted. The files are still in the same place and I cannot telnet into the box. I’ve made sure that the script hasn’t been corrupted when I copied it over. It just looks like the NAS is not picking up the script after the reboot.

    Any help would be appreciated!

    1. I’ve heard some people say that putting the file to volumn_2 instead of volumn 1 sometimes fixes the problem after a reboot.
      Cheers

      1. I have set this up with a Raid 1 configuration so that drive 0 is mirrored to drive 1. In this config there is no Volume_2. Any other ideas?

        Thanks!

    2. I’ve been experimenting with this script by inserting “touch” statements to write a file when the script finishes. It looks like the problem starts at the “if” blocks. When they are added into the script, the script does not finish. I don’t have a clue as to what the problem is, but it certainly frustrating.

        1. Not sure what the operating system would have to do with it, but Windows 7. I saved the script with Firefox, but have since recreated it with Ultra Edit.

          1. **After writing this entry, I realized that you are actually getting the script to run, but not successfully. Please disregard the following for your problem, but I thought the information might still be useful to others.

            Does this site allow for posting of script files? If it does, I’d be willing to take a look at what you have so far. I’m no script genius, but sometimes another set of eyes can help.

          2. The script is from shadowandy’s web site where he posted the modified scripts for the 320. It is here: Shadowandy’s Link. I don’t think there is a way to post the actual script. I’ll look and see if I can make it available by an FTP so that you can look at it. Thanks for the help.

  40. Hi,Script won’t run. I putted the two files in the Volume_1 folder, rebooted the NAS but nothing happens.
    Plz help me.
    Best regards.

  41. The reason I asked is that when using Ubuntu, a downloaded shell script has its default permissions set as “display.” The user is required to go to Properties -> Permissions -> “Allow executing file as program” If this permission change isn’t done, the fun_plug script won’t launch.

    I don’t know if this behavior is similar in other Linux-based distros, but I just thought I’d share.

  42. You guys are really tops.

    I followed the simple steps to install the Funz stuff, rebooted and…nothing.
    “Oct 20 22:16:50 FTP server: /Volume_1/fun_plug.tgz uploaded (10826672 bytes, 5854.49KB/sec)
    Oct 20 22:16:44 FTP server: /Volume_1/fun_plug uploaded (1778 bytes, 61.75KB/sec)

    I tried to telnet to the box and nothing.

    I have a DNS-320 with the 2.01 FW.

    What am I doing wrong please?

  43. Very nice, thanks. I followed your howto and installed fun_plug on my DNS-230 (fw 2.0), with sshd + public keys auth working, and all packages installed, as suggested. I have NFS mount working (hint if you’re stuck: take a look at the /etc/exports file on the NAS) and rsync-ing my data without issues.

    I have some questions though:
    – in spite of connecting the workstation and NAS via 1G ethernet switch, the transfer speeds are quite low (about 15M/sec write to NAS, 30M/sec read), does anybody have any tuning tips? Is there something to be done on the NAS side (NFS server)?
    root@dlink-A6A346:/mnt/HD/HD_a2/ffp/home/root# dmesg | grep -i duplex
    egiga0: link up, full duplex, speed 1 Gbps
    (same on the workstation)

    $ time dd if=/dev/zero of=./test.data bs=4096 count=262144
    262144+0 records in
    262144+0 records out
    1073741824 bytes (1.1 GB) copied, 71.7768 seconds, 15.0 MB/s

    real 1m11.867s
    user 0m0.108s
    sys 0m2.504s

    $ time dd if=./test.data of=/dev/null bs=4096
    262144+0 records in
    262144+0 records out
    1073741824 bytes (1.1 GB) copied, 36.0218 seconds, 29.8 MB/s

    real 0m36.028s
    user 0m0.167s
    sys 0m5.670s

    (very similar with bs=8192)
    NFS mount options are: rw,noatime,hard,intr,async,rsize=8192,wsize=8192,timeo=14

    – how to make lastlog work? It shows nothing at all:
    root@dlink-A6A346:/mnt/HD/HD_a2/ffp/home/root# last
    USER TTY HOST LOGIN TIME
    – how to make syslog work? In particular, I’m interested in sshd logging via syslog, into local log file on the NAS, and to the workstation (when it’s up) – where can I find a howto/config information?

  44. Hi,

    I try to execute fun plug on my share Center DNS 320 with 2 disks in 2.0 firmware.
    I put this script on volume 1 and volume 2 with option “Allow executing file as program”.
    Nothing happens. Have you an idea to help me ?

  45. Hey, just a remark. Would of been good for you to write that the default “store_passwd.sh” does not work on a DNS-325. I just guessed it would be the same as the DNS-320 from looking at what each script did…

    “Note: For the D-Link DNS-320, you need a different store-passwd.sh script. See DNS-320 store-passwd.sh” ….

    Hope this was okay. Seems to work good.

    Pat

  46. Hello,
    Since the beginning, I tried a whole heap of possible files including the one that you have just given myself, solely for the 320, with multiple reboots and to make what one wants, nothing to make, he/it doesn’t always initialize, not of creation of index, NOTHING!! There is something therefore on this NAS or Dlink locked the function, it is not otherwise possible! On every forum where I went, same English, they have all same problems, and some say that they arrived there, but without specified what was the NAS that they had! I think that the version 2.0 of the firmware locked the function fun_plug.
    Yet I copy the files well in the good path, volume_1 fichier1 and fichier2, me reboot, but nothing, the index is not therefore to create, the done not script, there is qq thing that people omit to say well. Either you have some versions previous firmwares and there I understand better, either the paths are not the same and it is necessary to modify qq thing, but there I don’t know how to make it!!!
    Often with this kind of infos, it is that to copy them / to glue goes all azimuth and that the mistakes 1 are multiplied by an indefinite number, that it is the problem of the net and forums, where some do copy only / to glue some information without verifying them beforehand and the same mistakes result from it!!
    I think that the file is valid that for the 323 and 325 and that for the rest the function is locked. It is not not for anything that I heard to say that he/it foresees a fun_plug version 0.6 or more to remedy some problems bound to the 320.
    If I could find a previous version of the firmware, I am sure that it would function.
    Thank you for your help, unfortunately that doesn’t work!!
    PS: I even tried to create the file fun_plug in ftp on the NAS to correct the Asci problems possibly or other, without results, as well as with everything that drags on the forums of the net!!

    1. Hi,

      I had the same problem with you, but i resolve it.
      i’d write the 2 files on Volume1, but after reboot, nothing !

      After many hours, i finnaly resolve this probleme :

      Before, i’d :
      – reset factory parameters
      – re-build RAID 1 option (with HD format)
      – add NFS access on volume 1 (Management > Account management > Network share > Modify on Volume_1 > and add NFS support (check on “root squash” and “write” option)

      But, finnaly, have another problem : my OS ! i’m on macintosh, and the “fun_plug” file is systematicaly write with “.sh” extension.
      Even if i rename file on Volume1, can’t obtain result after reboot. exactly same probleme with FTP client on MacOSx

      I finnaly resolve problem with reset another one my DNS320 (factory parameter / reset RAID / …), and write the 2 files with another OS (an winXP) via explorer : that’s OK !

      i have buy my DNS320 since a few day (with 2.0 firmware); it seems havent incompatbility or firmware locked ^^

      Hopefully my comment help you 🙂

      Regards

      JullD

  47. Hi,

    I’m looking for a better (More configurable) Bittorrent client for my D-link DNS-320.

    I have read comments online before buying the 320 that after installing fun_plugs they were able to install a much better bittorrent client but I can’t seem to find one.

    The main issue I have with the pre-installed client is that it seems to have settings enabled that Bitsoup (My main downloads site) don’t like, any torrents I’ve tried from there on my 320 don’t download but when I try them on my PC in uTorrent they download just fine.

    Can anyone help me find a solution or a better client?

    There’s a beer in it for the best solution 🙂

    JKay6969

      1. Thanks hifi,

        I have downloaded it but I don’t know how to install it, sorry I’m a bit of a noob 🙂

        I have installed Fonz_Fun_Plugs and have root access.

        The install instructions are for the DNS-323, will they work for the DNS-320 too?

        Regards

        JKay6969

        1. I have installed Fun_Plug on my DNS-320 and have enabled SSH, root and password, I have ran some scripts that downloaded and updated a load of…erm…stuff?!? 🙂 lol

          I think?!? I have installed Transmission v2.42.1 and also curl v7.18.1 but I am clueless as to how to run transmission. I have installed transmission remote on the PC but I can’t seem to get it to connect to transmission on the DNS-320.

          I have tried setting the port to 127.0.0.1 or the port my DNS-320 uses but it is not able to connect… 🙁

          Can someone please help me as I am WAY out of my depth here and I really like the idea of transmission.

          Thanks in advance

          JKay6969

  48. Hi,

    I have a problem, I always have to restart my DNS-320 twice until my twonky starts. Can you help me? What can be the problem?
    I’m not an advance user.
    Thx

    **** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
    Sun Nov 6 08:31:56 CET 2011
    ln -snf /mnt/HD/HD_a2/ffp /ffp
    * Running /ffp/etc/fun_plug.init …
    * Running /ffp/etc/rc …
    * /ffp/start/syslogd.sh inactive
    * /ffp/start/SERVERS.sh inactive
    * /ffp/start/portmap.sh inactive
    * /ffp/start/unfsd.sh inactive
    * /ffp/start/nfsd.sh inactive
    * /ffp/start/ntpd.sh inactive
    * /ffp/start/LOGIN.sh inactive
    * /ffp/start/twonky.sh …
    * /ffp/start/telnetd.sh inactive
    * /ffp/start/sshd.sh …
    WARNING: sshd: Already running
    * /ffp/start/rsyncd.sh inactive
    * /ffp/start/mediatomb.sh inactive
    * /ffp/start/kickwebs.sh inactive
    * /ffp/start/lighttpd.sh inactive
    * /ffp/start/inetd.sh inactive
    * OK
    **** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
    Sun Nov 6 08:52:35 CET 2011
    ln -snf /mnt/HD/HD_a2/ffp /ffp
    * Running /ffp/etc/fun_plug.init …
    * Running /ffp/etc/rc …
    * /ffp/start/syslogd.sh inactive
    * /ffp/start/SERVERS.sh inactive
    * /ffp/start/portmap.sh inactive
    * /ffp/start/unfsd.sh inactive
    * /ffp/start/nfsd.sh inactive
    * /ffp/start/ntpd.sh inactive
    *

    1. sorry, the whole sricpt, I can see no difference between them:
      WARNING: sshd: Already running
      * /ffp/start/rsyncd.sh inactive
      * /ffp/start/mediatomb.sh inactive
      * /ffp/start/kickwebs.sh inactive
      * /ffp/start/lighttpd.sh inactive
      * /ffp/start/inetd.sh inactive
      * OK
      **** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
      Sat Nov 5 17:46:37 CET 2011
      ln -snf /mnt/HD/HD_a2/ffp /ffp
      * Running /ffp/etc/fun_plug.init …
      * Running /ffp/etc/rc …
      * /ffp/start/syslogd.sh inactive
      * /ffp/start/SERVERS.sh inactive
      * /ffp/start/portmap.sh inactive
      * /ffp/start/unfsd.sh inactive
      * /ffp/start/nfsd.sh inactive
      * /ffp/start/ntpd.sh inactive
      * /ffp/start/LOGIN.sh inactive
      * /ffp/start/twonky.sh …
      * /ffp/start/telnetd.sh inactive
      * /ffp/start/sshd.sh …
      WARNING: sshd: Already running
      * /ffp/start/rsyncd.sh inactive
      * /ffp/start/mediatomb.sh inactive
      * /ffp/start/kickwebs.sh inactive
      * /ffp/start/lighttpd.sh inactive
      * /ffp/start/inetd.sh inactive
      * OK
      **** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
      Sun Nov 6 08:31:56 CET 2011
      ln -snf /mnt/HD/HD_a2/ffp /ffp
      * Running /ffp/etc/fun_plug.init …
      * Running /ffp/etc/rc …
      * /ffp/start/syslogd.sh inactive
      * /ffp/start/SERVERS.sh inactive
      * /ffp/start/portmap.sh inactive
      * /ffp/start/unfsd.sh inactive
      * /ffp/start/nfsd.sh inactive
      * /ffp/start/ntpd.sh inactive
      * /ffp/start/LOGIN.sh inactive
      * /ffp/start/twonky.sh …
      * /ffp/start/telnetd.sh inactive
      * /ffp/start/sshd.sh …
      WARNING: sshd: Already running
      * /ffp/start/rsyncd.sh inactive
      * /ffp/start/mediatomb.sh inactive
      * /ffp/start/kickwebs.sh inactive
      * /ffp/start/lighttpd.sh inactive
      * /ffp/start/inetd.sh inactive
      * OK
      **** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
      Sun Nov 6 08:52:35 CET 2011
      ln -snf /mnt/HD/HD_a2/ffp /ffp
      * Running /ffp/etc/fun_plug.init …
      * Running /ffp/etc/rc …
      * /ffp/start/syslogd.sh inactive
      * /ffp/start/SERVERS.sh inactive
      * /ffp/start/portmap.sh inactive
      * /ffp/start/unfsd.sh inactive
      * /ffp/start/nfsd.sh inactive
      * /ffp/start/ntpd.sh inactive
      * /ffp/start/LOGIN.sh inactive
      * /ffp/start/twonky.sh …
      * /ffp/start/telnetd.sh inactive
      * /ffp/start/sshd.sh …
      WARNING: sshd: Already running
      * /ffp/start/rsyncd.sh inactive
      * /ffp/start/mediatomb.sh inactive
      * /ffp/start/kickwebs.sh inactive
      * /ffp/start/lighttpd.sh inactive
      * /ffp/start/inetd.sh inactive
      * OK

  49. It is telling me during telnet connection, connection refused by host.

    Anything wrong?
    Please help.
    Thank you.

  50. WARNING: Expect problems!

    Fonz FunPlug’s latest release is v.5 from 2009-Dec-15.

    DNS 323 released its last two version of firmware after that (1.08 on 2/17/2010, 1.09 on 6/16/2010).

    If you really want FFP to work well, use a firmware released before FFP.

    In my case, I need on a daily basis a feature in firmware 1.09, so I keep FFP turned off until I need to work on the machine by SSH, and at those times, I re-enable FFP.

    Sucks!

    1. Suckaz,

      that post is now really annoying me. Please tell me exactly what your problem with fun_plug and newer Firmware-versions is or stop ranting. Because fun_plug just works fine, even with NEWER DEVICES like the DNS-325. So now, please tell me 😉

      Cheers,
      Uli

  51. Hello everybody,

    i installed fun_plug a few months ago and i am very happy with it.

    Today I noticed that I can access all files in every folder (also the harddrives) with every user account through sftp/ssh.

    How can I limit the access to the SSH Server and the folders that are reachable through SFTP?

    Thanks for your help,
    marbon

    1. Change the Shell of all users to /bin/false.

      You can do this as following, just replace “someuser” by the username:

      chsh -s /bin/false someuser

      Cheers,
      Uli

  52. Hi, Found this interesting. Do you have a hack to allow scheduling Bit Torrent on the DNS-323. I need to schedule it to avoid overage time on my connection.

    thanks,
    Joe

  53. I have a DNS-320. Because I don’t need (and want) the original firmware, I’ve put the call to fun_plug into /usr/local/config/rc.init.sh, so the original firmware doesn’t get started and I use ffp (thanks!) for everything. But now the “recover from power fail” feature does not work anymore. Do you know how this can be activated by hand? (Probably some file in /dev or /proc?)

  54. I can make this process a DNS-320 with version 2.02, already put the files and no document is not generated error and nothing happens, I can not connect through telnet

      1. Yes you can, I’ve got the problem and the file has to take the. Txt files in your computer and then up the files to the NAS

  55. I’ve been trying to get this working on a DNS-323. I copied fun_plug and fun_plug.tgz to the root of Volume_1. Apparently, fun_plug is not being executed. I tried mounting it to my Linux server ( as a CIFS share ) , and fun_plug shows permissions 777 ( rwx for all users ).

    But when I reset the DNS323, either through the web page or by pushing the button, there is no evidence of fun_plug having executed: fun_plug.tgz is still there, and there is no telnet server.

    Anybody have a clue? At this time, there’s nothing of value on the disks, and I can reformat them if I have to. The firmware version of the 323 is 1.09.

    Thanks in advance,

    – Jerry Kaidor

      1. I tried that. Stuck copies of fun_plug and fun_plug.tgz on *both* disks. No go.

        I suspect a problem with permissions. I’m going to try sticking the drive in a Linux box, mount the ext3 filesystem, and make sure that the execute bit is set.

        1. Same problem. I’ve git formware 2.02. I’ve tried with JBOD, RAID0, adn two disks. Always the same. The fun_plug.sh and fun_plug.tgz still here (no extract of ffp) and no telnet.
          Does someone found something at this issue ?

          1. So far I’ve tried installing the files on both drives, and renaming them. fun_plug? funplug? etc. No joy. I also pulled the drives, temporarily installed them in a Linux box, and verified the file permissions. I also tried changing their ownership from 501 to 0( root ). Nope.

            Next I may try downgrading the firmware from 1.09 to 1.08.

            – Jerry Kaidor

        2. Hello,

          I have a DNS-323 with 1.09 Firmware. I had to put the fun plug in my Volume_2 and since then, have had no problems other than what I caused. I am very pleased. I have transmission running with cron at times my ISP doesn’t charge me for, and for the last two weeks, it’s been running flawlessly. My biggest problems have been understanding how to place things in the crontab.

          Try to download the plug fresh and place it in both drives. The drive that ends up with the ffp dir is the one it’s using.

          1. I’ve managed to run fun_plug on my dns-320 with firmware 2.02 so write what I do if it can helps.
            I’ve do several thing in the same time so not sure which one fix the issue, but here’s my steps:

            1 – Share volume_1 with NFS
            2 – Mount in a ubuntu the NFS share (/mnt/HD/HD_a2)
            3 – Done a chown root.root on fun_plug (the sh and the tgz)
            4 – Done a chmod +x on fun_plug
            5 – Done a dos2unix on the fun_plug script
            6 – Extract the fun_plug.tgz (tar xvf fun_plug.tgz -C ./ffp)
            7 – Reboot

            And magic, when I’ve mount the volume_1 share I’ve sawn the ffp.log and no more fun_plug.tgz so I tested telnet and it was ok.
            Hope it can help.

          2. Hi there,

            Could you please help me with Transmission?

            I believe I installed it but have no clue to access it from transmission or any other method for that matter.

            Any assistance would be greatly appreciated.

            Regards

            JKay6969

  56. Hi people!

    I have a DNS-323 about 2 years running with fonz fun plug 0.5, if I update my DNS-323 firmware I loose my Fonz Fun plug installation. I already running a webpage, bittorrent and ftp server on it. Let me know please.

  57. The DNS-323 does not come stock with NFS support. In fact, that’s the main thing I want. I installed an “APKG” nfs package from
    ftp://ftp.dlink.com/Multimedia/dns323/Apps/
    and it seemingly installed, but does not actually serve NFS. When I try to mount it from my Linux box:
    mount -t nfs 10.120.102.200:/mnt/HD_a2 /mnt/dns323

    …I get
    mount.nfs: access denied by server while mounting 10.120.102.200:/mnt/HD_a2

    ( sigh )

    – Jerry Kaidor

  58. Fonz funplug installed first try without incident! Thanks for this excellent page. I needed this because I fat-fingered a recursive chmod and made an entire directory invisible. SSH to the NAS, and was able to fix it easily. Also looking forward to rearranging large files and directories directly using mv instead of funneling everything up and down through the LAN.

  59. Hi,

    I have followed the instructions on this page and the next, where there is the installation of the .tgz files on my DNS-320. However, I cannot seem to understand how to load the stuff that has been installed. Is it supposed to appear under the applications tab on the DLINK sharecenter page (Firmware v2.02)? Or am I missing something? Actually I would just like to get a torrent client like transmission to be installed on the DNS-320, but it doesn’t seem to be that easy now. Sorry for posting such a basic question, but I am really new and a complete noob at this. Could somebody please enlighten me? Would greatly appreciate any help that I can get. Thanks.

    1. There are two files, a small fun_plug and the larger .tgz file. I just put both of them in the Volume_1 directory and restarted the DNS-320. The NAS reads the fun_plug script and unpacks the archive. When the restart is complete, you can continue with the instructions to telnet and set up SSH.

      1. Yup, done it all. SSH is all up and running. Even the additional packages are all installed. But what I don’t get is what comes next. Is there anything that I am supposed to see or do after configuring SSH? Thanks.

        1. John,
          Before you hack, you need to know why you want to hack.

          EI: My case, My ISP decided to charge for quanity instead of speed, but gave and opening of ‘free’ between 00:00 and 06:00.

          The BitTorrent client on the DNS-323 has no
          scheduler. (Might have been done with Cron, but would have need the ssh hack at the minimun.)

          Hacking this to put transmission on the unit with scheduling has enabled me to do just that.

          Hacking for the sake of hacking is never a good thing, but if you have needs like backup, BitTorrent, etc, this tool is great and easy to do.

          Enjoy,
          Joe

  60. I may be missing something very obvious but I’ve put the two files on Volume_1 and rebooted but when using putty or windows telnet it never connects, I’ve pinged the 320 and it connects but the telnet doesn’t any ideas?

    1. Ignore me I accessed it and installed it but now my question is, is everything accessed via ssh? as nothing has appeared in the web based application.

      1. Yes, nothing will appear in the Webinterface of the NAS. Just the Official Addons (if provided by the vendor) will be added there, but that is not part of the fun_plug.

        Best Regards,
        Uli

    2. I’m with John, I believe I have everything installed correctly and want to play around with a few of the preinstalled packages, namely midiatomb and rsync, but how do i access them from the dlink share center page, or can I?

  61. Hi Uli,

    I’m trying to get gitosis working but I’m having an issue with /etc/passwd
    I’ve installed gitosis and usermod -d the home directory to /opt/share/gitosis (where optware installs it)

    gitosis:x:1:1:gitosis git hosting user,,,:/opt/share/gitosis:/ffp/bin/bash

    I then to a store-passwd.sh, but on reboot the home directory reverts to /home/ftp.

    gitosis:x:1:1:gitosis git hosting user,,,:/home/ftp:/ffp/bin/bash

    I’ve manually checked the contents of /sys/mtd1 and mtd2 (I looked at store-passwds.sh) and the passwd files there are correct (/opt/share/gitosis)

    I found the file /etc/passwd_tmp that has gitosis home dir set as /home/ftp, so I edited this but it didn’t fix it.
    This file is also modified after boot to have it’s home dir set as /home/ftp

    some script / binary on startup is modifying this, but i cannot find it for the life of me.

    I dont understand why this is happening because root’s home dir is successfully set to /ffp/home/root and it is not affected by this. Only

    The only solution I can think of is making a script in /ffp/start/ that performs a usermod -d on the gitosis user every boot.
    But this is a hack, I’d rather find the cause and fix it.

    Any help would be greatly appreciated.

    Cheers,
    Adam

  62. Hello!
    I installed the fun_plug and everything worked fine and well until shutdown my DNS-320. After reboot fun_plug wont start, with all my plugins. I looked alittle on the librarys FFP etc, and it seems like permissions have been lost. This is second time my nas did this after a restart, and i really dont know what is wrong as i have done completely after your great guide.

  63. Hi
    I am having a few problems installing the Fonz fun-plug. I have a DNS-320 (2.02b01 firmware)with two drives usinng JBOD to span both drives to a single logical drive. I have put the script and tar ball into the root of Volume_1 (using XP). After rebooting nothing has happened. The script is ignored, nothing has run.

    Please help.

    1. This seems to be a common problem. I have my DNS-320 set up with Raid-1 which designates only Volume_1. I have the exact same behavior where the tar ball is ignored and nothing happens.

    2. Hi
      I have done a little investigation using linux. The script is getting run. After redirecting the log to /tmp/filesharing i can now see the ffp.log in the root of Volume_1:

      [root@localhost media]# cat ffp.log
      **** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
      Sat Jan 21 21:30:34 GMT 2012
      ln -snf /mnt/HD_a2/ffp /ffp
      /ffp/etc/rc: Not found or not executable

    3. Hmmm. Lokks as if my installation is a little different than the script is expecting. The script expects:
      FFP_TARBALL=/mnt/HD_a2/fun_plug.tgz
      i.e. that HD_a2 is under mnt. In my installation HD_a2 is under /mnt/HD (probably because JBOD makes 2 disks look like one logical disk:
      /mnt/HD/HD_a2

      I can change the references in the script but I would like to get a comment/confirmation from Fonz or Uli first.
      E.g.
      # real path to ffp
      FFP_PATH=/mnt/HD/HD_a2/ffp
      # where to search for the install tarball
      FFP_TARBALL=/mnt/HD/HD_a2/fun_plug.tgz
      # setup script (used for ffp on USB disk)
      FFP_SETUP_SCRIPT=/mnt/HD/HD_a2/.bootstrap/setup.sh

      1. After a bit more testing it looks like the DNS-320 doesnt like /mnt/HD/HD_a2 either. I have had success writing logs to /tmp/filestore which seems to be the equivalent of /mnt/HD/HD_a2.

        Any advice? Anyone?

  64. Hello, and Thanks for this guide ! It work perfectly with a Dlink 325…

    I have come cron wich execute some PHP scripts in the box.

    But some extensions are missing (php_mysql, gettext, etc..).

    So my question is:

    what’s the best way to add some php extension or to have an other PHP (like 5.3 ..)

    Thanks for answers

    1. HI:
      I just install fun_plug 0.7 that brings as an additional package the PHP 5.3.9. This installation was performed in a Dlink DNS-325.
      Also I would like to say that I found a little problem with SSH. The SSH client used by default, is the one that comes out of the box with the NAS, if you want to use the new ssh client binaries you need to add symbolic links to the /ffp/sbin to the ssh binaries located at /ffp/bin. This need to be done because the $PATH defined uses the old ssh client first.

      Regards,

      FRP.

          1. Hi:
            That’s right that file helps a lot and also those files specifically designated to be used with Dlink devices.

            Best Regards,

            FRP.

          2. How i can update ffp 0.5 with 0.7? Simply putting new .tgz plug into volume_1?
            Thank you for any reply.

  65. Hi,
    I’ve have a power failure on DNS-323 external storage.
    My configuration of disks: RAID1.
    My disks was logically corrupted – it means that parition table was dissapeared.
    I’ve used testdisk program to restore partition table with half success, i’ve could only restore all partition exept md0 (logical raid created by mdadm).
    Below are results of few unix commands.
    Especialy mdadm is suggesting that data still exist.
    But I have no idea how to restore partition table of logical RAID1.
    I tried to reassemble it and then remount
    mdadm –assemble –force /dev/md2 /dev/sdg3
    but it seams that filesystem is corrupted.
    Do you have any ideas how to deal with it?

    ~# fdisk -l /dev/sdg

    Disk /dev/sdg: 1500.3 GB, 1500301910016 bytes
    255 heads, 63 sectors/track, 182401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xdfee129d

    Device Boot Start End Blocks Id System
    /dev/sdg1 * 1 66 530113+ 82 Linux swap / Solaris
    /dev/sdg2 67 130 514080 83 Linux
    /dev/sdg3 131 182236 1462766445 83 Linux

    and otput of mdadm:

    ~# mdadm –query /dev/sdg3
    /dev/sdg3: is not an md array
    /dev/sdg3: device 0 in 2 device mismatch raid1 /dev/md0. Use mdadm –examine fo r more detail.
    ~# mdadm –examine /dev/sdg3
    /dev/sdg3:
    Magic : a92b4efc
    Version : 0.90.00
    UUID : 16b21219:78dce24d:dad0fcaa:67fd5116
    Creation Time : Wed Jun 14 12:00:41 2000
    Raid Level : raid1
    Used Dev Size : 1462766336 (1395.00 GiB 1497.87 GB)
    Array Size : 1462766336 (1395.00 GiB 1497.87 GB)
    Raid Devices : 2
    Total Devices : 2
    Preferred Minor : 0

    Update Time : Sun Jan 29 02:40:17 2012
    State : clean
    Active Devices : 2
    Working Devices : 2
    Failed Devices : 0
    Spare Devices : 0
    Checksum : 5b6b22dd – correct
    Events : 2311524

    Number Major Minor RaidDevice State
    this 0 8 2 0 active sync /dev/sda2

    0 0 8 2 0 active sync /dev/sda2
    1 1 8 18 1 active sync

    1. Solution:
      0. Making a backup of disk in case deeper damages fe using norton ghost, option full backup every sector

      1. Restore information of partition
      testdisk -> Intel partition -> Deep Search

      2. Making corect order:
      sfdisk -d /dev/sdg > sdg.out
      sfdisk /dev/sdg -O ./sdg.partition-sectors.save
      sync

      3. Test in case its enough
      mdadm –assemble –force /dev/md2 /dev/sdg2
      mount -o ro -t ext2 /dev/md2 /mnt/test

      4. Probably it will be an error so:
      mdadm –stop /dev/md2
      mke2fs -n /dev/sdk2

      5. Checking of structure and position of superblocks backup:
      OS type: Linux
      Block size=1024 (log=0)
      Fragment size=1024 (log=0)
      Stride=0 blocks, Stripe width=0 blocks
      128520 inodes, 514080 blocks
      25704 blocks (5.00%) reserved for the super user
      First data block=1
      Maximum filesystem blocks=67633152
      63 block groups
      8192 blocks per group, 8192 fragments per group
      2040 inodes per group
      Superblock backups stored on blocks:
      8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409

      6. Choosing the highest value (probably lower should work as well)
      e2fsck -b 401409 /dev/sdk2 -y

      7. Twenty hours later:
      mdadm –assemble –force /dev/md2 /dev/sdg2
      mount -o ro -t ext2 /dev/md2 /mnt/test

      work complete.

  66. Hi.
    Ive got same error as Chema, my root access is lost after reboot of mt DNS-320.

    Could you please help us, Thanks alot

    1. Hi Rasmus:
      Try to enter with the utilitie called Web file server inside the NAS Web GUI. In tha utilitie browse to the following Path: Volume_1/ffp/etc/
      Check for a file called fun_plug.local and download to a local machine (If you don’t have that file inside the folder examples you’ll find one. Uncoment the following line:
      # Clear root password for convenient login (won’t work with ssh)
      usermod -p ” root #This line is uncomented.

      Upload to the same path and after that, reboot the device and the root user will have blanked password.

      Regards,

      Francisco.

  67. Hello,

    Thank you very much for this article which is very detailed !

    However, is it possible to install fun_plug on a non-formatted NAS? Is there any risk that HDDs will be erased?

    Thank you in advance for your help.

  68. Thank you for the informative tutorial! Unfortunately, the files do not unpack and install on reboot for me. I am using a DNS-325. Are there any special tricks with this model? I am currently accessing the NAS through a machine running Windows XP via Web Interface. I also only have one drive in the right hand slot acting is Volume_1. Thank you in advance for any ideas or recommendations.

  69. Hi, I am trying to install ffp 0.7 on a DNS-320.
    when I try to do pwconv i get “pwconv: failed to change the mode of /etc/passwd- to 0600” anyone having the same problem? or know a solution for it?

    1. Has anyone solved the “pwconv: failed to change the mode of /etc/passwd- to 0600″`error ? I’m running DNS-323 with ffp 0.7.

  70. ugh.. I am very new to this so I apologize for any ridiculous questions or mistakes. I started up Telnet and went through the instructions for creating the root password but now it tells my Login Incorrect anytime I put it in. What happened?

  71. Hello – great site, thanks for the excellent info.

    The webpage

    http://nas-tweaks.net/40/installation-of-the-fonz-funplug-0-5-for-ch3snas-ch3mnas-dns-323-and-many-more/

    as rendered in my browser (Chrome 16.0.912.77 m) repeats after the first “Fun_plug and user accounts” header, with the line:

    “Note that the initial execution of the fun_plug script creates a new usThe Conceptronic CH3SNAS run…”

    and goes on to repeat most of the content above. Just an FYI.

    Kind regards,

    pf

    P.S.

    n.b. I originally posted this on the About page, then realized I could post it here instead. Sorry for the dupe.

    pf

  72. I have a problem, fun_plug would not install and, after many attempts, i understood why.
    My volume_1 is HD_b2 and Volume_2 is HD_a2!!!!
    How i can to correct this mismatch? Why volume doesn’t correspond to right letter?
    Thank you for all answers and sorry for bad english.

      1. Fu**. After disc2 re-insertion, volume_1 is HD_b2 and fonz plug doesn’t work anymore.
        Any suggestion?

  73. Hi! I have already thanked you your great job in another thread but I have a “little” problem.
    When I connect using ssh and loging in as “root” the sistem does not ask for a password.
    How can I solve this?
    Thanks!

  74. When attempting telnet connection, I get a connection refused by host.

    There is an unanswered comment above with the same issue. I still have the file telnetd.sh.

    Please help!
    Thanks.

  75. Hi,

    Thanks for all the information I have managed to install it and get it working. I am trying to host my own websites on my nas such as a apache server rather than just the lighttpd. Is this possible and if so does anyone know an installation guild?

    Thanks
    James

  76. Hi, i’m trying to install fun plug , but when I try to connect via telnet through putty I insert Ip and port and click open, appears a black window and after 1 second it desappear ! you maybe can help me ? thanks
    Ps: I have windows 7

  77. Hi, I took a look in several topics and guides but still can’t make it work properly… I have a DNS-320 2.0b with the Fun-Plug installed and want to run an external hard-disk as a place where CouchPotato will save files.

    Currently when I plug my external HD, I can access it via network but I can’t find it via ssh. I know that it’s in /dev/sdc1 but I’m unable to mount it.

    When I try to mount it, the following error appears: mount: /dev/sdc1 already mounted or /mnt/USB busy

    When I run mount to see if it’s mounted already I can’t find it there but when I check “cat /proc/mounts” I can see that there’s some information about the HD:

    /dev/sdc1 /mnt/USB/HD_c1 fuseblk rw,nosuid,nodev,user_id=0,group_id=0,default_permissions,allow_other 0 0

    Does anyone knows how I can mount it properly? I tried to format it in ext3 as well and it says that the HD is in use but I’m not sure how to stop it.

    Thanks

  78. I get stuck on the reboot of my CH3MNAS, it won’t reboot. Also tried to move the HDD in the other slot.

    I also tried to execute the fun_plug in the terminal on the NAS it self and returned me the next answer:

    fun_plug: line 9: /mnt/HD_a2/ffp.log: No such file or directory
    **** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
    vr 16 mrt 2012 07:52:52 CET
    ln -snf /mnt/HD_a2/ffp /ffp
    ln: /ffp: Permission denied
    /ffp/etc/rc: Not found or not executable

    I really hope their is a solution and you guys can help me out here.

      1. For mac-users their is an extra step to include a success installation of the fun plug.

        When you placed both files on the root of Volume_1, go to you’re terminal:

        chmod 777 /Volumes/Volume_1/fun_plug

        and

        chown root /Volumes/Volume_1/fun_plug

        This solves the problem. The permissions were too low to execute the fun plug script.

  79. Hi,
    I am still struggling get the unplug installed, it obviously saris the script as it makes a ffp.log the contents of which are as follows:
    **** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
    Wed Mar 21 12:41:18 GMT 2012
    ln -snf /mnt/HD/HD_a2/ffp /ffp
    /ffp/etc/rc: Not found or not executable
    **** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
    Thu Mar 22 13:39:16 GMT 2012
    ln -snf /mnt/HD/HD_a2/ffp /ffp
    /ffp/etc/rc: Not found or not executable
    any ideas?

    1. OK after days of searching and reading other peoples experiences. I have removed one hard disk with my important stuff. I have reformatted the other and recopied the Fun_plug files to the hard disk. The script runs and produces http://ftp.log and the tgz is now tar. However the log still has the same message:
      ln -snf /mnt/HD/HD_a2/ffp /ffp
      /ffp/etc/rc: Not found or not executable
      Obviously there is a path or permission problem has anyone sorted this out as I see more people report it???

    2. OK ,
      it has installed, replace the files once more crowned to root, chmod 777 and rebooted and it is there!!!!

  80. I tried using a D-LINK 325 for an Oracle Cluster, but the install kacked on Oracle’s attempt to run a chown on the voting disks on the shared storage device (the 325). I called D-Link and mentioned I was building a cluster with Linux nodes, and they could not have abandoned me faster. They want nothing to do with business applications: They’re all about Torrent and consumer file sharing. I don’t know what I’m looking at if I put the fun_plug on this. I don’t care about the D-Link warranty; they’re children anyway. Thanks.

    1. You should probably use NFS. This could be achieved by using fun_plug. Also you can customize whatever you want with fun_plug.

      Cheers,
      Uli

  81. I have dns-325 and have set fun_plug (both files) to the Volume1 on NAS. However, when I restart NAS everything stays the same. Script is not executed. What could be an issue that script is not executed and ffp folder created.

  82. Hello,

    I meet some problems with the library libc.so.6. Programs that I use on the box (dns-325) return an error with this lib.

    I also noticed that there was a file in your repository glibc “broken” …

    Does anyone have any problems with this library? Is there an upgrade possible?

    1. i need to install into dns-325 a glibc <= 2.3…

      But when i try to compile it, there is some dependen like gcc, etc… And it need the linux-headers package…. When i try to configure with the arg "–includedir= /ffp/include " that contain some linux-headers files, it dont work 🙁

      Somebody can help me ?

      Thanks in advance

  83. Thank you very much for the Guide Uli !
    I have couple questions , because i’ m a newbie for the DNS-325 i just got and not an advance user for telnet,linux….
    1.i tried to follow your guide until the line : ” store-passwd.sh” and here the copy from my Telnet windows :
    / # pwconv
    / # passwd
    Changing password for root
    Enter the new password (minimum of 5, maximum of 8 characters)
    Please use a combination of upper and lower case letters and numbers.
    New password:
    Re-enter new password:
    Password changed.
    / # usermod -s /ffp/bin/sh root
    usermod: no changes
    / # mkdir -p /ffp/home/root/
    / # usermod -d /ffp/home/root/ root
    / # login

    dlink-791EA8 login: admin
    Password:
    No directory, logging in with HOME=/
    Last login: Fri Jun 8 17:07:58 +0000 2012 on pts/0.
    No mail.

    BusyBox v1.11.2 (2010-11-17 11:44:30 CST) built-in shell (ash)
    Enter ‘help’ for a list of built-in commands.

    wget http://wolf-u.li/u/172/ -0 /ffp/sbin/store-passwd.sh
    / # store-passwd.sh
    Copying files to mtd1…
    mount: mounting /dev/mtdblock0 on /sys/mtd1 failed: No such file or directory
    cp: cannot create ‘/sys/mtd1/.’: Path does not exist
    cp: cannot create ‘/sys/mtd1/.’: Path does not exist
    cp: cannot create ‘/sys/mtd1/.’: Path does not exist
    cp: cannot create ‘/sys/mtd1/.’: Path does not exist
    umount: can’t umount /sys/mtd1: No such file or directory
    Copying files to mtd2…
    mount: mounting /dev/mtdblock1 on /sys/mtd2 failed: No such file or directory
    cp: cannot create ‘/sys/mtd2/.’: Path does not exist
    cp: cannot create ‘/sys/mtd2/.’: Path does not exist
    cp: cannot create ‘/sys/mtd2/.’: Path does not exist
    cp: cannot create ‘/sys/mtd2/.’: Path does not exist
    umount: can’t umount /sys/mtd2: No such file or directory
    Done.
    because it seem like some thing wrong then i ‘m not want to go futher .Please help me out
    (sorry for my English 🙁 )

  84. Sorry for bug you again .
    2. I intended to try fun-plug for DNS-325 with the prime to install transmission ( replace the P2P ad-on pakage come with DNS-325 ,i have been use transmission before->i like the interface and usefull os transmission) where i can have guide to install it?
    Appolozire for my English

  85. Thanks for the guide – I can confirm that it works also for DNS-313 running FW 1.04. I had issues with FW 1.0, but after upgrading to 1.04 via the web console, these instructions worked great.

    Thanks again

  86. Hello – I have just received my second DNS320 and installed fun_plug 0.5 into this by following your advices here.
    But then I got my Telnet prompt as:
    SH-4.1#
    Instead of just /# – on my first DNS320.
    Any advice, please?
    Thanks.

  87. Thank you for writing such an easy to follow tutorial. I’m new to Linux. Now that I have installed fun_plug, how do I configure my DNS-320 for SFTP?

    Many thanks.

  88. I scrolled to the bottom of this thread. I noticed somebody have the same question as me, however no answer: can anybody help please?

    I’ve installed the funplug 1.0 version of Conceptronic on my CH3HNAS. Telnet works OK, but I would like to extend to SSH, HTTPD etc. Uli’s tutorials don’t apply here…. 🙁 (no pwconv, etc).

  89. Hi, I have a Workaround for NOT use store-passwd.sh.

    Instead use store-passwd.sh, I followed these steps:
    .- pwconv
    .- passwd
    .- usermod -s /ffp/bin/sh root
    .- mkdir -p /ffp/home/root/
    .- usermod -d /ffp/home/root/ root
    .- I tried LOGIN … OK.!
    And then i DIDN’T USE ” store-passwd.sh ”
    .- I went to web-interface –> tools –> Admin Password –> and I changed it! –> Save.
    .- Reboot the NAS, and my root password was saved too.!!

    When the NAS save the admin password, at the same time it save root password, because both are stored in the same files.

    Bye.
    ————–
    PD: I have a CH3SNAS with DNS-323 Firmaware 1.09.

  90. Hi all, I’m having this 320L model, and noticed that by following these instructions, telnet is not disabled after reboot. If someone could check, who is having 320L and post reply. If it is same for someone else, someone who is interested enough, could fix it? 🙂

  91. Hi Uli. You tutorials are great! I have succesfully install fun_plugz and I run the sshd daemon on my DNS-345.

    Great BUT, here’s the question. I want to give ssh access to all the users in the NAS, not only for root. I try to access with username “raul”, I insert my password buuuut I just get a Busybox prompt instead of the bash promt I get whe accessing as root. I need ssh user access so I can connect from my linu/bsd computers without using CIFS or NFS protocols and access folders containing multimedia files.

    thanks a lot,
    regards

  92. Hello, does anyone have iptraf or iftop for version 0.5? I tried to get the source and compile it but configure stops at “C compiler cannont create executables” . Would iftop armv5tel.rpm files from fedora or suse work?

    1. Never mind guys I got iftop compiled following the instruction for setting up chroot. I had forgotten to installed the uclib. If anyone needs the binary email me and Ill send it.

  93. Hi Uli,
    thanks on your fine work on this!
    I’ve setup funplug for ssh, works fine.
    using keypairs to login for safety, works fine as well. But I want to disable the possibility of a password-login, seems to be safer (bruteforce-attack?).
    I’ve found a tutorial saying to add ” PasswordAuthentication no ” to sshd_config, but on doing so I completely locked myself out (also with keypairauthentication). oh well, that was a nice exercise in restoring functionality…
    Can you point me in the right direction? Do I have to change more in the config?
    thanks!

    1. OK, found it out myself.
      In /ffp/etc/ssh/sshd_config I added/uncommented the following lines:
      PermitRootLogin no
      #well, that’s just what is says it is…
      and
      ChallengeResponseAuthentication no
      PasswordAuthentication no
      UsePAM no

      then reboot NAS.
      User root can’t loging at all, and user John only when using a certificate, no password.
      (Of course John can then su to root!)

  94. Thank you very much. Worked like a charm.
    I need to set up another UPnP server, which will be Mediatomb. My Samsung TV does not understand the built-in AV server of the DNS-325 for .mkv files, but I figured out how to overwrite the configuration of Mediatomb such that it works.

  95. I got everything to work on a D-Link DNS-320L as well, except for one thing:

    Disabling telnet permanently by just doing a chmod -x doesn’t seem to work; after reboot, all permissions in the /ffp/start directory are re-set to 777.

    This also happens to the ssh keys apparently, which means that on startup, sshd will complain about too open permissions for the private keys, and will refuse to start up.

    No idea why; I kind of worked around it by just renaming the telnet.sh to telnet.NOEXEC in the start directory. sshd still won’t work, but my primary goal was to not have an open telnet, so it kind of works for me (I don’t really need a permanent way of logging into my NAS).

    Still, any hints as to how to fix this cleanly would be appreciated. In the meantime, many thanks for the great tool, which allowed me to get rid of the crappy-beyond-comprehension default UPNP server that comes with the 320L (music folder contents sorted alphabetically instead of by track number, come on!), and replace it with something decent.

  96. Hi Uli,

    I want to access a DNS-320 via sshfs but still use
    it as *one* raid-1 disk drive. Is it possible? Does
    fun_plug alter the raid functionality somehow that I should take care of?
    Thanks

  97. Hello, i have no access to Telnet in my dns-320. I tried everything, it creates the folder and displays the log correctly, but I am unable to connect via telnet. I have the 2.03 firmware and tried the version 0.5 of fun_plug with srcipt adapted to the dns-320. Do you could help? Thank you.

  98. Hi. I am in a bit of a mess. I forgot the root password for my DNS-320 and so decided to uninstall the fonz fun plugin. i have run the uninstall script. When I try to re-install the fonz plugin i just get the following oin the log:

    **** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
    Wed Jan 8 16:06:41 GMT 2014
    ln -snf /mnt/HD_a2/ffp /ffp
    /ffp/etc/rc: Not found or not executable

    However, it seems the plugin is still active as I can connect via SSH (still no password). i have even tried a hard reset of the hardware with the same result.

    Please help.

    Thanks

    1. Hi Mark,

      did you really uninstall everything? To me the log looks as if the uninstaller was not run completely. The folder ffp and the file fun_plug should be removed afterwards. Then REBOOT before reinstalling.

      Best Regards,
      Uli

      1. Hi. thanks for getting back. I managed to solve the issue. there was a slight bug in the install script. The path the install script was missing the HD folder. Its all good now.

  99. I’m having problems getting the installer script to execute on newly purchased DNS-325. Only a single HDD is installed. I uploaded the appropriate fun_plug and tarball. Used ftp quote site chmod 777 fun_plug to make it executable, and when I view File Properties > Security in Windows 7 explorer, it’s read/write/executable by everyone. The files are just sitting there in /Volume_1 after rebooting, and I have no evidence that anything has happened — really I’d just like to be able to ssh into the darn thing and do some filesystem stuff without using SMB.

Comments are closed.