From: Axel Neumann <neumann@cgws.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@open-mesh.net>
Subject: Re: [B.A.T.M.A.N.] dublicate HNAs / certificates
Date: Fri, 19 Dec 2008 11:15:20 +0100 [thread overview]
Message-ID: <200812191115.20610.neumann@cgws.de> (raw)
In-Reply-To: <3f7879383457743711ac3341637ff601.squirrel@wm.ddmesh.de>
HI,
I like brainstorming like this.
We wanted batmand (and especially its core routing algorithm) to be decentral
and simple. So no central point of control/failure and therefore also no HNA
server. Of course there are many potential attack vectors in a community mesh
and probably there will always be until you completely restrict the access.
Therefore IMHO the preferable security to be solved should be:
- detect and protect against (usually accidental) misconfigurations like
duplicate addresses.
- find mechanisms to limit the impact of denial of service or other attacks to
the local environment (neighborhood).
Certificates and signatures might be a theoretical solution. I am not a
security expert but many people have stated that frequent signature
validation (like every OGM) will definitely exceed the cpu performance of the
small embedded devices we use for our networks.
On Donnerstag 18 Dezember 2008, Stephan Enderlein (Freifunk Dresden) wrote:
> > Theoretically, if the node can reestablish a new connection after its
> > forced disconnection within the dad timeout (100secs by default) then it
> > should not be kicked out. But, the preliminary for this is that: the node
> > must re-appear using the same primary IP for its primary interface and
> > continuing with the foreseen sequence-number range.
>
> The router always will have the same IP. But it can take a little time to
> establish the vpn connection (over internet) to connect to other batman
> clouds. So it is possible that the 100 seconds are reached easily.
> At moment the firmware has no way to set the time of the forced
> disconnection. But If the user are using a different router or the firmware
> will later support a timed disconnection, it is possible that user leave
> the default time. Assuming this other may connect there disturbing routers
> at same time to turn off attractive nodes with many connections.
You can tweak the dulicate address timeout detection using --dad-timeout .
Because the duplicate address detection is working based on expected sequence
numbers you can avoid being ignored by other nodes after a restart by
correcting your initial sequence number to a number accepted by other nodes
using --initial-seqno.
ciao,
axel
>
> All nodes must be reachable and they must ping the hna regulary (if ping is
> supported or check for certain services) and tell the local batmand to
> remove a specific hna from its internal list. But this is also
> not secure because the bad guy may redirect such requests and pretend the
> IP is reachable.
>
> I think there must be a central server that collects "HNA requests" if they
> are valid, the batman node that has requested to propagate a HNA can add
> it.
> For this batman should support such a procedure internally perhaps like the
> visualisation server, else the bad guy may simply add hna per command line.
> It should be possible to generate two versions of batmand, one that acts as
> HNA server (only few authenticated servers) and one as HNA client
> (requesting to publish HNA and build in in all nodes).
>
> To avoid running a faked batmand client to disturb a mesh, batman should
> support certificates to protect its OGM and other packets.
> Is there a way to make a batman network unique by using certificates?
> batman should always send signed OGM and other batman packets and also
> check for the correctness on receiption.
>
> For HNA authentication and signed batman traffic you may use cacert.org. If
> someone then tries to disturb a batman network by setting up its own HNA
> server, you just may look into the certificate to get the user.
>
> Cheers
> Stephan
>
> ---------------------------------------
> Dipl.Informatiker(FH) Stephan Enderlein
> Freifunk Dresden
>
>
> _______________________________________________
> B.A.T.M.A.N mailing list
> B.A.T.M.A.N@open-mesh.net
> https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n
next prev parent reply other threads:[~2008-12-19 10:15 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-02 11:30 [B.A.T.M.A.N.] batman-exp rev.1154 still using 94% CPU load Stephan Enderlein (Freifunk Dresden)
2008-12-02 12:06 ` Axel Neumann
2008-12-02 13:59 ` Stephan Enderlein (Freifunk Dresden)
2008-12-09 9:28 ` Stephan Enderlein (Freifunk Dresden)
2008-12-09 10:22 ` Stephan Enderlein (Freifunk Dresden)
2008-12-11 10:54 ` [B.A.T.M.A.N.] dublicate HNAs Axel Neumann
2008-12-11 14:01 ` Freifunk
2008-12-12 10:46 ` Axel Neumann
2008-12-12 23:51 ` Stephan Enderlein (Freifunk Dresden)
2008-12-17 20:14 ` Axel Neumann
2008-12-18 11:11 ` [B.A.T.M.A.N.] dublicate HNAs / batmand / certificates Stephan Enderlein (Freifunk Dresden)
2008-12-19 10:15 ` Axel Neumann [this message]
2008-12-19 11:06 ` [B.A.T.M.A.N.] dublicate HNAs " Stephan Enderlein (Freifunk Dresden)
2008-12-19 11:19 ` Stephan Enderlein (Freifunk Dresden)
2008-12-24 18:24 ` [B.A.T.M.A.N.] Testing Batman Resul Cetin
2009-01-06 13:57 ` [B.A.T.M.A.N.] dublicate HNAs / certificates Alexander Morlang
2009-01-15 14:24 ` Axel Neumann
2008-12-17 12:19 ` [B.A.T.M.A.N.] Can't build a mesh network Resul Cetin
2008-12-17 13:57 ` Resul Cetin
2008-12-17 17:46 ` elektra
2008-12-18 6:32 ` Marek Lindner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200812191115.20610.neumann@cgws.de \
--to=neumann@cgws.de \
--cc=b.a.t.m.a.n@open-mesh.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox