Rodrigo Garcia 14cd04fdc1 [+] kinstall_route printf (temporal) | 7 years ago | |
---|---|---|
decrypt-lib | 7 years ago | |
doc-lorauth | 7 years ago | |
tokens | 7 years ago | |
.gitattributes | 13 years ago | |
.gitignore | 7 years ago | |
CHANGES | 8 years ago | |
LICENCE | 17 years ago | |
Makefile | 7 years ago | |
Makefile.static | 7 years ago | |
README.md | 7 years ago | |
babeld.c | 7 years ago | |
babeld.h | 7 years ago | |
babeld.man | 8 years ago | |
configuration.c | 8 years ago | |
configuration.h | 8 years ago | |
decrypt.c | 7 years ago | |
decrypt.h | 7 years ago | |
decrypt_tests.c | 7 years ago | |
despliegue.md | 7 years ago | |
disambiguation.c | 7 years ago | |
disambiguation.h | 7 years ago | |
dt | 7 years ago | |
generate-version.sh | 8 years ago | |
interface.c | 7 years ago | |
interface.h | 7 years ago | |
kernel.c | 9 years ago | |
kernel.h | 9 years ago | |
kernel_netlink.c | 7 years ago | |
kernel_socket.c | 9 years ago | |
local.c | 8 years ago | |
local.h | 8 years ago | |
lorauth.c | 7 years ago | |
lorauth.h | 7 years ago | |
message.c | 7 years ago | |
message.h | 7 years ago | |
neighbour.c | 8 years ago | |
neighbour.h | 11 years ago | |
net.c | 8 years ago | |
net.h | 8 years ago | |
notas.md | 7 years ago | |
resend.c | 7 years ago | |
resend.h | 7 years ago | |
route.c | 7 years ago | |
route.h | 7 years ago | |
rule.c | 8 years ago | |
rule.h | 9 years ago | |
set-up.ra.sh | 7 years ago | |
set-up.sh | 7 years ago | |
source.c | 7 years ago | |
source.h | 7 years ago | |
util.c | 7 years ago | |
util.h | 8 years ago | |
xroute.c | 7 years ago | |
xroute.h | 7 years ago |
(Castellano) Fork de babeld para cubrir algunas necesidades del proyecto LaOtraRed (https://wiki.lapaz.laotrared.net), la característica principal es agregar un mecanismo de autenticación para reducir el riesgo de suplantación de identidad, forzando a los nodos a mostrar que se les ha asignado un espacio de red IPv4 púlbico único por parte del sistema de gestión de nodos de LaOtraRed.
Especificación: doc-lorauth/README.es.md
(English) Babeld fork to cover some needs of LaOtraRed project (https://wiki.lapaz.laotrared.net) , main feature is add an authentication mechanism to reduce the risk of ip spoofing, forcing nodes to show that they have been assigned an unique public IPv4 network space. The entity in charge to assign these public IPv4 network space to each node is meant to be LaOtraRed's nodes managemente system
Specification: doc-lorauth/README.en.md (incomplete)
Babel is a loop-avoiding distance-vector routing protocol roughly based on HSDV and AODV, but with provisions for link cost estimation and redistribution of routes from other routing protocols.
$ make
$ su -c 'make install'
If compiling for OpenWRT, you will probably want to say something like
$ make CC=mipsel-linux-gcc PLATFORM_DEFINES='-march=mips32'
On Mac OS X, you'll need to do
$ make LDLIBS=''
On every node, set up the wireless interface:
# iwconfig eth1 mode ad-hoc channel 11 essid "my-mesh-network"
# ip link set up dev eth1
You will need to make sure that all of your nodes have a unique IPv6 address, and/or a unique IPv4 address.
On every node, run something like:
# ip addr add 192.168.13.33/32 dev eth1
# ip -6 addr add $(generate-ipv6-address -r)/128 dev eth1
You will find the generate-ipv6-address utility, which can generate random IPv6 addresses according to RFC 4193, on
https://www.irif.univ-paris-diderot.fr/~jch/software/files/
Some VPN implementations (notably OpenVPN and Linux GRE) do not automatically add an IPv6 link-local address to the tunnel interface. If you attempt to run Babel over such an interface, it will complain that it ``couldn't allocate requested address''.
The solution is to manually add the link-local address to the interface. This can be done by running e.g.
# ip -6 addr add $(ahcp-generate-address fe80::) dev gre0
Run Babel on every node, specifying the set of interfaces that it should consider:
# babeld eth1
If your node has multiple interfaces which you want to participate in the Babel network, just list them all:
# babeld eth0 eth1 sit1
If you have one or more Internet gateways on your mesh network, you will want to set them up so that they redistribute the default route. Babel will only redistribute routes with an explicit protocol attached, so you must say something like:
# ip route add 0.0.0.0/0 via 1.2.3.4 dev eth0 proto static
In order to redistribute all routes, you will say:
# babeld -C 'redistribute metric 128' eth1
You may also be more selective in the routes you redistribute, for instance by specifying the interface over which the route goes out:
# babeld -C 'redistribute if eth0 metric 128' eth1
or by constraining the prefix length:
# babeld -C 'redistribute ip ::/0 le 64 metric 128' \
-C 'redistribute ip 0.0.0.0/0 le 28 metric 128' \
eth1
You may also want to constrain which local routes (routes to local interface addresses) you advertise:
# babeld -C 'redistribute local if eth1' -C 'redistribute local deny' \
-C 'redistribute metric 128' \
eth1
-- Juliusz Chroboczek