From: elektra <onelektra@gmx.net>
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.] Gateway routing / finding
Date: Wed, 12 Mar 2008 18:36:13 +0100 [thread overview]
Message-ID: <47D8148D.600@gmx.net> (raw)
In-Reply-To: <49584.70.128.180.22.1205342204.squirrel@webmail.reglue.org>
I wrote that newer versions of Batman (Experimental and Beta) use ports
4305-4307, but you are using the stable version. So if you didn't
upgrade you have to open ports 1966-1967, not 4305.
> Yesterday, I thought I had a basic understanding of what was going on and
> how to do it.
>
> So this morning I woke up and decided to improve it with the individual
> ip's for each interface.
> killall batmand
> iwconfig wl0 channel 10 essid project mode Ad-Hoc
> ifconfig eth0 103.0.0.81 netmask 255.0.0.0 broadcast 103.255.255.255
> ifconfig eth0.0 103.0.0.82 netmask 255.0.0.0 broadcast 103.255.255.255
> #ifconfig eth0.1 103.0.0.83 netmask 255.0.0.0 broadcast 103.255.255.255
> ifconfig wl0 103.0.0.84 netmask 255.0.0.0 broadcast 103.255.255.255
> ifconfig br-lan 103.0.0.85 netmask 255.0.0.0 broadcast 103.255.255.255
> iptables -t filter -I INPUT 2 -p udp --dport 4305 --sport 4305 -j ACCEPT
> iptables -t filter -I INPUT 2 -p udp --dport 4306 --sport 4306 -j ACCEPT
> iptables -t filter -I INPUT 2 -p udp --dport 4307 --sport 4307 -j ACCEPT
> iptables -t filter -I OUTPUT 2 -p udp --dport 4305 --sport 4305 -j ACCEPT
> iptables -t filter -I OUTPUT 2 -p udp --dport 4306 --sport 4306 -j ACCEPT
> iptables -t filter -I OUTPUT 2 -p udp --dport 4307 --sport 4307 -j ACCEPT
> batmand eth0 eth0.0 wl0 br-lan &
>
>
> Yesterday I had all the batmannodes with internet connectivity. I did
> notice though that if changed gateways they weren't picking up on it; so I
> was going to try out batman III once I clarified for myself what was going
> on. So I tried the aforementioned script. It didn't work. So I thought
> "ah ha, it might help the interfaces to share ip addresses because some
> piece is not being found." So I went back to what I thought was a working
> script.
>
> killall batmand
> iwconfig wl0 channel 10 essid project mode Ad-Hoc
> ifconfig eth0 103.0.0.8 netmask 255.0.0.0 broadcast 103.255.255.255
> ifconfig eth0.0 103.0.0.8 netmask 255.0.0.0 broadcast 103.255.255.255
> # ifconfig eth0.1 103.0.0.8 netmask 255.0.0.0 broadcast 103.255.255.255
> ifconfig wl0 103.0.0.8 netmask 255.0.0.0 broadcast 103.255.255.255
> iptables -t filter -I INPUT 2 -p udp --dport 4305 --sport 4305 -j ACCEPT
> iptables -t filter -I INPUT 2 -p udp --dport 4306 --sport 4306 -j ACCEPT
> iptables -t filter -I INPUT 2 -p udp --dport 4307 --sport 4307 -j ACCEPT
> iptables -t filter -I OUTPUT 2 -p udp --dport 4305 --sport 4305 -j ACCEPT
> iptables -t filter -I OUTPUT 2 -p udp --dport 4306 --sport 4306 -j ACCEPT
> iptables -t filter -I OUTPUT 2 -p udp --dport 4307 --sport 4307 -j ACCEPT
> batmand br-lan &
>
> that didn't work so I killalled batmand and then
> batmand -d 3 -r 3 -p 103.0.0.3 wl0 br-lan
>
> I was wrong.
>
> Even though I see:
> Using interface wl0 with address 103.0.0.8 and broadcast address
> 103.255.255.255
> Using interface br-lan with address 103.0.0.8 and broadcast address
> 103.0.0.255
> debug level: 3
> routing class: 3
> preferred gateway: 103.0.0.3
> Adding route to 103.0.0.3 via 0.0.0.0 (br-lan)
> Adding route to 10.0.2.122/32 via 103.0.0.3 (br-lan)
>
> It has found the internet gateway 10.0.2.122; it can't reach the internet.
>
> now, I'm going to:
> remove the x-wrt webif-batman stuff (just in case)
> look for batman config files
> reread the openmesh.net stuff
> reinstall batman with the pkg's from openmesh.net
> possible try out batman III
>
> thoughts? suggestions?
>
> cheers,
>
> D Davis
>
>
>
> _______________________________________________
> 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-03-12 17:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-12 17:16 [B.A.T.M.A.N.] Gateway routing / finding dondavis
2008-03-12 17:36 ` elektra [this message]
2008-03-12 18:49 ` dondavis
2008-03-12 19:25 ` elektra
2008-03-12 21:22 ` dondavis
2008-03-12 22:19 ` Donald Davis
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=47D8148D.600@gmx.net \
--to=onelektra@gmx.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.