<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Luci on Philly Mesh</title><link>https://prm.boda.dev/tags/luci/</link><description>Philly Mesh (Luci)</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Thu, 21 Apr 2016 21:49:08 +0000</lastBuildDate><atom:link href="https://prm.boda.dev/tags/luci/index.xml" rel="self" type="application/rss+xml"/><item><title>CJDNS on OpenWRT – Part 3: Installing &amp; Configuring CJDNS</title><link>https://prm.boda.dev/2016/04/21/cjdns-on-openwrt-part-3-installing-configuring-cjdns/</link><pubDate>Thu, 21 Apr 2016 21:49:08 +0000</pubDate><author>Mike Dank (Famicoman)</author><guid>https://prm.boda.dev/2016/04/21/cjdns-on-openwrt-part-3-installing-configuring-cjdns/</guid><description>&lt;p>Now that we have OpenWRT installed and ensured that we have enough space to experiment and install packages, we can proceed to install and configure cjdns.&lt;/p>
&lt;p>I have opted to install a GUI package to allow for easier configuration (though I also wanted to see what it had to offer over editing configuration files). The package used here is &lt;strong>luci-app-cjdns&lt;/strong>, relying on the LuCI interface that comes default in most OpenWRT images. If you want to install cjdns without the GUI or do not use LuCI, you can install the regular &lt;strong>cjdns&lt;/strong> package. &lt;em>Note: The standard cjdns package was left out of OpenWRT 15.05.1, but should be in the older 15.05 image. The luci-app-cjdns package should be available in both versions, so you won’t have any issue with the remainder of this guide.&lt;/em>&lt;/p>
&lt;p>Now we are ready to install cjdns for LuCI. SSH into the access point and run the following command to update and install luci-app-cjdns.&lt;/p>
&lt;pre tabindex="0">&lt;code>opkg update &amp;amp;&amp;amp; opkg install luci-app-cjdns
&lt;/code>&lt;/pre>&lt;p>After this finishes, leave the SSH session open and then load up the OpenWRT web console in a browser and log in. By default, this interface can be reached via http://192.168.1.1. Now that we’re in the console, select &lt;strong>cjdns&lt;/strong> from the &lt;em>Services&lt;/em> dropdown on the top menu. An &lt;em>Overview&lt;/em> page for cjdns will load (and look rather empty). Now, click the &lt;strong>Peers&lt;/strong> sub-tab link near the top of this page.&lt;/p>
&lt;p>Now, we can enter in the peering information for any number of peers to connect to. You will likely want to populate the &lt;strong>Authorized Passwords&lt;/strong> and &lt;strong>Outgoing UDP Peers&lt;/strong> sections as I have below.&lt;/p>
&lt;figure>&lt;a href="https://prm.boda.dev/images/uploads/2017/03/cjdns01_clean.png">&lt;img src="https://prm.boda.dev/images/uploads/2017/03/cjdns01_clean-768x679.png"
alt="CJDNS Peers Tab">&lt;/a>&lt;figcaption>
&lt;p>CJDNS Peers Tab&lt;/p>
&lt;/figcaption>
&lt;/figure>
&lt;p>When finished, press the &lt;strong>Save &amp;amp; Apply&lt;/strong> button to commit any changes and restart cjdns. These steps can be repeated to add as many peers as needed.&lt;/p>
&lt;p>Now, navigate back to the &lt;strong>Overview&lt;/strong> page by clicking on the &lt;strong>Overview&lt;/strong> sub-tab link.&lt;/p>
&lt;p>After loading, we should now have connection information about the configured peers as shown below.&lt;/p>
&lt;figure>&lt;a href="https://prm.boda.dev/images/uploads/2017/03/cjdns02_clean.png">&lt;img src="https://prm.boda.dev/images/uploads/2017/03/cjdns01_clean-768x679.png"
alt="CJDNS Overview Page">&lt;/a>&lt;figcaption>
&lt;p>CJDNS Overview Page&lt;/p>
&lt;/figcaption>
&lt;/figure>
&lt;p>That’s all there is to it! Back in our SSH session, we can try pinging a machine on Hyperboria to confirm a connection:&lt;/p>
&lt;pre tabindex="0">&lt;code>ping6 h.peer0.famicoman.com
PING h.peer0.famicoman.com (fc9f:990d:2b0f:75ad:8783:5d59:7c84:520b): 56 data bytes
64 bytes from fc9f:990d:2b0f:75ad:8783:5d59:7c84:520b: seq=0 ttl=42 time=4072.631 ms
64 bytes from fc9f:990d:2b0f:75ad:8783:5d59:7c84:520b: seq=1 ttl=42 time=3800.924 ms
64 bytes from fc9f:990d:2b0f:75ad:8783:5d59:7c84:520b: seq=2 ttl=42 time=4594.193 ms
64 bytes from fc9f:990d:2b0f:75ad:8783:5d59:7c84:520b: seq=3 ttl=42 time=4329.846 ms
^C
--- h.peer0.famicoman.com ping statistics ---
9 packets transmitted, 4 packets received, 55% packet loss
round-trip min/avg/max = 3800.924/4199.398/4594.193 ms
&lt;/code>&lt;/pre>&lt;p>If all went as expected, you now have cjdns running on your OpenWRT router! This can be expanded in the future by copying an OpenWRT configuration onto several routers, and then linking them together wirelessly.&lt;/p></description></item></channel></rss>