[B.A.T.M.A.N.] dynamic gateway / hna / services
freifunk at ddmesh.de
Tue Jul 24 13:21:09 UTC 2007
how does batmand detect whether the internet connection is really connected to
the internet or not. Or does batmand just relays on the -g parameter.
Until now we let run a cron job that checks for the real working
gateway. Because we can not relay on the presence of the default
route. User may use a different
router to connect to the internet and just add the default route this
The problem is that the node offering a internet connection (-g)
should also be able to access other internet connection if its local
connection is brocken.
I'm currently checking how the HNA is working, but until now I can not
see any HNA on a second node. Firewall is enabled completely for both
nodes and each node sees the other nodes. I call batmand as follow:
Node1: batmand -t 63 -a 22.214.171.124/16 wlan0 bbs /t 2 bbc /t 2
Node2: batmand -t 63 eth1 bbs /t 2 bbc /t 2
But batmand -c -d 4 does not show any HNA messages and no HNA entry is
stored in routing table.
Beside of this the Idea to add/delete HNA without stopping batmand
would be good. e.g. batmand -c -a <add-hna>
batmand -c -A <del-hna>
If a node offers a ftp server (portforwarding) I like to offer this
"service" via batmand like olsrd.
A generic solution would be good to just allow to send user text
messages with the OGM.
e.g:sending: batmand -c -m "this is my message" (called requlary by
cron.d to send/update a message or command)
the running batmand will need an addional options e.g. -m (script)
that is called to process the incomming message.
e.g: batmand -m process-message-script wlan0
The advantage would be, that each user that is using batman can offer
services: e.g. populate a service list, news, software updates,....
Another Idea of the "-m" is to differenciate this parameter to -M <"message">
and -m <send-script>. by calling batmand -c -m send-script, batmand
can setup stdin/stdou as binary file handle and fill a user-OGM with
binary data that is then send.
Please tell me if some of the features already present in the
More information about the B.A.T.M.A.N