<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>bernhard.hensler.net &#187; synology</title>
	<atom:link href="http://bernhard.hensler.net/blog/tag/synology/feed/" rel="self" type="application/rss+xml" />
	<link>http://bernhard.hensler.net/blog</link>
	<description></description>
	<lastBuildDate>Mon, 28 Jun 2010 13:52:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>DNS Services (bind) and Synology cs407</title>
		<link>http://bernhard.hensler.net/blog/dns-services-and-synology-cs407/</link>
		<comments>http://bernhard.hensler.net/blog/dns-services-and-synology-cs407/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 10:01:36 +0000</pubDate>
		<dc:creator>bernhard</dc:creator>
				<category><![CDATA[container]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[synology]]></category>

		<guid isPermaLink="false">http://bernhard.hensler.net/blog/?p=1095</guid>
		<description><![CDATA[Setup of your CS407

ssh login to your CS407
ipkg -force-depends install bind (provided you have configured optware for your CS407) &#8212; link &#8211;
I pretty much followed the instructions for setting up and configuring a primary DNS server, so nothing to add from my side
reverse DNS lookup of any IP address in the local zone doesn&#8217;t work [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Setup of your CS407</strong></p>
<ul>
<li>ssh login to your CS407</li>
<li>ipkg -force-depends install bind (provided you have configured optware for your CS407) &#8212; <a href="http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/" target="_blank" class="liexternal">link</a> &#8211;</li>
<li>I pretty much followed the <a href="http://www.nslu2-linux.org/wiki/HowTo/BuildPrimaryDNSServer" target="_blank" class="liexternal">instructions</a> for setting up and configuring a primary DNS server, so nothing to add from my side</li>
<li>reverse DNS lookup of any IP address in the local zone doesn&#8217;t work so far (any hint appreciated)</li>
</ul>
<p>Alternatively a <a href="http://www.nslu2-linux.org/wiki/Optware/DnsMasq" target="_blank" class="liexternal">DNSMasq</a> package is available &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://bernhard.hensler.net/blog/dns-services-and-synology-cs407/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>openldap and Synology CS407</title>
		<link>http://bernhard.hensler.net/blog/openldap-and-synology-cs407/</link>
		<comments>http://bernhard.hensler.net/blog/openldap-and-synology-cs407/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 14:08:07 +0000</pubDate>
		<dc:creator>bernhard</dc:creator>
				<category><![CDATA[container]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[synology]]></category>

		<guid isPermaLink="false">http://bernhard.hensler.net/blog/?p=1081</guid>
		<description><![CDATA[Setup of your CS407

ssh login to your CS407
ipkg -force-depends install openldap (provided you have configured optware for your CS407) &#8212; link &#8211;
cd /opt/etc/openldap/ and edit slapd.conf and add the following lines (take a look at the README to define which schema files are appropriate for your environment) &#8211; below listed schema files are made available [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Setup of your CS407</strong></p>
<ul>
<li>ssh login to your CS407</li>
<li>ipkg -force-depends install openldap (provided you have configured optware for your CS407) &#8212; <a href="http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/" target="_blank" class="liexternal">link</a> &#8211;</li>
<li>cd /opt/etc/openldap/ and edit slapd.conf and add the following lines (take a look at the README to define which schema files are appropriate for your environment) &#8211; below listed schema files are made available through the installation process:</li>
</ul>
<p style="padding-left: 60px;">include         /opt/etc/openldap/schema/core.schema<br />
include         /opt/etc/openldap/schema/cosine.schema<br />
include         /opt/etc/openldap/schema/inetorgperson.schema<br />
include         /opt/etc/openldap/schema/rfc2307bis.schema<br />
include         /opt/etc/openldap/schema/ppolicy.schema</p>
<p><span id="more-1081"></span></p>
<ul>
<li>then start the ldap daemon with the following command: /opt/libexec/slapd</li>
<li>I use &#8220;<a href="http://directory.apache.org/studio/" target="_blank" class="liexternal">Apache Directory Studio</a>&#8221; (an Eclipse based LDAP Browser and Directory client) to manage and administer the openldap (you should find the credentials in slapd.conf).</li>
<li>create your base DN (e.g.: dc=private,dc=lan)</li>
<li>once a base DN has been created you should find the following lines in slapd.conf:</li>
</ul>
<p style="padding-left: 60px;">
##################<br />
# BDB database definitions<br />
##################</p>
<p style="padding-left: 60px;">database        bdb<br />
suffix          &#8220;dc=private,dc=lan&#8221;<br />
rootdn          &#8220;cn=administrator,dc=private,dc=lan&#8221;<br />
rootpw          ***********<br />
directory       /opt/var/openldap-data<br />
checkpoint 1024 5<br />
cachesize 10000<br />
# Indices to maintain<br />
checkpoint 1024 5<br />
cachesize 10000<br />
index objectClass,uidNumber,gidNumber eq<br />
index member,mail eq,pres<br />
index cn,displayname,uid,sn,givenname sub,eq,pres</p>
<ul>
<li>once your base DN definitions are OK, you can continue creating / importing your user / groups definitions (e.g. by creating ldif files)</li>
<li>if you need to add your own objectclass or attribute definitions, take a look at a schema extension file I created to provide basic Lotus Notes/Domino LDAP attributes (attibute definitions must be defined first):</li>
</ul>
<p style="padding-left: 60px;">objectidentifier DominoOC 2.16.840.1.113678.2.2.2.1.1<br />
objectidentifier DominoAT 2.16.840.1.113678.2.2.2.2.1</p>
<p style="padding-left: 60px;">##<br />
## Attribute Section<br />
##</p>
<p style="padding-left: 60px;">attributetype ( DominoAT:1 NAME ( &#8216;MailServer&#8217; )<br />
EQUALITY caseIgnoreMatch<br />
SUBSTR caseIgnoreSubstringsMatch<br />
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )</p>
<p style="padding-left: 60px;">attributetype ( DominoAT:2 NAME ( &#8216;MailFile&#8217; )<br />
EQUALITY caseIgnoreMatch<br />
SUBSTR caseIgnoreSubstringsMatch<br />
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )</p>
<p style="padding-left: 60px;">attributetype ( DominoAT:3 NAME ( &#8216;HTTP-HostName&#8217; )<br />
EQUALITY caseIgnoreMatch<br />
SUBSTR caseIgnoreSubstringsMatch<br />
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )</p>
<p style="padding-left: 60px;">attributetype ( DominoAT:4 NAME ( &#8216;HTTP-Port&#8217; )<br />
EQUALITY caseIgnoreMatch<br />
SUBSTR caseIgnoreSubstringsMatch<br />
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )</p>
<p style="padding-left: 60px;">attributetype ( DominoAT:5 NAME ( &#8216;notesDN&#8217; )<br />
DESC &#8216;attribute to uniquely identify a domino user&#8217;<br />
EQUALITY caseIgnoreMatch<br />
SUBSTR caseIgnoreSubstringsMatch<br />
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )</p>
<p style="padding-left: 60px;">##<br />
## Objectclass Section<br />
##</p>
<p style="padding-left: 60px;">objectclass ( DominoOC:1 NAME ( &#8216;dominoPerson&#8217; ) SUP top AUXILIARY<br />
DESC &#8216;represents the dominoPerson object class&#8217;<br />
MAY ( notesDN $ MailServer $ MailFile ) )</p>
<p style="padding-left: 60px;">objectclass ( DominoOC:2 NAME ( &#8216;dominoServer&#8217; ) SUP top STRUCTURAL<br />
DESC &#8216;represents the dominoServer object class&#8217;<br />
MAY  ( cn $ displayName $ description $ HTTP-HostName $ HTTP-Port))</p>
<p style="padding-left: 60px;">
<ul>
<li>add the schema extensions using the include command to your slapd.conf</li>
<li>the installation also adds a script to automatically start the ldap daemon when rebooting your cs407 (/opt/etc/init.d/S58slapd)</li>
<li>if you need to stop the ldap process: killall slapd</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://bernhard.hensler.net/blog/openldap-and-synology-cs407/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>openvpn and PKI and Synology CS407</title>
		<link>http://bernhard.hensler.net/blog/openvpn-and-pki-and-synology-cs407/</link>
		<comments>http://bernhard.hensler.net/blog/openvpn-and-pki-and-synology-cs407/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 16:28:44 +0000</pubDate>
		<dc:creator>bernhard</dc:creator>
				<category><![CDATA[container]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[synology]]></category>

		<guid isPermaLink="false">http://bernhard.hensler.net/blog/?p=1002</guid>
		<description><![CDATA[The following is a summary of all required steps to enable your CS407 to use openvpn with your own PKI &#8211; I was following these  instructions. If you want to install and configure openvpn, follow this link.

download and extract openvpn-2.x.zip
copy easy-rsa folder to /opt/etc/openvpn/easy-rsa
edit vars in folder  /opt/etc/openvpn/easy-rsa
export KEY_CONFIG=/opt/etc/openvpn/easy-rsa/openssl.cnf
export KEY_DIR=/opt/etc/openvpn/private.lan/keys
export KEY_COUNTRY=YOURCOUNTRY
export KEY_PROVINCE=YOURPROVINCE
export KEY_CITY=YOURCITY
export [...]]]></description>
			<content:encoded><![CDATA[<p>The following is a summary of all required steps to enable your CS407 to use openvpn with your own PKI &#8211; I was following these  <a href="http://openvpn.net/index.php/documentation/howto.html#pki" target="_blank" class="liexternal">instructions</a>. If you want to install and configure openvpn, follow this <a href="http://bernhard.hensler.net/blog/?p=986" target="_blank" class="liinternal">link</a>.</p>
<ol>
<li>download and extract <a href="http://openvpn.net/index.php/downloads.html" target="_blank" class="liexternal">openvpn-2.x.zip</a></li>
<li>copy easy-rsa folder to /opt/etc/openvpn/easy-rsa</li>
<li>edit vars in folder  /opt/etc/openvpn/easy-rsa<br />
export KEY_CONFIG=/opt/etc/openvpn/easy-rsa/openssl.cnf<br />
export KEY_DIR=/opt/etc/openvpn/private.lan/keys<br />
export KEY_COUNTRY=YOURCOUNTRY<br />
export KEY_PROVINCE=YOURPROVINCE<br />
export KEY_CITY=YOURCITY<br />
export KEY_ORG=&#8221;YOURCOMPANY&#8221;<br />
export KEY_EMAIL=&#8221;YOUREMAILADDRESS&#8221;</li>
<li>switch to bash shell: bash-3.2#</li>
<li>. vars</li>
<li>./clean-all</li>
</ol>
<p><span id="more-1002"></span>As you create certificates, keys, and certificate signing requests, understand that only .key files should be kept confidential.  .crt and .csr files can be sent over insecure channels such as plaintext email.</p>
<ul>
<li>Start with building your own <strong>Certificate Authority</strong></li>
<li>./build-ca</li>
</ul>
<p style="padding-left: 60px;">Generating a 1024 bit RSA private key, writing new private key to &#8216;ca.key&#8217;<br />
You are about to be asked to enter information that will be incorporated into your certificate request. This information is retrieved from your vars file<br />
For the Common Name use  e.g. a combination of your server name and MAC address: CS4071101AF2018964</p>
<ul>
<li>Create your <strong>server key </strong>files</li>
<li>./build-key-server server</li>
</ul>
<p style="padding-left: 60px;">Generating a 1024 bit RSA private key, writing new private key to &#8217;server.key&#8217;<br />
Common Name (eg, your name or your server&#8217;s hostname) :cs407<br />
Sign the certificate? [y/n]:y<br />
1 out of 1 certificate requests certified, commit? [y/n]y</p>
<ul>
<li>Then create your <strong>client key</strong> files</li>
<li>./build-key thinkpad</li>
</ul>
<p style="padding-left: 60px;">Generating a 1024 bit RSA private key, writing new private key to &#8216;thinkpad.key&#8217;<br />
Common Name (eg, your name or your server&#8217;s hostname) []:thinkpad<br />
Sign the certificate? [y/n]:y<br />
1 out of 1 certificate requests certified, commit? [y/n]y</p>
<ul>
<li>Generate Diffie Hellman parameters</li>
<li>./build-dh</li>
</ul>
<p>Using tls-auth requires that you generate a shared-secret key that is used in addition to the standard RSA certificate/key:</p>
<ul>
<li>openvpn &#8211;genkey &#8211;secret ta.key</li>
</ul>
<p>In the server configuration file (<strong>server.ovpn</strong>), add:</p>
<p style="padding-left: 30px;">tls-auth ta.key 0<br />
max-clients 5 (or any number)</p>
<p>Copy the following files to the CS407 folder /opt/etc/openvpn/config:</p>
<ol>
<li> ca.crt</li>
<li>dh1024.pem</li>
<li>server.crt</li>
<li>server.key</li>
<li>server.ovpn</li>
<li>ta.key</li>
</ol>
<p>Copy the following files to your client folder C:\Program Files\OpenVPN\config</p>
<ol>
<li> ca.crt</li>
<li>thinkpad.crt</li>
<li>thinkpad.key</li>
<li>client.ovpn</li>
<li>ta.key</li>
</ol>
<p>In the client configuration file (<strong>client.ovpn</strong>), add:</p>
<p>tls-auth ta.key 1</p>
<p>Restart openvpn on your CS407 and connect your <a href="http://openvpn.se/download.html" target="_blank" class="liexternal">openvpn client</a>:</p>
<p>cd /opt/etc/init.d<br />
sh S24openvpn</p>
<p>In case you need to <strong>revoke access</strong> for specific users:</p>
<p>. vars<br />
./revoke-full &#8220;clientname&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://bernhard.hensler.net/blog/openvpn-and-pki-and-synology-cs407/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>openvpn with Synology CS407</title>
		<link>http://bernhard.hensler.net/blog/openvpn-with-synology-cs407/</link>
		<comments>http://bernhard.hensler.net/blog/openvpn-with-synology-cs407/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 20:17:04 +0000</pubDate>
		<dc:creator>bernhard</dc:creator>
				<category><![CDATA[container]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[synology]]></category>

		<guid isPermaLink="false">http://bernhard.hensler.net/blog/?p=986</guid>
		<description><![CDATA[I took the liberty to copy from the following tutorial:  nas-forum

Setup of your CS407

ssh login to your CS407
ipkg -force-depends install openvpn (provided you have configured optware for your CS407) &#8212; link &#8211;
mkdir /dev/net
mknod /dev/net/tun c 10 200
mkdir /lib/modules/2.6.15
download tun.ko (this is the kernel 2.6 version; to download you will have to register)
cp tun.ko /lib/modules/2.6.15/
echo 1 [...]]]></description>
			<content:encoded><![CDATA[<p>I took the liberty to copy from the following tutorial:  <a href="http://www.nas-forum.com/forum/index.php?showtopic=1886&amp;st=0" target="_blank">nas-forum<br />
</a></p>
<p><strong>Setup of your CS407</strong></p>
<ol>
<li>ssh login to your CS407</li>
<li>ipkg -force-depends install openvpn (provided you have configured optware for your CS407) &#8212; <a href="http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/" target="_blank" class="liexternal">link</a> &#8211;</li>
<li>mkdir /dev/net</li>
<li>mknod /dev/net/tun c 10 200</li>
<li>mkdir /lib/modules/2.6.15</li>
<li>download <a href="http://www.nas-forum.com/forum/index.php?automodule=downloads&amp;showfile=127" target="_blank" class="liexternal">tun.ko</a> (this is the kernel 2.6 version; to download you will have to register)</li>
<li>cp tun.ko /lib/modules/2.6.15/</li>
<li>echo 1 &gt; /proc/sys/net/ipv4/ip_forward</li>
</ol>
<p><span id="more-986"></span>If you want to download the <strong>sample server/client configuration files</strong>, follow below links:</p>
<p>&#8211; <a href="http://ikeke.free.fr/syno/OpenVPN-Conf-Serv.rar" target="_blank" class="lizip">server </a>&#8211;<br />
&#8211; <a href="http://ikeke.free.fr/syno/OpenVPN-Conf-Client.rar" target="_blank" class="lizip">client </a>&#8211;</p>
<p>Then:</p>
<ol>
<li>cp -R /volume1/public/config /opt/etc/openvpn/</li>
<li>cd /opt/etc/openvpn</li>
<li>chown -R root openvpn</li>
<li>chgrp -R root openvpn</li>
<li>chmod -R 755 openvpn</li>
</ol>
<p><strong>For autostart:</strong></p>
<ol>
<li>cp /opt/etc/openvpn/config/S24openvpn /opt/etc/init.d/</li>
<li>chmod 755 /opt/etc/init.d/S24openvpn</li>
</ol>
<p><strong>Start your VPN Server:</strong><span style="color: #4169e1;"><!--colorc--></span><!--/colorc--></p>
<p>cd /opt/etc/init.d<br />
sh S24openvpn</p>
<p><strong>Download <a href="http://openvpn.se/download.html" target="_blank" class="liexternal">openvpn client</a></strong></p>
<p>- to be able to reach other private subnets behind the server (CS407)when connecting through VPN add a route on your local clients (e.g. 192.168.1.111): &#8220;route ADD  -p 192.168.11.0 MASK 255.255.255.0 192.168.1.7&#8243;</p>
<p>[192.168.11.0 - your VPN network] : [192.168.1.7 - your CS407] : [192.168.1.0 - your local network]</p>
<p>==&gt; next step is to create your own PKI, which you will find <a href="http://bernhard.hensler.net/blog/?p=1002" target="_blank" class="liinternal">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bernhard.hensler.net/blog/openvpn-with-synology-cs407/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to enable NFS on the Synology Server</title>
		<link>http://bernhard.hensler.net/blog/how-to-enable-nfs-on-the-synology-server/</link>
		<comments>http://bernhard.hensler.net/blog/how-to-enable-nfs-on-the-synology-server/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 15:30:06 +0000</pubDate>
		<dc:creator>bernhard</dc:creator>
				<category><![CDATA[container]]></category>
		<category><![CDATA[synology]]></category>

		<guid isPermaLink="false">http://bernhard.hensler.net/blog/?p=950</guid>
		<description><![CDATA[obsolete with Firmware version: DSM 2.0-722
This is a guide on how to enable the NFS capabilities of the Synology product. This procedure is aimed for users who are experienced with Telnet and the Linux Operating System. Please note that improper manipulation or modification of the Synology server may result in machine malfunction or loss of [...]]]></description>
			<content:encoded><![CDATA[<p><em>obsolete with Firmware version: DSM 2.0-722</em></p>
<p>This is a guide on how to enable the <a href="http://en.wikipedia.org/wiki/Network_File_System_%28protocol%29" rel="nofollow" class="liwikipedia">NFS</a> capabilities of the Synology product. This procedure is aimed for users who are experienced with Telnet and the Linux Operating System. Please note that improper manipulation or modification of the Synology server may result in machine malfunction or loss of data.<span id="more-950"></span></p>
<p>Please make sure that the Synology product has firmware 2.0.3 &#8211; 0518 or above, along with the <a href="http://www.synology.com/wiki/index.php/How_to_Enable_Telnet" title="How to Enable Telnet" class="liexternal">Telnet service</a> or <a href="http://www.synology.com/wiki/index.php/How_to_enable_SSH_Service" title="How to enable SSH Service" class="liexternal">SSH Service</a> enabled.  Both files can be found <a href="http://www.synology.com/enu/support/download.php" class="external text" title="http://www.synology.com/enu/support/download.php" rel="nofollow">here</a>.</p>
<h2><span>Instructions for the NFS Server</span></h2>
<p>Telnet into the Synology product and perform the following</p>
<h3><span>Enabling Service</span></h3>
<pre>cd /usr/syno/etc/rc.d
mv S83nfsd.sh.sample S83****.sh
reboot (or /usr/syno/etc/rc.d/S83****.sh start)
vi /etc/exports</pre>
<p>Note: * needs to be replaced with a number</p>
<h3><span>Exports file</span></h3>
<p>In the exports file, add the following line</p>
<pre>e.g.: /volume1/upload 192.168.* (ro,root_squash,no_subtree_check)</pre>
<p>Save the export file   Check if the file /var/lib/nfs/rmtab does exist, if not, then run the following command:</p>
<pre>touch /var/lib/nfs/rmtab</pre>
<p>Now perform the following command</p>
<pre>cd /
/usr/sbin/exportfs -a</pre>
<h3><span>Testing</span></h3>
<p>Look at /var/log/messages to check whether the settings are ok with your Synology product</p>
<h2><span>Instructions for Linux NFS Client</span></h2>
<p>On your NFS client, perform the following to mount the NFS Server share</p>
<pre>mount IP.of.Synology.NAS.Server:/volume1/upload /mnt</pre>
<p>Note: /volume1/local/share/folder must exist locally, otherwise the mount will fail.</p>
<h2><span>Notes</span></h2>
<p>The NFS Service is disabled after every firmware upgrade.<br />
The NFS mount is not shown in the web interface<br />
Files saved on the Synology server are case-insensitive.</p>
<p>Supported versions:</p>
<dl>
<dd>NFS 2.0 </dd>
<dd>NFS 3.0 </dd>
</dl>
<h2><span> MTU Jumbo frames </span></h2>
<p>For some NFS clients (eg. TViX 6500/7000), errors are reported if jumbo frames are enabled. Mounting the NFS is possible: try disabling the jumbo frames setting in the Synology Disk Station Manager</p>
<h2><span>Additional Resources</span></h2>
<p>http://www.synology.com/enu/forum/viewforum.php?f=41</p>
<p>http://www.faqs.org/docs/securing/chap5sec33.html</p>
<p>http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/custom-guide/s1-nfs-mount.html</p>
<p>http://www.synology.com/wiki/index.php/Export_Filesystem_as_NFS</p>
<p>http://www.synology.com/wiki/index.php/How_to_enable_NFS_on_the_Synology_Server</p>
]]></content:encoded>
			<wfw:commentRss>http://bernhard.hensler.net/blog/how-to-enable-nfs-on-the-synology-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iTunes server with FireFly (mt-daapd) on Synology CS407</title>
		<link>http://bernhard.hensler.net/blog/itunes-server-with-firefly-mt-daapd-on-synology-cs407/</link>
		<comments>http://bernhard.hensler.net/blog/itunes-server-with-firefly-mt-daapd-on-synology-cs407/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 19:47:14 +0000</pubDate>
		<dc:creator>bernhard</dc:creator>
				<category><![CDATA[container]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[synology]]></category>

		<guid isPermaLink="false">http://bernhard.hensler.net/blog/?p=375</guid>
		<description><![CDATA[I couldn&#8217;t find a suitable version of firefly to run on my Synology cs407 (a version I found (1) was missing e.g.  FLAC support).  So I decided to create my own following below&#8217;s short instructions.

download bootstrap for cs407 from http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/
sh syno-x07-bootstrap_1.2-3_arm.xsh
follow instructions (reboot) and run bootstrap.sh
&#8220;ipkg install&#8221; required libraries: e.g. gdbm, libid3tag, sqlite_3, codec support [...]]]></description>
			<content:encoded><![CDATA[<p>I couldn&#8217;t find a suitable version of <a href="http://www.fireflymediaserver.org/" target="_blank" class="liexternal">firefly</a> to run on my Synology cs407 (a version I found <a href="http://www.synology.com/wiki/index.php/Compiled_programs_for_Marvell_mv5281_ARM-based_Synology_Products#Firefly.2FMt-daapd_by_Mike" target="_blank" class="liexternal">(1)</a> was missing e.g.  FLAC support).  So I decided to create my own following below&#8217;s short instructions.<span id="more-375"></span></p>
<ol>
<li>download bootstrap for cs407 from http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/</li>
<li>sh syno-x07-bootstrap_1.2-3_arm.xsh</li>
<li>follow instructions (reboot) and run bootstrap.sh</li>
<li>&#8220;ipkg install&#8221; required libraries: e.g. gdbm, libid3tag, sqlite_3, codec support and  gcc (lib prerequisites are echoed when installing)</li>
<li>download latest nightly build from firefly (mt-daapd-svn-1696.tar.gz)</li>
<li>compile with gcc and following options: ./configure &#8211;enable-sqlite3 &#8211;enable-oggvorbis &#8211;enable-flac &#8211;enable-mdns &#8211;prefix=/opt/local/mt-daapd</li>
<li>then &#8220;make&#8221; and make &#8220;install&#8221;</li>
<li>add lib path  to &#8220;/root/.profile&#8221;: export LD_LIBRARY_PATH=/opt/local/lib</li>
<li>for autostart copy &#8220;/opt/local/mt-daapd/etc/S99firefly.sh&#8221; to &#8220;/usr/syno/etc/rc.d/S99firefly.sh&#8221;</li>
</ol>
<p>A good web client is <a href="http://www.mellberg.org/FirePlay.zip" target="_blank" class="lizip">FirePlay</a> &#8211; if an iPhone version is needed use <a href="http://www.google.ch/url?sa=t&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fffmcrossfire%2F&amp;ei=O_6ZSLGJOoOE0QXK-ZWbCA&amp;usg=AFQjCNGe8jRhy4RYwsOjoM9oFl6b00Z9Dw&amp;sig2=YmkzO_DJTmarUeQvUazQOA" target="_blank" class="liexternal">CrossFire</a>.</p>
<p>Instead of using the built-in versions of UPNP and MT-DAAPD (which is basically an old version of FireFly performing very badly) of my cs407 I now have TwonkyVision to stream media to my PS3 and a FireFly to stream music when being outside of my local network; this also requires to forward port 3689 in the router.</p>
<p>When using iTunes remotely use Rendezvous proxy or the FirePlay web client.</p>
]]></content:encoded>
			<wfw:commentRss>http://bernhard.hensler.net/blog/itunes-server-with-firefly-mt-daapd-on-synology-cs407/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Synology: enable ssh user login other than root</title>
		<link>http://bernhard.hensler.net/blog/synology-enable-ssh-user-login-other-than-root/</link>
		<comments>http://bernhard.hensler.net/blog/synology-enable-ssh-user-login-other-than-root/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 09:12:20 +0000</pubDate>
		<dc:creator>bernhard</dc:creator>
				<category><![CDATA[container]]></category>
		<category><![CDATA[synology]]></category>

		<guid isPermaLink="false">http://bernhard.hensler.net/blog/?p=338</guid>
		<description><![CDATA[Synology Forum
SSH can either be enabled using the latest firmware and a patch, or using the recent beta firmware which allows you enable and disable SSH from the web-based management interface. However, I was a little concerned about the default settings of SSHD, especially if one were to SSH over the internet and not just [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://synology.com/enu/forum/viewtopic.php?f=36&amp;t=9015&amp;p=37923&amp;hilit=enable+ssh+user+login+other+than+root#p37923" target="_blank" class="liexternal">Synology Forum</a></p>
<p>SSH can either be enabled using the latest firmware and a patch, or using the recent beta firmware which allows you enable and disable SSH from the web-based management interface. <span id="more-338"></span>However, I was a little concerned about the default settings of SSHD, especially if one were to SSH over the internet and not just a local network. First, SSH protocol 1 is enabled which can be a security risk. Second, root login is permitted (which is understandable since regular users can&#8217;t seem to SSH in by default. Unfortunately, there are some caveats to disabling root login via SSH, which I discuss at the end of this post). Here are the steps I took to resolve the above issues (I assume you already have SSH working and can login as root or admin. Also, you should know how to use vi, or at least read this introduction):</p>
<p>1. Create a regular user from the web-based management interface if you have not done so already. Let&#8217;s say the username is frank.</p>
<p>2. Login as root via SSH.</p>
<p>3. Execute the following from the command line as root:</p>
<p>mkdir /volume1/users<br />
mkdir /volume1/users/frank<br />
cp /root/.profile /volume1/users/frank<br />
chown -R frank:users /volume1/users/frank<br />
vi /volume1/users/frank/.profile</p>
<p>Change the line that reads &#8220;HOME=/root&#8221; to &#8220;HOME=/volume1/users/frank&#8221;, then quit saving changes.</p>
<p>4. Execute the following from the command line as root:</p>
<p>cp -p /etc/passwd /etc/passwd.orig<br />
vi /etc/passwd</p>
<p>Change frank&#8217;s home directory (entry before the last &#8220;:&#8221;)from &#8220;/nonexist&#8221; to &#8220;/volume1/users/frank&#8221;<br />
and his shell (entry after the last &#8220;:&#8221;) from &#8220;/sbin/nologin&#8221; to &#8220;/bin/sh&#8221;, then quit saving changes.*</p>
<p>5. Make sure you can login as frank by executing the following from the command line as root:</p>
<p>su &#8211; frank<br />
pwd<br />
echo $HOME<br />
exit</p>
<p>6. Execute the following from the command line as root:</p>
<p>cp -p /etc/ssh/sshd_config /etc/ssh/sshd_config.orig<br />
vi /etc/ssh/sshd_config</p>
<p>Change the line &#8220;#Protocol 2,1&#8243; to &#8220;Protocol 2&#8243; and the line &#8220;#PermitRootLogin yes&#8221; to &#8220;PermitRootLogin no&#8221;, then quit saving changes (notice we removed the &#8220;#&#8221; from both lines).</p>
<p>You may also want to adjust the &#8220;LoginGraceTime&#8221; and &#8220;MaxAuthTries&#8221; settings, just be sure to remove the leading &#8220;#&#8221; from those lines.</p>
<p>7. Restart SSHD. If you are using the beta firmware you can disable then enable the service using the web-based management interface. If not, you may be able to use the disable SSH patch, then the enable SSH patch which may restart your NAS device (I have not tested this), or you can simply execute the following from the command line as root:</p>
<p>/usr/syno/etc.defaults/rc.d/S95sshd.sh restart</p>
<p>I have not personally tested the above command either, and it may end your SSH session if that is where you execute it from. Alternatively, you could temporarily enable Telnet, login as root to execute the command above, then log out and disable Telnet.</p>
<p>8. Test the changes. If you use &#8220;ssh -1 user@host&#8221; when connecting to your NAS device, you should get an error that reads something like &#8220;Protocol major versions differ: 1 vs. 2&#8243;. If you try to SSH in as root, it should prompt you for the password, but give you an error like &#8220;Permission denied, please try again.&#8221; even if you supply the correct password. Finally, you should be able to login via SSH as your regular user (i.e. frank).</p>
<p>*Please note, that if you change your regular user&#8217;s info (like password, etc.) using the web-based management interface, the information in /etc/passwd will revert back to the defaults, which will no longer let you login via SSH using that user. If this happens, don&#8217;t panic, you can always SSH in as admin (which should have the same password as root, but not the same privileges). Unfortunately, only root can execute the &#8220;su&#8221; command, so to allow your regular user to use SSH again you will have to temporarily enable Telnet, login as root, repeat step #4 above, logout and disable Telnet.</p>
<p>Telnet is also the only way to regain root command line access, which is required to edit &#8220;/etc/ssh/sshd_config&#8221;, should you want to restore root SSH logins at some point. Alternatively, one could install sudo to execute commands as root, but that is beyond the scope of this post.</p>
<p>Hope this helps anyone wanting to secure SSH access. I used information from the following posts to accomplish this:<br />
how to rsync over ssh as an unprivileged user<br />
how restart SSH server</p>
]]></content:encoded>
			<wfw:commentRss>http://bernhard.hensler.net/blog/synology-enable-ssh-user-login-other-than-root/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
