<?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>An It-Slave in the digital saltmine &#187; openwrt</title>
	<atom:link href="http://www.it-slav.net/blogs/category/openwrt/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.it-slav.net/blogs</link>
	<description>Another Blog from a Geek that has no life</description>
	<lastBuildDate>Tue, 10 Jan 2012 20:27:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using 1-wire devices in OpenWRT</title>
		<link>http://www.it-slav.net/blogs/2011/04/05/using-1-wire-devices-in-openwrt/</link>
		<comments>http://www.it-slav.net/blogs/2011/04/05/using-1-wire-devices-in-openwrt/#comments</comments>
		<pubDate>Tue, 05 Apr 2011 08:43:08 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[1-wire]]></category>
		<category><![CDATA[Cool things]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[op5 Monitor]]></category>
		<category><![CDATA[openwrt]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=2047</guid>
		<description><![CDATA[Background It is very handy to have a temprobe attached to network devices like a Wlan router, if OpenWRT&#160;is installed it is easy to use 1-wire devices. By using this method it is possible to create wireless temperature probes that uses Wlan. &#160; Install root@OpenWrt:~# opkg install owserver owfs&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160; Using root@OpenWrt:~# owserver -u -C [...]]]></description>
			<content:encoded><![CDATA[<h2>Background</h2>
<p>It is very handy to have a temprobe attached to network devices like a Wlan router, if OpenWRT&nbsp;is installed it is easy to use 1-wire devices. By using this method it is possible to create wireless temperature probes that uses Wlan.</p>
<p>&nbsp;<span id="more-2047"></span></p>
<h2>Install</h2>
<p><code>root@OpenWrt:~# opkg install owserver owfs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </code><br />
&nbsp;</p>
<h2>Using</h2>
<p><code>root@OpenWrt:~# owserver -u -C --usb_regulartime -p 3001</code></p>
<p><code>root@OpenWrt:~# mkdir /mnt/1-wire&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
</code></p>
<p><code>root@OpenWrt:~# owfs -s localhost:3001 -m /mnt/1-wire</code></p>
<p><code>root@OpenWrt:/mnt/1-wire/10.87507C010800# ls /mnt/1-wire/<br />
10.87507C010800&nbsp; 81.543A2A000000&nbsp; alarm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bus.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; settings&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; simultaneous&nbsp;&nbsp;&nbsp;&nbsp; statistics&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; structure&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; system&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uncached</code></p>
<p>It works! &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;</p>
<p>To make sure that owserver starts when the router is rebooted, add to /etc/rc.local<code><br />
</code></p>
<p><code>/usr/bin/owserver -u -C --usb_regulartime -p 3001</code></p>
<h2>Firewall</h2>
<p>My op5 Monitor/Nagios system is on the Wan side of the OpeWRT&nbsp;box so I&nbsp;need to open the firewall to port 3001.</p>
<p>Add to /etc/config/firewall</p>
<p><code>#1-wire ok on Wan<br />
config rule<br />
&nbsp;&nbsp;&nbsp; option src&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; wan<br />
&nbsp;&nbsp;&nbsp; option dest_port&nbsp;&nbsp;&nbsp; 3001<br />
&nbsp;&nbsp;&nbsp; option target&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ACCEPT<br />
&nbsp;&nbsp;&nbsp; option proto&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tcp</code><br />
&nbsp;</p>
<h2>Result</h2>
<p>To gather the data from 1-wire I&nbsp;use <a target="_blank" href="http://www.op5.com/op5/products/network-monitor">op5 Monitor</a> and my Nagios <a target="_blank" href="http://www.it-slav.net/blogs/2008/11/17/op5-monitor-or-nagios-plugins-for-1-wire-temperature-measurement/">plugin</a> check_1-wiretemp, the result can be seen below</p>
<p><a href="http://www.it-slav.net/blogs/wp-content/uploads/2011/04/Screen-shot-2011-04-05-at-10.38.10-AM.png"><img alt="" title="Screen shot 2011-04-05 at 10.38.10 AM" width="591" height="242" class="aligncenter size-full wp-image-2059" src="http://www.it-slav.net/blogs/wp-content/uploads/2011/04/Screen-shot-2011-04-05-at-10.38.10-AM.png" /></a></p>
<p>Links</p>
<ul>
<li><a target="_blank" href="http://www.openwrt.org">OpenWrt</a></li>
<li><a target="_blank" href="http://owfs.org">owfs</a></li>
<li><a target="_blank" href="http://www.op5.com/op5/products/network-monitor">op5 Monitor</a></li>
</ul>
<p>&nbsp;</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.it-slav.net%2Fblogs%2F2011%2F04%2F05%2Fusing-1-wire-devices-in-openwrt%2F&amp;title=Using%201-wire%20devices%20in%20OpenWRT" id="wpa2a_2"><img src="http://www.it-slav.net/blogs/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2011/04/05/using-1-wire-devices-in-openwrt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open ssh on the WAN inteface in OpenWRT</title>
		<link>http://www.it-slav.net/blogs/2011/04/02/open-ssh-on-the-wan-inteface-openwrt/</link>
		<comments>http://www.it-slav.net/blogs/2011/04/02/open-ssh-on-the-wan-inteface-openwrt/#comments</comments>
		<pubDate>Sat, 02 Apr 2011 08:10:53 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[Cool things]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[openwrt]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=2037</guid>
		<description><![CDATA[To be able to administrate my OpenWRT&#160;router from Internet I&#160;need to open the ssh port on the Wan interface. &#160; It is real simple, just add to following to /etc/config/firewall: #open ssh on wan interface config rule&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; option src&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; wan &#160;&#160;&#160;&#160;&#160;&#160;&#160; option dest_port&#160;&#160;&#160;&#160;&#160;&#160;&#160; 22 &#160;&#160;&#160;&#160;&#160;&#160;&#160; option target&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ACCEPT&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; option proto&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; tcp&#160; And restart [...]]]></description>
			<content:encoded><![CDATA[<p>To be able to administrate my OpenWRT&nbsp;router from Internet I&nbsp;need to open the ssh port on the Wan interface.</p>
<p>&nbsp;</p>
<p>It is real simple, just add to following to /etc/config/firewall:</p>
<p><code>#open ssh on wan interface<br />
config rule&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; option src&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wan<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; option dest_port&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 22<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; option target&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ACCEPT&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; option proto&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tcp&nbsp; </code></p>
<p>And restart the firewall:</p>
<p><code>#/etc/init.d/firewall restart</code></p>
<p>&nbsp;</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.it-slav.net%2Fblogs%2F2011%2F04%2F02%2Fopen-ssh-on-the-wan-inteface-openwrt%2F&amp;title=Open%20ssh%20on%20the%20WAN%20inteface%20in%20OpenWRT" id="wpa2a_4"><img src="http://www.it-slav.net/blogs/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2011/04/02/open-ssh-on-the-wan-inteface-openwrt/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing OpenWRT on TP-Link TL-WR1043ND</title>
		<link>http://www.it-slav.net/blogs/2011/03/31/installing-openwrt-on-tp-link-tl-wr1043nd/</link>
		<comments>http://www.it-slav.net/blogs/2011/03/31/installing-openwrt-on-tp-link-tl-wr1043nd/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 19:06:06 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[openwrt]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=2029</guid>
		<description><![CDATA[Background After struggeling with my Linksys WRT-160NL to get OpenWRT&#160;stable I finally gave up. It ended upp with DD-WRT&#160;instead. Unfortunatly DD-WRT&#160;do not have the functionality I want like: -rndis device so I&#160;could use my Android phone to connect to Internet -1-wire device support -Nagios agent The solution was to buy another device where OpenWRT support [...]]]></description>
			<content:encoded><![CDATA[<h2>Background</h2>
<p>After struggeling with my Linksys WRT-160NL to get OpenWRT&nbsp;stable I finally gave up. It ended upp with DD-WRT&nbsp;instead. Unfortunatly DD-WRT&nbsp;do not have the functionality I want like:</p>
<p>-rndis device so I&nbsp;could use my Android phone to connect to Internet</p>
<p>-1-wire device support</p>
<p>-Nagios agent</p>
<p>The solution was to buy another device where <a href="http://openwrt.org/" target="_blank">OpenWRT</a> support is working better with USB and Gigabit interfaces. After some research I found TP-Link <a href="http://www.tp-link.com/products/productDetails.asp?class=wlan&amp;pmodel=TL-WR1043ND" target="_blank">TL-WR1043ND</a> for approx 50&euro;.</p>
<p>&nbsp;<span id="more-2029"></span></p>
<h2>Unpacking</h2>
<p>The TL-WR1043ND package is good looking and has a printed GPL license included, that is impressive.</p>
<p>The basic installation with TP-LINK installed firware was easy and stright forward with all information you need in a simple &quot;Quick installation Guide&quot;. No need for installing software on a windows machine to be able to access you new device. I think Cisco/Linksys has something to <a href="http://www.it-slav.net/blogs/2010/06/04/install-openwrt-on-linksys-wrt160nl/" target="_blank">learn.</a></p>
<p>&nbsp;</p>
<h2>Installing OpenWRT</h2>
<p>Find the Firmware upgrade menu and upload <a target="_blank" href="http://downloads.openwrt.org/backfire/10.03.1-rc4/ar71xx/openwrt-ar71xx-tl-wr1043nd-v1-squashfs-factory.bin">this</a> firmware. It worked perfectly well and seems very stable. A positive suprise is that the WLAN&nbsp;seems to reach longer then the WRT 160NL.</p>
<p>&nbsp;</p>
<h2>Conclusion</h2>
<p>The TP-LINK TL-WR1043ND seems to be a good Wlan router that has a good support for OpenWRT, with USB, Gigabit ethernetinterfaces and good Wlan range.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.it-slav.net%2Fblogs%2F2011%2F03%2F31%2Finstalling-openwrt-on-tp-link-tl-wr1043nd%2F&amp;title=Installing%20OpenWRT%20on%20TP-Link%20TL-WR1043ND" id="wpa2a_6"><img src="http://www.it-slav.net/blogs/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2011/03/31/installing-openwrt-on-tp-link-tl-wr1043nd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install OpenWRT on LaFonera 2.0G router, FON2202</title>
		<link>http://www.it-slav.net/blogs/2010/06/28/install-openwrt-on-lafonera-2-0g-router-fon2202/</link>
		<comments>http://www.it-slav.net/blogs/2010/06/28/install-openwrt-on-lafonera-2-0g-router-fon2202/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 19:18:40 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[Fon]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[openwrt]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[2.0G]]></category>
		<category><![CDATA[2202]]></category>
		<category><![CDATA[LaFonera]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1872</guid>
		<description><![CDATA[&#160; Background After waiting for the Hummingbird release for the LaFonera 2.0G a long time and discussed with the Fon support team when 3G&#160;dongles will work, I&#160;gave up and installed OpenWRT on my LaFonera 2.0G router. &#160; I&#8217;m sorry FON, you have a cool idea and nice routers but your unlogical approach to the users [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<h2>Background</h2>
<p>After waiting for the <a href="http://blog.fonosfera.org/fly-baby-fly-gari-the-hummingbird-is-born/">Hummingbird</a> release for the LaFonera 2.0G a long time and discussed with the Fon support team when 3G&nbsp;dongles will work, I&nbsp;gave up and installed OpenWRT on my LaFonera 2.0G router.</p>
<p>&nbsp;</p>
<p>I&#8217;m sorry FON, you have a cool idea and nice routers but your unlogical approach to the users and communtity, finally got me to install plain OpenWRT instead.</p>
<p>&nbsp;</p>
<h2>Installation</h2>
<p>After alot of googling and testing and downloading, reading and so on, I&nbsp;finally run into a <a href="http://linwin-solutions.com/index.php?option=com_blog&amp;view=comments&amp;pid=1&amp;Itemid=0" target="_blank">guide</a> that worked for me.</p>
<p>Most of the descriptions and howto assumes that the RedBoot will accept to download a new firmware via TFTP, this is true with the early releases of 2.0G , but the one sold now do not have this feature.</p>
<p>The trick is to install a firmware that allows changing the RedBoot partition of the memory, change the RedBoot parttion and install OpenWRT&nbsp;via TFTP.</p>
<p>&nbsp;</p>
<p>The guide is unfortunatly in French, but google translate helped me to <a href="http://translate.google.se/translate?u=http%3A%2F%2Flinwin-solutions.com%2Findex.php%3Foption%3Dcom_blog%26view%3Dcomments%26pid%3D1%26Itemid%3D0&amp;sl=fr&amp;tl=en&amp;hl=&amp;ie=UTF-8">translate it</a> to English.</p>
<p>
The pitfalls I&nbsp;run into is to reboot the device several timesafter installing the hacked version of FON&nbsp;firmware: FON2202_2.2.5.0_Flipper_RedBootC_VoteGOP.image</p>
<p>The only difference is that I used a later version of <a href="http://www.openwrt.org">OpenWRT</a>. I used Backfire <a href="http://downloads.openwrt.org/backfire/10.03/atheros/">10.03</a> instead of Kamikaze <a href="ftp://downloads.linwin-solutions.com/hxcwyxwr/fonera_openwrt/fon-flash-linux/">8.9.1</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.it-slav.net%2Fblogs%2F2010%2F06%2F28%2Finstall-openwrt-on-lafonera-2-0g-router-fon2202%2F&amp;title=Install%20OpenWRT%20on%20LaFonera%202.0G%20router%2C%20FON2202" id="wpa2a_8"><img src="http://www.it-slav.net/blogs/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/06/28/install-openwrt-on-lafonera-2-0g-router-fon2202/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

