<?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>Rodrigo Pérez (bilson) &#187; Linux</title> <atom:link href="http://bilson.cl/category/linux/feed/" rel="self" type="application/rss+xml" /><link>http://bilson.cl</link> <description>blog personal</description> <lastBuildDate>Wed, 11 Apr 2012 18:41:42 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Contar IP y cantidad de accesos en logs de apache</title><link>http://bilson.cl/2010/08/contar-ip-y-cantidad-de-accesos-en-logs-de-apache/</link> <comments>http://bilson.cl/2010/08/contar-ip-y-cantidad-de-accesos-en-logs-de-apache/#comments</comments> <pubDate>Tue, 17 Aug 2010 20:24:46 +0000</pubDate> <dc:creator>bilson</dc:creator> <category><![CDATA[apache]]></category> <category><![CDATA[Linux]]></category><guid
isPermaLink="false">http://bilson.cl/?p=68</guid> <description><![CDATA[No recuerdo de dónde lo saqué pero acá va: awk '{!a[$1]++}END{for(i in a) if ( a[i] &#62;10 ) print a[i],i }' ./access-log Se demoró una fracción de segundo en procesar un log de 500.000 líneas!]]></description> <content:encoded><![CDATA[<p>No recuerdo de dónde lo saqué pero acá va:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{!a[$1]++}END{for(i in a) if ( a[i] &gt;10 ) print a[i],i }'</span> .<span style="color: #000000; font-weight: bold;">/</span>access-log</pre></div></div><p>Se demoró una fracción de segundo en procesar un log de 500.000 líneas!</p> ]]></content:encoded> <wfw:commentRss>http://bilson.cl/2010/08/contar-ip-y-cantidad-de-accesos-en-logs-de-apache/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Instalar Gnome y Xorg en Centos con yum</title><link>http://bilson.cl/2010/08/instalar-gnome-y-xorg-en-centos-con-yum/</link> <comments>http://bilson.cl/2010/08/instalar-gnome-y-xorg-en-centos-con-yum/#comments</comments> <pubDate>Fri, 13 Aug 2010 00:51:58 +0000</pubDate> <dc:creator>bilson</dc:creator> <category><![CDATA[centos]]></category> <category><![CDATA[Linux]]></category><guid
isPermaLink="false">http://bilson.cl/?p=62</guid> <description><![CDATA[Si instalaste un centos sin entorno gráfico y ahora lo necesitas, la solución es: yum groupinstall &#34;X Window System&#34; &#34;GNOME Desktop Environment&#34; Yum es sensible a mayúsculas y minúsculas!]]></description> <content:encoded><![CDATA[<p> Si instalaste un centos sin entorno gráfico y ahora lo necesitas, la solución es:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">yum groupinstall <span style="color: #ff0000;">&quot;X Window System&quot;</span> <span style="color: #ff0000;">&quot;GNOME Desktop Environment&quot;</span></pre></div></div><p> Yum es sensible a mayúsculas y minúsculas!</p> ]]></content:encoded> <wfw:commentRss>http://bilson.cl/2010/08/instalar-gnome-y-xorg-en-centos-con-yum/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Túnel SSH</title><link>http://bilson.cl/2010/07/tunel-ssh/</link> <comments>http://bilson.cl/2010/07/tunel-ssh/#comments</comments> <pubDate>Fri, 09 Jul 2010 23:17:49 +0000</pubDate> <dc:creator>bilson</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[Ubuntu]]></category><guid
isPermaLink="false">http://bilson.cl/blog/?p=35</guid> <description><![CDATA[(Reviviendo post añejos) La situación es la siguiente: Estoy en mi casa, necesito conectarme a la máquina 1.2.3.4, por distintos protocolos (FTP, HTTP, SSH, SFTP), pero la máquina 1.2.3.4 tiene acceso restringido por IP, y sólo la IP 1.2.3.5 tiene acceso. Pero yo puedo entrar por ssh a 1.2.3.5. Solución: Hacer un túnel SSH. Cómo [...]]]></description> <content:encoded><![CDATA[<p>(Reviviendo post añejos)</p><p>La situación es la siguiente:</p><p>Estoy en mi casa, necesito conectarme a la máquina 1.2.3.4, por distintos protocolos (FTP, HTTP, SSH, SFTP), pero la máquina 1.2.3.4 tiene acceso restringido por IP, y sólo la IP 1.2.3.5 tiene acceso. Pero yo puedo entrar por ssh a 1.2.3.5.</p><p>Solución: Hacer un túnel SSH.</p><p>Cómo ?</p><p>Fácil:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-L</span> <span style="color: #000000;">10022</span>:1.2.3.4:<span style="color: #000000;">22</span> <span style="color: #660033;">-f</span> <span style="color: #660033;">-N</span> usuario<span style="color: #000000; font-weight: bold;">@</span>1.2.3.5</pre></div></div><p>De esta forma, yo hago ssh a localhost en el puerto 10022 y la conexión es redireccionada a 1.2.3.4, y ya estoy por ssh en la máquina que tenía restringido el acceso <img
src='http://bilson.cl/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /></p><p> Repetir el proceso para redireccionar más puertos.</p><p>Ejemplos:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-L</span> <span style="color: #000000;">1025</span>:1.2.3.4:<span style="color: #000000;">25</span> <span style="color: #660033;">-f</span> <span style="color: #660033;">-N</span> usuario<span style="color: #000000; font-weight: bold;">@</span>1.2.3.5
<span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-L</span> <span style="color: #000000;">1080</span>:1.2.3.4:<span style="color: #000000;">80</span> <span style="color: #660033;">-f</span> <span style="color: #660033;">-N</span> usuario<span style="color: #000000; font-weight: bold;">@</span>1.2.3.5
<span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-L</span> <span style="color: #000000;">10021</span>:1.2.3.4:<span style="color: #000000;">21</span> <span style="color: #660033;">-f</span> <span style="color: #660033;">-N</span> usuario<span style="color: #000000; font-weight: bold;">@</span>1.2.3.5
<span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-L</span> <span style="color: #000000;">10110</span>:1.2.3.4:<span style="color: #000000;">110</span> <span style="color: #660033;">-f</span> <span style="color: #660033;">-N</span> usuario<span style="color: #000000; font-weight: bold;">@</span>1.2.3.5</pre></div></div><p>Para puertos menores a 1025 se debe tener privilegios de root.</p> ]]></content:encoded> <wfw:commentRss>http://bilson.cl/2010/07/tunel-ssh/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 15/20 queries in 0.007 seconds using disk: basic

Served from: bilson.cl @ 2012-05-20 01:18:35 -->
