From: "Magosányi Árpád" <mag@magwas.rulez.org>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] Mesh with access from wifi and lan. Which is the Only True Way?
Date: Thu, 30 Sep 2010 13:50:52 +0200 [thread overview]
Message-ID: <4CA4799C.6050503@magwas.rulez.org> (raw)
In-Reply-To: <201009292340.41693.lindner_marek@yahoo.de>
On 2010-09-29 23:40, Marek Lindner wrote:
> On Wednesday 29 September 2010 22:44:36 Magosányi Árpád wrote:
>> I am using OpenWrt Backfire.
> Ok.
>
>
>> One sign that I am using nonstandard setting is that a non-batman node
>> will end up in a throw route of the batman nodes. But if it should work
>> without firewall, then I will be happy with my current setup.
> A throw route is no problem by itself. It only means that the Linux kernel
> will leave the current table to check the next one for a suitable routing
> entry.
>
> If you are interested in understanding the routing techniques used by batman:
> http://www.open-mesh.org/wiki/RoutingVodoo
>
>
>> What I am seeing is that traffic from local wifi net does not "go down" to the
>> tunnels, but goes through the batman nodes untunneled. Maybe I have to set
>> up some routes from the local wifi net? For your reference here is the
>> network setup again (N is the node number, ip of the node/netmask len):
>> backbone batman network: 10.42.0.N/24 (for batman nodes)
>> local wifi net: 10.42.N.1/24 (for non-batman users, dhcp served from the
>> node in force mode)
>> local lan: 10.43.N.1/24 (for wired users, DHCP served from the node)
> Does each node announce the "local wifi net" via HNA ? You will need these
> announcements to make the routing towards this addresses work. As soon as
> batmand knows that it is responsible for a certain IP address space it will
> add the appropriate routing entries for you.
> Again, we have a document describing the process:
> http://www.open-mesh.org/wiki/AnnouncingNetworks
>
>
I do announce local wifi net through HNA.
In the meantime my config started to not work. I saw that the node in
the middle does REJECT tunnel traffic from packet filter, so added a
firewall rule to accept everything in the FORWARD chain in all nodes.
Then as packets started to come out from the system with tunnel source
IP, I have added a MASQUERADE on the node which is connected to the
internet gateway.
Now it works, but uses the tunnel in an assymetric way: packets out go
through the tunnel, packets in go in the plain route.
13:38:53.464186 00:22:fa:95:1d:c4 > 00:0b:6b:3c:74:86, ethertype IPv4
(0x0800), length 74: 10.42.3.178.51723 > 1.2.3.4.80: Flags [S], seq
2151644104, win 5840, options [mss 1460,sackOK,TS val 6321427 ecr
0,nop,wscale 6], length 0
13:38:53.468526 00:0b:6b:3c:74:86 > 00:0b:6b:3c:73:56, ethertype IPv4
(0x0800), length 103: 10.42.0.3.4306 > 10.42.0.4.4306: UDP, length 61
13:38:53.469091 00:0b:6b:3c:73:56 > 00:0b:6b:3c:74:8c, ethertype IPv4
(0x0800), length 103: 10.42.0.3.4306 > 10.42.0.4.4306: UDP, length 61
13:38:53.474019 00:0b:6b:3c:74:8c > 00:0b:6b:3c:73:56, ethertype IPv4
(0x0800), length 74: 1.2.3.4.80 > 10.42.3.178.51723: Flags [S.], seq
1125027318, ack 2151644105, win 5792, options [mss 1460,sackOK,TS val
19849628 ecr 6321427,nop,wscale 5], length 0
13:38:53.474497 00:0b:6b:3c:73:56 > 00:0b:6b:3c:74:86, ethertype IPv4
(0x0800), length 74: 1.2.3.4.80 > 10.42.3.178.51723: Flags [S.], seq
1125027318, ack 2151644105, win 5792, options [mss 1460,sackOK,TS val
19849628 ecr 6321427,nop,wscale 5], length 0
13:38:53.475385 00:0b:6b:3c:74:86 > 00:22:fa:95:1d:c4, ethertype IPv4
(0x0800), length 74: 1.2.3.4.80 > 10.42.3.178.51723: Flags [S.], seq
1125027318, ack 2151644105, win 5792, options [mss 1460,sackOK,TS val
19849628 ecr 6321427,nop,wscale 5], length 0
>> Páty, Hungary. We are experimenting with participatory democracy, and
>> this is one of the side effects:)
> Cool! Good luck with your experiments. :-)
>
> Regards,
> Marek
>
next prev parent reply other threads:[~2010-09-30 11:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-28 19:08 [B.A.T.M.A.N.] Mesh with access from wifi and lan. Which is the Only True Way? Magosányi Árpád
2010-09-29 10:28 ` 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 [this message]
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=4CA4799C.6050503@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