DNS 325 - Funplug 0.7 : SSLH ... share port 443 for Https, Ssh, OpenVPN and Tinc

dropcap-dns325-sslh

If you need to administrate your home network while on the move, you will soon realize that you need different type of accesses.

The standard accesses you may need are :

  • HTTS to access your secured pages or webdav shares
  • SSH to administrate your main server
  • OpenVPN or Tinc to get a full unrestricted access to your LAN

The only problem is that many Internet providers are blocking most of the ports used by these protocols. With some very restrictive providers (or with some corporate proxy) the only available ports may be 80 & 443.

So the solution to that problem is to allow HTTPS, SSH, OpenVPN or Tinc to share the same 443 port. With such setting, all your connexions needs can be handled from any type of network.

To help us to reach that goal, a fantastic little tool is available under Linux : SSLH

This tool listens on one specific port, analyse the stream & forward it to a specific local port according to its type.

This guide explains how to install the latest version of sslh on your DNS-325 which will become the conductor of your secured streams.

As this guide will need few compilation steps, you need to have setup a DNS 325 - Compilation Environment as a pre-requisite.

Read more: DNS 325 - Funplug 0.7 : SSLH... share port 443 for Https, Ssh, OpenVPN and Tinc

DNS 323 & 325 - Funplug : Send mail from shell scripts using your Gmail account

dropcap-dns325-gmail

Once you have prepared your DNS-323 or your  DNS-325 with Fun plug and adds-on, a lot of possibilities are opened, especially in terms of automated batch processing.

For example, if you automate some processes like backup, database dump, ... you may be interested in sending reports by email straight from your batchs.

This article will explain how to configure your NAS to be able to send emails from command line.

The sendmail client used will be the one provided by the NAS firmware : msmtp.

Configuration will be done to be able to use a Gmail account, but it can obviously be adapted to any other smtp provider.

This article has been tested on DNS-323 running Fun plug 0.5 and on DNS-325 running Fun plug 0.7. It should also be applicable to a DNS-320 as well.

Read more: DNS 323 & 325 - Funplug : Send mail from shell scripts using your Gmail account

DNS 323 - Funplug 0.7 : Supervise Fan Speed and Case & HDD temperature with SNMP

dropcap-dns323-snmpWhen you run Net-SNMP on your DNS-323, you must have realised that standard SNMP MIBs are not providing a way to supervise your NAS temperature sensors (internal case & hard disk).

Thanks to the open nature of Net-SNMP project, it is possible to extend the Net-SNMP MIBs thru simple shell scripts.

The principle is quite simple :

  • Some new MIBs are declared to SNMP daemon with associated shell scripts
  • SNMP daemon publishes these new MIBs with the standard ones
  • When the MIB is called, SNMP daemon triggers the associated shell scripts to read the sensor values

With this approach, it becomes quite simple to publish DNS-323 fan speed and temperature sensors MIB.

This article explains how to setup your DNS-323 SNMP deamon so that it publishes some extended MIBs to read fan speed and internal case & disks temperature thru their respective sensors.

This will allow you to supervise your DNS-323 temperature levels thru SNMP with supervision softwares like Nagios, Munin, ... A Munin node example under Debian is also provided in this article.

A pre-requisite is to have have fully prepared your DNS-323 with fun_plug 0.7 and adds-on , with a complete compilation environment and Net-SNMP installation.

Read more: DNS 323 - Funplug 0.7 : Supervise Fan Speed and Case & HDD temperature with SNMP

DNS 323 - Funplug 0.7 : Supervise your NAS thru SNMP

dropcap-dns323-snmp

If you own a DNS-323, you may have noticed that there is no simple way to supervise it.

Hopefully, thanks to funplug it is possible to compile and install Net-SNMP on this NAS.

Once it is installed, your DNS-323 becomes a fully featured SNMP device. A lot of possibilities are then opened in term of management and supervision.

This article explains how to setup an operational net-SNMP agent on a DNS-323 NAS running funplug.

This will allow you to supervise your DNS-323 thru SNMP with supervision softwares like Nagios, Munin, ...

A pre-requisite is to have have fully prepared your DNS-323 with fun_plug 0.7 and adds-on and to have setup the DNS-323 compilation environment.

Read more: DNS 323 - Funplug 0.7 : Supervise your NAS thru SNMP

DNS 325 - Funplug 0.7 : Supervise your NAS thru SNMP

dropcap-dns325-snmp

If you own a DNS-325, you may have noticed that there is no simple way to supervise it.

Hopefully, thanks to funplug and to Mijzelf repository, it is possible to install Net-SNMP on this NAS.

Once it is installed, your DNS-325 becomes a fully featured SNMP device. A lot of possibilities are then opened in term of management and supervision.

This article explains how to setup an operational net-SNMP agent on a DNS-325 NAS running funplug.

This will allow you to supervise your DNS-325 thru SNMP with supervision softwares like Nagios, Munin, ...

A pre-requisite is to have have fully prepared your DNS-325 with fun_plug 0.7 and adds-on.

Even if not tested, this procedure should also be compatible with DNS-320 devices.

Read more: DNS 325 - Funplug 0.7 : Supervise your NAS thru SNMP

DNS 325 - Funplug 0.7 : Move Fun plug to a USB key

dropcap-dns325

If you are running fun_plug on your DNS-325, you may have noticed that since your NAS is running the fun_plug script from a filesystem located on the first hard disk, this disk is not able to go into power saving mode anymore.

To allow your hard disk to enter power saving mode as often as possible, one elegant solution is to run Fun plug and its services from the filesystem of a connected USB key.

To be able to run fun_plug from a USB key filesystem, it means that you need :

  • fix a bad chmod 777 behaviour of the DNS-325
  • to format a USB key with Ext2 filesystem
  • to auto-mount USB key at boot
  • to reconfigure fun_plug to run from new location

This article will explain how to fully configure a DNS-325 to run a working Fun Plug 0.7 installation from a USB key. It supposes that your DNS-325 is already running Fun plug.

As a result, your NAS first hard disk will regain the possibility to enter power saving mode as soon as user data are not accessed.

The USB key should be at least a 1 Gb. A key of 2 or 4 Gb will be more confortable in case you need to install many Fun plug packages.

This guide is based on fun_plug 0.7. It's pre-requisite installation can be done following DNS 325 - Extend your NAS possibilities with Fun plug 0.7.
All following operations suppose that your are connected to the DNS-325 console thru SSH or Telnet.

This article has been tested on DNS 325 with firmware 1.03.
I've not succeeded to make it work under firmware 1.04. So, please downgrade to 1.03 if you really need this feature.

Read more: DNS 325 - Funplug 0.7 : Move Fun plug to a USB key

WNDR3700 - Correct the Static Routes Bug

WNDR3700

The Netgear WNDR3700 is a very powerfull router, providing a lot of professional features. One of these features is the possibility of declaring some static routes.

Static routes are very interesting if you are having a second LAN gateway on your network or if you are using a routed OpenVPN server.

But, the WNDR3700 is having a nasty bug in its static routes handling : it drops all the tcp traffic !

So, for example, if you declare a static route on your router :

  • you will be able to ping any machine between the 2 subnets accessible thru this route,
  • but any ssh, ftp, http, … connexion will hang badly. No packet will be able to go thru.

This article will explain how to get rid of this bug with a Ubuntu (or any linux) workstation.

Read more: WNDR3700 - Correct the Static Routes Bug

DNS-325 - Funplug 0.7 : Subsonic server with realtime MP3 and AAC transcoding

dropcap-dns325-subsonic

Subsonic is a really efficient music streaming server that allows you to share your complete music collection to any internet connected device like laptop, mobile phone or tablet. It can handle on-the-fly transcoding for devices connected to low speed networks like 3G or even Edge networks. You can get a good overview of the possibilities of Subsonic from the project site http://www.subsonic.org/.

Even if Subsonic is very efficient, it is not that easy to install on a device like DNS-325, as it is running under Java (which is CPU and RAM hungry) and as it's supposed to be able to do real time transcoding (which is also very CPU intensive). The main limitation of DNS-325 for this purpose is that it offers a 1.2 GHz ARM processor, with only 256 Mb memory and no Floating Point Unit.

But, with the help of Oracle Java 7 SE Embedded for ARM devices, Shineenc fixed point mp3 encoder and Fraunhofer fdk-aac encoder, it is possible to setup a fully functionnal installation of Subsonic on the DNS-325, including realtime MP3 and AAC transcoding. Yes, realtime transcoding !

So, this article will explain how to do a complete installation of Subsonic music server on a DNS-325. It will deals with the following steps :

* Installation of Oracle Java 7 SE

* Installation & setup of Subsonic

* Setup of a realtime mp3 & aac transcoding chain using ffmpeg, shineenc & libfdk-aac library

* Apache 2 reverse proxy configuration for internet access

This setup has been tested on a mp3 music collection, but it may be applicable for any musical file types accepted by ffmpeg.

Read more: DNS-325 - Funplug 0.7 : Subsonic server with realtime MP3 and AAC transcoding

DNS 325 - Funplug 0.7 : Compile x264, lame, shine, fdk-aac, twolame, ffmpeg and sox

dropcap-dns325-gnu

This article will explain how to easily setup a complete GNU compilation environment on your DNS-325 and to compile latest multimedia tools optimised for ARM architecture :

  • shineenc mp3 integer encoder library (liquidsoap version, 8x faster than lame with acceptable quality)
  • fdk-aac encoder library from fraunhofer (high quality real-time aac encoder, open-sourced by Google for jelly bean android platform)
  • twolame encoder library (successor of TooLame)
  • opus encoder library (newly standardized by the IETF)
  • x264 encoder (not optimised for ARM, but a reference)
  • lame 3.9.5 (not optimised for ARM, but also a reference)
  • ffmpeg encoder/decoder multimedia framework
  • sox audio processor, a swiss army knife of sound processing programs

With the resulting binaries, you will be able to :

  • Encode aac and mp3 stream with ffmpeg in more than 3x realtime (perfect for subsonic media streamer)
  • Apply some Dynamic Range Compression on audio files with sox
  • Encode some h264/aac video files with ffmpeg & x264 as a background process
Read more: DNS 325 - Funplug 0.7 : Compile x264, lame, shine, fdk-aac, twolame, ffmpeg and sox

DNS 325 - Funplug 0.5 : Web server with PHP and MySQL

dropcap-dns325-lamp

This article explains how to install a full LAMP server on a DNS-325.

This server will be based on the following bricks :

  • Lighttpd
  • PHP
  • MySQL
  • phpMyAdmin

It is adapted from the tutorials found on NAS Tweaks. Some of the installation aspects have been adapted to the DNS-325 specificities (webdav shares, memory size of 256 Mb, default path, …).

As a pre-requisite, you must have prepared your DNS-325 with fun_plug and adds-on.

This procedure should also be compatible with a DNS-320, which is running the same system with less memory and less processor power.

Once you have successfully followed all these steps, you will, for example, be able to install a fully running Joomla site.

Read more: DNS 325 - Funplug 0.5 : Web server with PHP and MySQL

DNS 325 - Funplug 0.5 : Install Transmission p2p client

dropcap-dns325-transmission

This article explains how to install a Transmission peer-2-peer client on a DNS-325.

Transmission client on a DNS-325 is very interesting for different aspects :

  • usually, a NAS is running 7/7 - 24/24
  • Transmission is fully Web controlled
  • It is using very less RAM
  • It is very light on CPU power
  • It is offering lots of parameters (ports limitation, speed throttle, ...)

So, with this setup, you will be able to serve 24h/24 your latest Linux distributions torrents from home without any computer on.

As a pre-requisite, you must have prepared your DNS-325 with fun_plug and adds-on.

This procedure should also be compatible with a DNS-320, which is running the same system with less memory and less processor power.

Read more: DNS 325 - Funplug 0.5 : Install Transmission p2p client

DNS 323 - Funplug : Generate Twonky video thumbnails from XBMC .tbn

dropcap-dns323-twonky

In previous articles, I've explained how to install fun_plug extension script and TwonkyMedia server 7 on a DNS-323.

This article will explain how to configure TwonkyMedia server 7 to fully use an existing XBMC movies thumbnail database to generate its own video thumbnails.

In fact, if you are already using your DNS-323 thru a samba share to serve movies to some XBMC clients (Windows or Linux), you probably have already some .tbn thumbnails associated with all your movies and all your subdirectories. XBMC thumbnails with .tbn extension are simply jpeg files renamed with this specific extension.

This article will explain how to setup TwonkyMedia server environment to use these .tbn thumbnails to supply TwonkyMedia video thumbnail mecanism. Is has been tested sucessfully on a LG DLNA connected TV.

As a pre-requisite, you must have installed TwonkyMedia server and its dependencies following DNS 323 - Fun_plug 0.5 : Install Twonkymedia Server 7.

Read more: DNS 323 - Funplug : Generate Twonky video thumbnails from XBMC .tbn

DNS 323 - Funplug 0.5 : Move Fun plug to a USB key

dropcap-dns323

If you are running fun_plug on your DNS-323, you may have noticed that since your NAS is running the fun_plug script from a filesystem located on the first hard disk, this disk is not able to go into power saving mode anymore.

To allow your hard disk to enter power saving mode as often as possible, one elegant solution is to run Fun plug and its services from the filesystem of a connected USB key. But with DNS-323 things are not so simple as it doens't handle natively USB mass storage ...

So, to be able to run fun_plug from a USB key filesystem, it means that you need :

  • to install and load a USB mass storage driver
  • to format the USB key with the Ext filesystem used by DNS-323
  • to auto-mount the USB key at boot
  • to reconfigure fun_plug to run from new location

This article will explain how to fully configure a DNS-323 to run a working Fun Plug 0.5 installation from a USB key. It supposes that your DNS-323 is already running Fun plug.

As a result, your NAS first hard disk will regain the possibility to enter power saving mode as soon as user data are not accessed.

The USB key should be at least a 1 Gb and FAT formatted. 2 or 4 Gb will be more confortable in case you need to install many Fun plug packages.

Read more: DNS 323 - Funplug 0.5 : Move Fun plug to a USB key

DNS 325 - Funplug 0.7 : Install Transmission p2p client

dropcap-dns325-transmission

This article explains how to install a Transmission peer-2-peer client on a DNS-325.

Transmission client on a DNS-325 is very interesting for different aspects :

  • usually, a NAS is running 7/7 - 24/24
  • Transmission is fully Web controlled
  • It is using very less RAM
  • It is very light on CPU power
  • It is offering lots of parameters (ports limitation, speed throttle, ...)

So, with this setup, you will be able to serve 24h/24 your latest Linux distributions torrents from home without any computer on.

As a pre-requisite, you must have installed Fun_plug 0.7 and declared Slacker repositories following DNS 325 - Fun_plug 0.7 : Extend your NAS possibilities.

This procedure should also be compatible with a DNS-320, which is running the same system with less memory and less processor power.

Read more: DNS 325 - Funplug 0.7 : Install Transmission p2p client

DNS 325 - Funplug 0.7 : Install Twonkymedia Server 7

dropcap-dns325-twonkymedia

This Tutorial explains how to install TwonkyMedia Server 7, a very efficient uPnP media server, on a DNS-325 NAS.

TwonkyMedia Server is one of the most efficient uPnP network server, able to stream music to some wireless network clients like :

  Roku Soundbridge  
  Philips NP2500 or NP2900         

It allows to browse easily a huge mp3 database (15k+), thru tags like genre/artist/album and can efficiently replace Firefly media server.

Twonkymedia server main drawback is not to be free and to need an activation key to run. But, on the other end, you will get an unlimited activation key with every Philips network media player you buy. Point to be noted, a Twonkymedia server key will work on any number of servers and on any type of supported OS.

As a pre-requisite, you must have installed Fun_plug 0.7 following DNS 325 - Fun_plug 0.7 : Extend your NAS possibilities.

Read more: DNS 325 - Funplug 0.7 : Install Twonkymedia Server 7

DNS 323 - Add a second disk : the safe side

DNS-323

If you want to add a second drive to an operational DNS-323, you have to be careful as there are few firmware bugs that can simply reformat your actual drive. In fact, all firmware up to 1.08 are known to be buggy.

The safe side is to format the new drive while removing the first one.

Another funny behaviour, is the fun_plug mecanism : Whatever was the position of your fist disk before inserting the new one, the drive holding the ffp will need to be inserted in the right slot !

Finally, you have to be careful that the drive inserted first on the system will be recognised as Volume_1. So to keep your first drive shares running, you will have to make sure that is is recognised first on the system, after the new drive has been formatted.

So, to add a new disk to your DNS-323, without risk, keeping fun_plug running and keeping your actual shares, you have to carefully follow few steps.

Read more: DNS 323 - Add a second disk : the safe side

DNS 325 - Extend your NAS possibilities with Funplug 0.5

dropcap-dns325

DNS-325, like its elder brother DNS-323, is a very versatile NAS that can be extended heavily by installing fun_plug script.

The main advantage of DNS-325 over DNS-323 or even DNS-320, is its horse power (1.2 GHz processor) and its embedded RAM (256 Mb). We are in front of a real home server !

Fun_plug script opens the gate to some very interesting extension possibilities.

It won't explain how to install fun_plug 0.5 script on a brand new DNS-325, as it is explained in details on this page of NAS Tweak site.

It will focus on few other important aspects :

  • detection of the DNS-325 NAS device in your LAN from a Linux workstation (without the Windows utility)
  • installation of third-party software repositories (Fonz, Uli, Optware)
  • installation of basic packages that will be used by many others (python, ...)

Once your have gone thru all these steps, you can focus on some much more rewarding procedures for your DNS-325 :

  • install a LAMP server
  • Install a Transmission client
  • Install an OpenVPN server
  • Send mails thru Gmail account from shell scripts

This article has been tested on a DNS-325 with firmware 1.02.

fun_plug 0.5 is kind of deprecated.
You are advised to follow the latest one DNS 325 - Fun_plug 0.7 : Extend your NAS possibilities.

Read more: DNS 325 - Extend your NAS possibilities with Funplug 0.5

DNS 323 - Funplug 0.5 : Install Twonkymedia Server 7

dropcap-dns323-twonky

DNS-323 is a very versatile little NAS that is widely used to serve music and video files thru Samba network shares. With the help of fun_plug scipt, you can extend its capabilities quite easily.

One very interesting extension is to install TwonkyMedia server 7, a very efficient and low memory print DLNA & uPnP media server.

TwonkyMedia is one of the most efficient DLNA server you can get on a low power device like DNS-323.

It can easily serve music and video files to some network clients like :

Roku Soundbridge Network Player (uPnP)
Philips Network Player NP2500 (uPnP)
player-lg-42ml615s LG connected TV (DLNA)

It can handle easily a huge mp3 database (20k+ files) and it can stream 1080p videos (2D or 3D SBS) to your DLNA TV without any problem.

The use of TwonkyMedia server has one drawback : It needs a licence key to run. You can buy one from their site or you can get one attached with some network players, like Philips NPxxxx. Point to be noted, a Twonkymedia server key will work on any number of servers and on any type of supported OS.

This article will explain how to install TwonkyMedia server 7 on the NAS.

As a pre-requisite, you must have installed Fun_plug 0.5 following DNS 323 - Fun_plug 0.5 : Extend your NAS possibilities.

Read more: DNS 323 - Funplug 0.5 : Install Twonkymedia Server 7

DNS 323 - Extend your NAS possibilities with Funplug 0.5

DNS-323

DNS-323 is a fantastic little NAS storage, able to host 4 Tb of data thru 2 SATA hard disks up to 2 Tb each.

It offers a lot of embedded possibilities (samba & nfs shares, iTunes server, uPnp server, ...).

Thanks to a very active community, its possibilities can be expanded even more thru a scripting method called ffp.

It allows to start some more services, shaping the DNS-323 into a very versatile appliance.

Most of the informations you will get in this article has been collected and consolidated from http://nas-tweaks.net/http://wiki.dns323.info/

So, this article will explain in an easy way how to transform your DNS-323 in a fantastic little home server with lots of open possibilities left.

All following operations have been done on a DNS 323 (firmware 1.08) with one or two disks, but no RAID configured.

Read more: DNS 323 - Extend your NAS possibilities with Funplug 0.5

DNS 325 - Funplug 0.7 : Administrate your NAS with Ajaxterm

dropcap-dns325-ajaxterm

You may have to administrate your DNS-325 in console mode when you are away from home, without any SSH client available.

An easy and efficient solution is to use Ajaxterm SSH Web terminal.

It allows you to connect to your NAS with a simple Browser. You will be in front of a real SSH console, but within your browser.

This article will explain how to install Ajaxterm on your DNS-325. It should also be compatible with a DNS-320, but I've not tested it.

A pre-requisite is to have fully prepared your DNS-325 following DNS 325 - Fun_plug 0.7 : Extend your NAS possibilities (Optware is not needed anymore).

Read more: DNS 325 - Funplug 0.7 : Administrate your NAS with Ajaxterm

Page 2 of 2