<?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>My brain is here</title>
	<atom:link href="http://casa.apertus.es/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://casa.apertus.es/blog</link>
	<description>I hope you like it.</description>
	<lastBuildDate>Thu, 29 Jul 2010 07:39:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Unicorn: HTML + CSS + RSS validator at once</title>
		<link>http://casa.apertus.es/blog/2010/07/29/unicorn-html-css-rss-validator-at-once/</link>
		<comments>http://casa.apertus.es/blog/2010/07/29/unicorn-html-css-rss-validator-at-once/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 07:05:23 +0000</pubDate>
		<dc:creator>Juan Jose Pablos</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[english]]></category>

		<guid isPermaLink="false">http://casa.apertus.es/blog/?p=409</guid>
		<description><![CDATA[<p>As saw in webmonkey W3C convine all the 3 validators in one page, so it gets easier to check your code against [...]]]></description>
			<content:encoded><![CDATA[<p>As saw in <a href="http://www.webmonkey.com/2010/07/w3cs-unicorn-validator-checks-multiple-standards-at-once/">webmonkey</a> W3C convine all the 3 validators in one page, so it gets easier to check your code against their test.</p>
]]></content:encoded>
			<wfw:commentRss>http://casa.apertus.es/blog/2010/07/29/unicorn-html-css-rss-validator-at-once/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitor command line output from openwrt backfire using snmp</title>
		<link>http://casa.apertus.es/blog/2010/07/27/monitor-command-line-output-from-openwrt-backfire-using-snmp/</link>
		<comments>http://casa.apertus.es/blog/2010/07/27/monitor-command-line-output-from-openwrt-backfire-using-snmp/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 08:54:39 +0000</pubDate>
		<dc:creator>Juan Jose Pablos</dc:creator>
				<category><![CDATA[Español]]></category>
		<category><![CDATA[openwrt]]></category>

		<guid isPermaLink="false">http://casa.apertus.es/blog/?p=377</guid>
		<description><![CDATA[<p>I have been using snmp to monitor Input and Output traffict from my router base on openwrt . but I want to know if if my  users have a virus spamer or they use P2P on my network?, how do you find out over the time?. I can run this command any time to find [...]]]></description>
			<content:encoded><![CDATA[<p>I have been using snmp to monitor Input and Output traffict from my router base on openwrt . but I want to know if <strong>if my  users have a virus spamer or they use P2P on my network?</strong>, how do you find out over the time?. I can run this command any time to find out how many connections there is on the router:</p>
<blockquote><p>root@OpenWrt:/jffs/etc#  cat /proc/net/ip_conntrack | wc -l<br />
1</p></blockquote>
<p>So far so good, but i want to have historical data that can give me an idea of when the connections go up or down. Here comes the power of SNMP. First we need <strong>iptables-snmp &#8211; An snmpd plugin to access iptables rules</strong>:</p>
<p><code>opkg install iptables-snmp</code></p>
<p>Now we need to created the executable,  I put files under /etc/snmp but it is a matter of taste :<br />
<code>root@OpenWrt:/etc/snmp# cat conntrack-count </code></p>
<blockquote><p>#!/bin/sh<br />
exit `cat /proc/net/ip_conntrack | wc -l`</p></blockquote>
<p>Now this needs to be called from the snmpd daemon. So I added on the configuration file:<br />
<code>/etc/config/snmpd:</code></p>
<blockquote><p>config exec conntrack_count<br />
option execname conntrack_count<br />
option miboid <strong>1.3.6.1.3.19811018.30</strong><br />
option prog &#8216;/etc/snmp/conntrack-count&#8217;</p></blockquote>
<p>Reload the snmp daemon <code>/etc/init.d/snmpd reload</code> (you did install it did nt you? <code>opkg install snmpd</code>). So now if you call <strong>1.3.6.1.3.19811018.30</strong> from a snmp client, you can see the number of connections, I use MRTG to create the graphic.</p>
<blockquote><p>Title[router]: ip_conntrack<br />
Target[router]: <strong>1.3.6.1.3.19811018.30.100.1&amp;1.3.6.1.3.19811018.30.100.1</strong>:public@your.ip:<br />
MaxBytes[router]: 100</p></blockquote>
<p>Here is the output:<br />
<img class="alignnone" src="http://casa.apertus.es/mrtg/tcpcurrestab_calleja-day.png" alt="" width="500" height="135" /></p>
<p>Before you create an exec you maybe check a ready to go snmp variables in this page: <a href="http://glr81.free.fr/pages/openwrt-snmp-oid.htm">SNMP OIDs for OpenWrt</a> and here <a href="http://www.mibdepot.com/cgi-bin/vendor_index.cgi?r=linux">46 SNMP SMIv1 and v2 MIBs ( 10 SMIv1, 36 SMIv2 ) for Linux</a></p>
]]></content:encoded>
			<wfw:commentRss>http://casa.apertus.es/blog/2010/07/27/monitor-command-line-output-from-openwrt-backfire-using-snmp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QOS under openwrt 10.03</title>
		<link>http://casa.apertus.es/blog/2010/07/24/qos-under-openwrt-10-03/</link>
		<comments>http://casa.apertus.es/blog/2010/07/24/qos-under-openwrt-10-03/#comments</comments>
		<pubDate>Sat, 24 Jul 2010 14:24:39 +0000</pubDate>
		<dc:creator>Juan Jose Pablos</dc:creator>
				<category><![CDATA[Español]]></category>
		<category><![CDATA[openwrt]]></category>

		<guid isPermaLink="false">http://casa.apertus.es/blog/?p=369</guid>
		<description><![CDATA[<p>Only a few commands are needed to use Quality Of Service (QOS),  just login on theconsole as root@ip.of.router and then:

opkg update;
opkg install qos-scripts;
 /etc/init.d/qos enable;
 /etc/init.d/qos start;

You would find the config file under /etc/config/qos, I mostly only modify the download value so I limit the amount of bandwidth that I share with others so they [...]]]></description>
			<content:encoded><![CDATA[<p>Only a few commands are needed to use Quality Of Service (QOS),  just login on theconsole as root@ip.of.router and then:<br />
<code><br />
opkg update;<br />
opkg install qos-scripts;<br />
 /etc/init.d/qos enable;<br />
 /etc/init.d/qos start;<br />
</code><br />
You would find the config file under <code>/etc/config/qos</code>, I mostly only modify the download value so I limit the amount of bandwidth that I share with others so they do not collapse my connection. If you want to check that qos is working just run this command <code>qos-stat</code></p>
]]></content:encoded>
			<wfw:commentRss>http://casa.apertus.es/blog/2010/07/24/qos-under-openwrt-10-03/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set up more dns servers on masqueradedns openwrt 10.03</title>
		<link>http://casa.apertus.es/blog/2010/07/24/set-up-more-dns-servers-on-masqueradedns-openwrt-10-03/</link>
		<comments>http://casa.apertus.es/blog/2010/07/24/set-up-more-dns-servers-on-masqueradedns-openwrt-10-03/#comments</comments>
		<pubDate>Sat, 24 Jul 2010 14:21:19 +0000</pubDate>
		<dc:creator>Juan Jose Pablos</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[openwrt]]></category>

		<guid isPermaLink="false">http://casa.apertus.es/blog/?p=368</guid>
		<description><![CDATA[<p>Maybe is obvious, but it took me a while to find this information. I want to set up 2 dns servers for the Access Point based on openwrt. This way if one dns server fails it can use the second one. Using Lucid does give a hint on how to do it.

 /etc/config/network
option 'dns' [...]]]></description>
			<content:encoded><![CDATA[<p>Maybe is obvious, but it took me a while to find this information. I want to set up 2 dns servers for the Access Point based on openwrt. This way if one dns server fails it can use the second one. Using Lucid does give a hint on how to do it.<br />
<code><br />
 /etc/config/network<br />
option 'dns' '80.58.0.33 80.58.32.97'<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://casa.apertus.es/blog/2010/07/24/set-up-more-dns-servers-on-masqueradedns-openwrt-10-03/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Samsung giving away phones to people who complain about the iphone4</title>
		<link>http://casa.apertus.es/blog/2010/07/24/samsung-giving-away-phones-2-people-who-complain-about-the-iphone4/</link>
		<comments>http://casa.apertus.es/blog/2010/07/24/samsung-giving-away-phones-2-people-who-complain-about-the-iphone4/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 23:32:25 +0000</pubDate>
		<dc:creator>Juan Jose Pablos</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://casa.apertus.es/blog/?p=363</guid>
		<description><![CDATA[[...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://feeds.gawker.com/~r/gizmodo/full/~3/bwFMcOLrSjA/samsung-uk-giving-away-free-galaxy-s-android-phones-to-people-who-complain-about-the-iphone-4">http://feeds.gawker.com/~r/gizmodo/full/~3/bwFMcOLrSjA/samsung-uk-giving-away-free-galaxy-s-android-phones-to-people-who-complain-about-the-iphone-4</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://casa.apertus.es/blog/2010/07/24/samsung-giving-away-phones-2-people-who-complain-about-the-iphone4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
