public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: "Magosányi Árpád" <mag@magwas.rulez.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] Mesh with access from wifi and lan. Which is the Only True Way?
Date: Tue, 28 Sep 2010 21:08:53 +0200	[thread overview]
Message-ID: <4CA23D45.60306@magwas.rulez.org> (raw)

  Hi!

I am struggling with setting up a mesh network. It should be available 
for users without batmand both on the lan interfaces and wan interfaces.

Surely I do have some misconceptions in my setup, but don't know where.
The nodes are wistron ca8 ones, with official OpenWrt Backfire 
10.03.1-rc3 r22796 atheros.

I try to set up the following network topology:
- there is a /c subnet for batman nodes, 10.42.0.N/24
- there is a /c subnet on each node for non-batman users, 10.42.N.1/24 
(dhcp runs there in force mode)
- there is a /c subnet on each node for lan (non-batman) 10.43.N.1/24 
(dhcp runs there)

with only two nodes I have managed to handle all the traffic with the 
following rules in firewall.user:
iptables -A forwarding_rule -s 10.42.N.0/24 -i ath0 -j ACCEPT
iptables -A forwarding_rule -d 10.42.N.0/24 -o ath0 -j ACCEPT

But with three nodes in a linear topology user-A-B-C, the reject 
firewall chain (basically the FORWARD chain) eats up the packets user->A
This is the same rule which rejects batman packets A->C which go through 
B, and there are the gate interface which I do not understand, so while 
the following rules seem to solve the problem at least for three nodes, 
I have a feeling that I am not on the right path, and maybe on a way to 
cause packet storms.
iptables -A forwarding_rule -d 10.42.0.0/24 ! -s 10.42.0.0/24 -i ath0 -o 
ath0 -j ACCEPT
iptables -A forwarding_rule -s 10.42.0.0/24 ! -d 10.42.0.0/24 -o ath0 -i 
ath0 -j ACCEPT

Can someone tell me what I have missed (or is it the right solution indeed?)


             reply	other threads:[~2010-09-28 19:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-28 19:08 Magosányi Árpád [this message]
2010-09-29 10:28 ` [B.A.T.M.A.N.] Mesh with access from wifi and lan. Which is the Only True Way? Marek Lindner
2010-09-29 19:41   ` Magosányi Árpád
2010-09-29 20:20     ` Marek Lindner
2010-09-29 20:44       ` Magosányi Árpád
2010-09-29 21:40         ` Marek Lindner
2010-09-30 11:50           ` Magosányi Árpád
2010-09-30 14:15             ` 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=4CA23D45.60306@magwas.rulez.org \
    --to=mag@magwas.rulez.org \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /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