measuring jack themes technologies tooltips linux measuring jack themes technologies tooltip linux limejack claim limejack limejack

Start | Language  de en fr | Menu | Map | Search

You are here: start » en » tooltips » batman

B.A.T.M.A.N. - BATMAN - Better Approach To Mobile Adhoc Networking

This is a Better Approach To Mobile Adhoc Networking (B.A.T.M.A.N.).

                     /'          '\
                   /   \__^..^__/   \
                 /    / _ \vv/ _ \    \
                /          \/          \
               /                        \

With BATMAN, WLAN-enabled computers can be linked to a large, widely distributed network via the WLAN interface. The necessary optimizations, such as establishing the fastest packet path, run automatically in the background.

Anleitung zur Installation und Konfigruation

FIXME Outdated

  • installation of the packages batman-adv-dkms, batctl, wireless-tools
  • load module via modprobe batman-adv ; To relaod after reboot put batman-adv into /etc/modules.

Edit /etc/network/interfaces:

auto wlan0
iface wlan0 inet static
  address <IP>
  netmask <Network-Mask>
  network <Network>
  broadcast <Network-Broadcast>
  mtu 1527
  wireless-mode ad-hoc
  wireless-essid LimeJACK-Batman
  wireless-ap 02:12:34:56:78:9A
  wireless-ch 2
  post-up batctl if add wlan0
  pre-down batctl if del wlan0

auto bat0
iface bat0 inet static
  address 192.168.123.<IP>

A computer can route into the LAN via its second interface by adjusting the file /etc/sysctl.conf:


Furthermore the file /etc/network/interfaces must be edited for LAN routing of a computer by appending the following to the bat0 section:

  post-up /usr/share/<your dir>/batman.iptables

The file /usr/share/<your dir>/batman.iptables looks like this:


/sbin/iptables -A POSTROUTING -t nat -j MASQUERADE -s

Alternatively, for all other computers that do not use the second interface to route, change the bat0 section in the file /etc/network/interfaces by appending the following to the bat0 section:


Do not forget to fix the name server:

echo 'nameserver' > /etc/resolv.conf
Disclaimer | Impressum | Privacy | Copyleft