Difference between revisions of "Mesh/Relay setup"

Jump to navigation Jump to search
342 bytes added ,  13:26, 8 February 2018
no edit summary
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
This page is outdated and is kept for our communal scrapbook. Please use https://github.com/sudomesh/exitnode for a more up-to-date info.
Relay nodes are Internet connected hosts that allow mesh nodes to talk to each other using batman-adv over the Internet. Mesh nodes connect to relay nodes using a type of layer 2 tunnel called [http://en.wikipedia.org/wiki/L2TP L2TP]. The software used to establish these tunnels is called [https://github.com/wlanslovenija/tunneldigger tunneldigger] and was developed by [https://dev.wlan-si.net/ wlan slovenija]. A relay node is usually a VPS or a dedicated server with a good amount of available bandwidth and cpu.  
Relay nodes are Internet connected hosts that allow mesh nodes to talk to each other using batman-adv over the Internet. Mesh nodes connect to relay nodes using a type of layer 2 tunnel called [http://en.wikipedia.org/wiki/L2TP L2TP]. The software used to establish these tunnels is called [https://github.com/wlanslovenija/tunneldigger tunneldigger] and was developed by [https://dev.wlan-si.net/ wlan slovenija]. A relay node is usually a VPS or a dedicated server with a good amount of available bandwidth and cpu.  


Line 108: Line 110:
Set a static IP for the bat0 interface by adding the following to /etc/network/interfaces:
Set a static IP for the bat0 interface by adding the following to /etc/network/interfaces:


iface bat0 inet static
iface bat0 inet static
     address 10.42.254.254
     address 10.42.254.254
     netmask 255.0.0.0
     netmask 255.0.0.0
Line 206: Line 208:
Edit up_hook.sh to contain the following:
Edit up_hook.sh to contain the following:


#!/bin/sh
<pre>
#!/bin/sh
INTERFACE="$3"
 
INTERFACE="$3"
ifconfig $INTERFACE up
 
batctl if add $INTERFACE
ifconfig $INTERFACE up
ifup bat0
batctl if add $INTERFACE
 
if [ `cat /sys/class/net/bat0/operstate` != "up" ]; then
      ifconfig bat0 <relay_mesh_ip> netmask 255.0.0.0 up
fi
</pre>
 
Where <relay_mesh_ip> is your assigned mesh ip address (or 10.42.254.254 for testing).


Now you're ready to run the broker.
Now you're ready to run the broker.

Navigation menu