public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] Problem with gateway-dhcp
@ 2008-10-14  7:26 Tobias Gieseke
  0 siblings, 0 replies; 6+ messages in thread
From: Tobias Gieseke @ 2008-10-14  7:26 UTC (permalink / raw)
  To: b.a.t.m.a.n

Hi there,

I'm using batmand 0.3 rv1057 on six Buffalo WHR-HP-G54 with WhiteRussian 
0.9 Open-WRT. The mesh works fine, even the vis-server does its job. But 
I'm having some Problems with the Gateway:

One of the routers is connected to a LAN with internet access via 
WAN-Port and should act as a gateway for the mesh. When the 
Gateway-Router is started interface gate0 is up and runnig but always 
has the Adress 169.254.0.0. The clients recognize the gateway (entry in 
debugmode 2) but can't get a connection to the internet or the standard 
gateway of the LAN. Clients get IP-adress 169.254.0.x (x starting at 1) 
for their gate0 interface and the gateway is aware of that.

For example (can't remember the exact messages but this was about their 
content):
Message on Gateway, Debugmode3:
"Gateway assigned IP adress 169.254.0.1 to client 192.168.100.2"
Message on Client, Debugmode3:
"Got IP adress 169.254.0.1 from Gateway 192.168.100.1"

According to the batman manual the gateway should act as "a tiny DHCP 
server" but as I always get these 169. adresses I assume it isn't 
running properly. I did not touch the firewall or the iptables because I 
don't know anything about it. There might be some entries which would 
solve the problem, but I could not find those in the manual or the 
mailing-list archive.

As I've found a lot of Debug outputs where the Gateway-DHCP was running, 
I'm sure someone can help me out with that little problem.


wireless greetings,

Tobi



^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [B.A.T.M.A.N.] Problem with gateway-dhcp
@ 2008-10-14  9:14 Marek Lindner
  2008-10-15 13:26 ` Tobias Gieseke
  0 siblings, 1 reply; 6+ messages in thread
From: Marek Lindner @ 2008-10-14  9:14 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking


Hi,

> For example (can't remember the exact messages but this was about their
> content):
> Message on Gateway, Debugmode3:
> "Gateway assigned IP adress 169.254.0.1 to client 192.168.100.2"
> Message on Client, Debugmode3:
> "Got IP adress 169.254.0.1 from Gateway 192.168.100.1"

so far, everything as expected. 


> According to the batman manual the gateway should act as "a tiny DHCP
> server" but as I always get these 169. adresses I assume it isn't
> running properly. I did not touch the firewall or the iptables because I
> don't know anything about it. There might be some entries which would
> solve the problem, but I could not find those in the manual or the
> mailing-list archive.

Batman has its internal DHCP server for the gateway tunneling via the gate0 
interfaces. This address space was chosen to avoid configuration as it should 
not be in use. 

You could try to ping the gateway via the virtual address (169.254.0.0) to 
check whether the tunnel connection works or not. If you run into a timeout 
you should disable the firewall on the gateway. Ping again to feel the 
difference.  ;-)

May be you are lacking the the masquerading rules on gate0. Issue:
iptables -t nat -I POSTROUTING -o gate0 -j MASQUERADE
on the client and on the gateway.

Regards,
Marek



^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [B.A.T.M.A.N.] Problem with gateway-dhcp
@ 2008-10-16 11:48 Marek Lindner
  2008-10-17 12:37 ` Tobias Gieseke
  0 siblings, 1 reply; 6+ messages in thread
From: Marek Lindner @ 2008-10-16 11:48 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Wednesday 15 October 2008 21:26:01 Tobias Gieseke wrote:
> -Do I have to start the batmand with the WAN-Interface (vlan1)? Meaning:
> batmand -g 10mbit eth1 vlan1

No, that is unnecessary. Whenever the batman gateway receives packets for the 
internet it simply adds them to the routing queue. The kernel itself will 
handle further routing.


> -Do I have to announce the 192.168.208.0/24 net  with batman? (I guess not)

Not really unless you want to get a connection to a distinct node other than 
the internet gateway. Remember: you also need a route back if you do so.


> -Do I have to set the DNS-Server manualy or is the gateway acting as DNS

DNS handling is not part of batman. You need to set appropriate DNS entries on 
the clients.


> I'm sorry this turns out to be more a routing problem than a batman/mesh
> problem. Hope you help me anyway.

Sure, no problem. Let us know whether it solves your problem or not.

Regards,
Marek



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-10-18  4:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-14  7:26 [B.A.T.M.A.N.] Problem with gateway-dhcp Tobias Gieseke
  -- strict thread matches above, loose matches on Subject: below --
2008-10-14  9:14 Marek Lindner
2008-10-15 13:26 ` Tobias Gieseke
2008-10-16 11:48 Marek Lindner
2008-10-17 12:37 ` Tobias Gieseke
2008-10-18  4:18   ` Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox