<div dir="ltr">Thank you, Ben, this is excellent. we will take a look at this and compare it to our configurations.<div><br></div><div>Adam Longwill</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 25, 2015 at 7:46 PM, Ben West <span dir="ltr"><<a href="mailto:ben@gowasabi.net" target="_blank">ben@gowasabi.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Relevant OLSR documentation can be difficult to locate, since its configuration is OS-dependent (e.g. Desktop linux vs OpenWRT).  The olsrd devs themselves tend to focus just on the tool and not the platform where it's being deployed.  My understanding is that Commotion itself will deploy reasonable configuration to /etc/config/olsrd on its nodes, depending gateway or repeater role.<br><br>Also, I've learned that minimal OLSR config is generally the best, leaving default options in place wherever possible.<br><br></div>Here is the README about OLSR extensions, directly from <a href="http://olsr.org" target="_blank">olsr.org</a>, which tries to be OS-agnostic:<br><a href="http://olsr.org/git/?p=olsrd.git;a=blob;f=README-Olsr-Extensions" target="_blank">http://olsr.org/git/?p=olsrd.git;a=blob;f=README-Olsr-Extensions</a><br><br></div>Below is configuration I'm testing out on a mesh of 3 UBNT M5 nodes running OpenWRT Chaos Calmer v46069, i.e. no Commotion or 3rd party elements.  The OLSR parameters were borrowed from Freifunk Berlin (on the assumption they have successfully deployed such on a large scale).  Also note that the repeater nodes have configuration for non-existent "wan" interfaces, and that the gateway node has no firewall restrictions on its (existent) wan interface, since this is just a test mesh.<br><br><div>This setup works reasonably so far, with the 
specific exception of some repeater nodes (but not all!) with 2 hops 
failing to build a functional SmartGateway tunnel back to the gateway 
node, e.g. they get no route to the outside.  The reason for this 
exception is thus far unknown to me, despite some hair pulling.<br></div><br></div><b>Gateway node ...<br></b><br></div><i>/etc/config/wireless:</i><br>config wifi-device  radio0<br>        option type     mac80211<br>        option channel  36<br>        option hwmode   11a<br>        option path     'pci0000:00/0000:00:00.0'<br>        option htmode   HT20<br>        option 'country' 'US'<br>        option beacon_int '1000'<br>        option disabled 0<br><br>config wifi-iface wlan0<br>        option device   radio0<br>        option network  'mesh'<br>        option mode 'adhoc'<br>        option mcast_rate '12000'<br>        option ssid     MyMeshSSID<br>        option bssid '02:CA:FF:EE:BA:BE'<br>        option encryption 'psk2+aes'<br>        option key '...'<br><br><i>/etc/config/network:<br></i>config interface 'loopback'<br>        option ifname 'lo'<br>        option proto 'static'<br>        option ipaddr '127.0.0.1'<br>        option netmask '255.0.0.0'<br><br>config interface 'wan'<br>        option ifname 'eth0'<br>        option proto 'dhcp'<br><br>config interface 'smarttun'     <br>        option ifname 'tunl0'<br>        option proto 'none'<br><br>config 'interface' 'mesh'    <br>        option ifname  'wlan0'<br>        option 'proto' 'static'<br>        option 'ipaddr' '10.12.1.1'<br>        option 'netmask' '255.255.255.0'<br><br><i>/etc/config/olsrd:<br></i>config olsrd<br>        option IpVersion '4'<br>        option FIBMetric 'flat'<br>        option AllowNoInt 'yes'<br>        option TcRedundancy '2'<br>        option NatThreshold '0.75'<br>        option LinkQualityAlgorithm 'etx_ffeth'<br>        option SmartGateway 'yes'<br>        option SmartGatewayThreshold '50'<br>        option Pollrate '0.1'<br>        option SmartGatewayUplink 'ipv4'<br><br>config 'LoadPlugin'<br>        option 'library' 'olsrd_arprefresh.so.0.1'<br><br>config 'LoadPlugin'<br>        option 'library' 'olsrd_dyn_gw.so.0.5'<br>        option 'HNA' '0.0.0.0 0.0.0.0'<br>        option Ping '8.8.8.8'<br>        option PingInterval '30'<br>        option PingCmd 'ping -c 1 -q %s'<br><br>config 'LoadPlugin'<br>        option 'library' 'olsrd_nameservice.so.0.3'<br>        option 'sighup_pid_file' '/var/run/dnsmasq.pid'<br>        option 'suffix' '.mesh'<br><br>config 'LoadPlugin'<br>        option 'library' 'olsrd_txtinfo.so.0.1'<br>        option 'port'   '2006'<br>        option 'Accept' '127.0.0.1'<br><br>config InterfaceDefaults<br>        option MidValidityTime '500.0'<br>        option TcInterval '2.0'<br>        option HnaValidityTime '125.0'<br>        option HelloValidityTime '125.0'<br>        option TcValidityTime '500.0'<br>        option Ip4Broadcast '255.255.255.255'<br>        option MidInterval '25.0'<br>        option HelloInterval '3.0'<br>        option HnaInterval '10.0'<br><br>config 'Interface'<br>        list 'interface' 'wan'<br>        option 'Mode' 'ether'<br><br>config 'Interface'<br>        list 'interface' 'mesh'<br>        option 'Mode' 'mesh'<br><br><div><div><div class="gmail_extra"><i>/etc/config/firewall:<br></i>config defaults<br>        option syn_flood        1<br>        option input            ACCEPT<br>        option output           ACCEPT<br>        option forward          REJECT<br>        option disable_ipv6     1<br><br>config 'zone'<br>        option 'name' 'mesh'<br>        option 'network' 'mesh smarttun'<br>        option 'input' 'ACCEPT'<br>        option 'output' 'ACCEPT'<br>        option 'masq' '1'<br>        option 'forward' 'REJECT'<br><br>config zone<br>        option name             wan<br>        option network          'wan'<br>        option input            ACCEPT<br>        option output           ACCEPT<br>        option forward          REJECT<br>        option masq             1<br>        option mtu_fix          1<br><br>config 'forwarding'<br>        option 'src' 'mesh'<br>        option 'dest' 'wan'<br><br>config 'forwarding'                             <br>        option 'src' 'mesh'                      <br>        option 'dest' 'mesh'<br><br>config 'forwarding'                   <br>        option 'src' 'wan'           <br>        option 'dest' 'mesh'<br><br>config 'forwarding'<br>        option 'src' 'wan'<br>        option 'dest' 'wan'<br><br><b>Repeater nodes ...<br></b><br><i>/etc/config/wireless: same as gateway node</i><br><br><i>/etc/config/network:<br></i>config interface loopback<br>        option ifname   lo<br>        option proto    static<br>        option ipaddr   127.0.0.1<br>        option netmask  255.0.0.0<br><br>config interface wan<br>        option proto dhcp<br>        option type bridge<br><br>config 'interface' 'mesh'    <br>        option ifname  'wlan0'<br>        option 'proto' 'static'<br>        option 'ipaddr' '10.12.1.X'<br>        option 'netmask' '255.255.255.0'<br><br>config interface lan             <br>        option ifname eth0       <br>        option type bridge<br>        option proto    static<br>        option 'dns' '208.67.222.222 208.67.220.220'<br>        option ipaddr   192.168.X.1                <br>        option netmask  255.255.255.0               <br><br><i>/etc/config/olsrd: same as gateway node</i><br><br>/etc/config/firewall:<br>config defaults<br>        option syn_flood        1<br>        option input            ACCEPT<br>        option output           ACCEPT<br>        option forward          REJECT<br>        option disable_ipv6     1<br><br>config 'zone'<br>        option 'name' 'mesh'<br>        option 'network' 'mesh'<br>        option 'input' 'ACCEPT'<br>        option 'output' 'ACCEPT'<br>        option 'masq' '1'<br>        option 'forward' 'REJECT'<br><br>config zone<br>        option name             lan<br>        option network          'lan'<br>        option input            ACCEPT<br>        option output           ACCEPT<br>        option forward          REJECT<br>        option masq     1<br><br>config zone<br>        option name             wan<br>        option network          'wan'<br>        option input            ACCEPT<br>        option output           ACCEPT<br>        option forward          REJECT<br>        option masq             1<br><br>config 'forwarding'<br>        option 'src' 'wan'<br>        option 'dest' 'mesh'<br><br>config 'forwarding'                             <br>        option 'src' 'mesh'                      <br>        option 'dest' 'mesh'<br><br>config 'forwarding'                   <br>        option 'src' 'lan'            <br>        option 'dest' 'mesh'<br><br>config 'forwarding'                   <br>        option 'src' 'mesh'            <br>        option 'dest' 'lan' <br><br>config 'forwarding'                   <br>        option 'src' 'lan'            <br>        option 'dest' 'lan'<br><br><div class="gmail_quote"><div><div class="h5">On Tue, Jun 23, 2015 at 4:21 PM, Adam Longwill <span dir="ltr"><<a href="mailto:adam.longwill@metamesh.org" target="_blank">adam.longwill@metamesh.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5"><p dir="ltr">Does anyone have a guide or even just want to explain to setting up olsrd in openwrt?</p>
<p dir="ltr">I'm trying to improve my personal understanding of the basic configuration required to build an olsr mesh with OpenWRT so I can better understand Commotion but I am finding it difficult to learn from videos in other languages or high level descriptions of olsr.</p>
<p dir="ltr">I am simply trying to make two routers talk to each other- one is connected to the Internet and the other is sitting across the room. They are on the same meshing wireless network but I cannot find a straight forward basic setup tutorial anywhere. </p>
<p dir="ltr">I'm sure we could all benefit from this discussion. So how about it? How does one set up a basic olsr mesh network to access the Internet between two routers on OpenWRT?</p>
<p dir="ltr">I'll be happy to share my configs and describe what I've done.</p><span><font color="#888888">
<p dir="ltr">Adam Longwill</p>
</font></span><br></div></div>_______________________________________________<br>
Commotion-discuss mailing list<br>
<a href="mailto:Commotion-discuss@lists.chambana.net" target="_blank">Commotion-discuss@lists.chambana.net</a><br>
<a href="https://lists.chambana.net/mailman/listinfo/commotion-discuss" rel="noreferrer" target="_blank">https://lists.chambana.net/mailman/listinfo/commotion-discuss</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div>Ben West<div><a href="http://gowasabi.net" target="_blank">http://gowasabi.net</a><br><a href="mailto:ben@gowasabi.net" target="_blank">ben@gowasabi.net</a><br><a href="tel:314-246-9434" value="+13142469434" target="_blank">314-246-9434</a><br></div></div>
</font></span></div></div></div></div>
</blockquote></div><br></div>