<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>pwn-o-rama &#187; wlx652</title>
	<atom:link href="http://blog.pwn.cl/tag/wlx652/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pwn.cl</link>
	<description>occasionally braindumps</description>
	<lastBuildDate>Mon, 05 Jul 2010 00:14:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by/2.0/cl/</creativeCommons:license>		<item>
		<title>Samba tuning SnakeOS firmware</title>
		<link>http://blog.pwn.cl/2009/12/samba-tuning-snakeos-firmware/</link>
		<comments>http://blog.pwn.cl/2009/12/samba-tuning-snakeos-firmware/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 02:46:54 +0000</pubDate>
		<dc:creator>sneira</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[nas]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[snakeos]]></category>
		<category><![CDATA[tuning]]></category>
		<category><![CDATA[wlx652]]></category>

		<guid isPermaLink="false">http://blog.pwn.cl/?p=282</guid>
		<description><![CDATA[Instalé SnakeOS en mi NAS WLX-652, y estaba experimentando un problema con Samba: en un recurso compartido del NAS que monto en mi PC, existen varios archivos AVI. Una vez iniciada la reproducción de estos, y en un período de tiempo aleatorio, los videos se congelaban. Pero justo en ese instante podía seguir accediendo a [...]]]></description>
			<content:encoded><![CDATA[<p>Instalé <a title=" DealExtreme NAS" href="http://groups.google.com/group/dealextreme-nas-" target="_blank">SnakeOS</a> en <a title="Technical review NAS USB WLX-652" href="http://blog.pwn.cl/2009/11/technical-review-nas-usb-wlx-652/#more-172" target="_blank">mi NAS WLX-652</a>, y estaba experimentando un problema con Samba: en un recurso compartido del NAS que monto en mi PC, existen varios archivos AVI. Una vez iniciada la reproducción de estos, y en un período de tiempo aleatorio, los videos se congelaban. Pero justo en ese instante podía seguir accediendo a otros servicios, cómo FTP y SSH. El nivel de carga era normal en el NAS, estaba seguro que no era un problema de recursos y que algo pasa con Samba. Luego de incluir ciertos parámetros sin éxito en el archivo de configuración /etc/smb.conf, tales cómo:</p>
<pre class="brush: plain; light: true;">
read raw = no
read prediction = true
read size = 65536
level2 oplocks = true
</pre>
<p>Todo seguía igual. Mi hipótesis era que Samba (versión 2.0.10-security-rollup), no se daba por enterado de que yo seguía viendo el video, que mi conexión aún estaba activa. Luego de revisar el man (5) de smb.conf, encontré el parámetro <strong>keepalive</strong></p>
<blockquote><p>keepalive (G)</p>
<p>The value of the parameter (an integer) represents the number of<br />
seconds between keepalive packets. If this parameter is zero, no<br />
keepalive packets will be sent. Keepalive packets, if sent, allow<br />
the server to tell whether a client is still present and<br />
responding</p></blockquote>
<p>Si estás con el mismo problema, encontrarás la solución a continuación:</p>
<p>Copia el archivo /etc/smb.conf desde el NAS a algún directorio en tu computador y edítalo. En la sección global agrega:</p>
<pre class="brush: plain; light: true;">
keepalive = 0
</pre>
<p>Luego súbelo vía SCP o FTP al directorio /etc del NAS, sobrescribe el original.  Ve a la interfaz web de SnakeOS a &#8220;<strong>Services&gt; Samba&gt; Restart</strong>&#8221; para reiniciar el servicio, por último a &#8220;<strong>System&gt; Config&gt; Save Config</strong>&#8221; para que los cambios en el archivo de configuración persistan después de un reinicio.</p>
<p>Esta es la sección global de mi /etc/smb.conf</p>
<pre class="brush: plain; light: true;">

[global]
server string = pulpero
smb passwd file = /etc/smbpasswd
security = SHARE
workgroup = WORKGROUP
encrypt passwords = true
short preserve case = yes
preserve case = yes
guest account = ftp
guest ok = yes
force user = root
force group = root
socket options = SO_KEEPALIVE TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384
character set = ISO8859-1
client code page = 850
keepalive = 0
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.pwn.cl/2009/12/samba-tuning-snakeos-firmware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
