[OLSR-users] OLSR on FreeBSD

Sven-Ola Tuecke (spam-protected)
Mon Sep 18 17:49:13 CEST 2006


Hi,

dunno if *BSD supports multiple default routes. On linux we always have at 
least 2 of them if a static defroute is present and the olsrd too: one with 
metric=0 (the static one, e.g. the one configured by openVPN) and another 
with metric != 0 (the olsrd one). If *BSD has no metric, the olsr may 
overwrite your openvpn defroute-via-tun0.

Is it possible to use another routing table (e.g. like policy routing on 
linux)? You may repeat the Q. on any *BSD forum - I think that is a FAQ. 
Other option: Patch olsrd and remove the default-route-code (aka HNA) which 
is obviously unnecessary in Rostock (no openVPN key, no inet as I read your 
mail).

HTH Sven-Ola

"Karsten Rothemund" <(spam-protected)> schrieb im Newsbeitrag 
news:(spam-protected)
> _______________________________________________
> olsr-users mailing list
> (spam-protected)
> https://www.olsr.org/mailman/listinfo/olsr-users
>
Hello olsr-list,

I have a problem using olsr on FreeBSD 6: the default route is changed
after a time (in the order of some minutes).

More detailed: I want to use my laptop in an ad-hoc WLAN-net
(stationary and maybe some mobile knots) here in Rostock. Routing in
this net is done by olsrd (last version 0.4.10 I think).

There are some (around 3) gateways to the web and the traffic between
the gateways and the (stationary[1] and the mobile) user is sent
through an OpenVPN tunnel.

When I want to take part in the net with the laptop (WLAN-card is
inserted, interface is wi0) I start the olsrd and the openvpn tunnel.
Both are starting without any trouble (regarding the logs).

Right after that the default route points to the tunnel tun0 and the
traffic to internet is going through the tunnel (at the same time all
traffic to the WLAN-knots is passed directly to the wi0 interface).
Good, exactly what I want.

But after some minutes (around 5, maybe 10) the default route is
deleted (or points to wi0, NOT to tun0). The tunnel still exists and
the log files do not show anything special: everything seems to be OK
(and is - except the routing). The traffic is not routed to the
internet (it passes besides the tunnel and maybe reaches gateway - but
the gateways are configured to only route traffic coming through the
tunnel to the internet).

I can of course provide you with the config files (olsrd.conf ond
maybe openvpn.conf). But they are quite equal (identical with my
specific passwords/phases/numbers) to the ones other people in the
community here use with their Linux-laptops.

My question is: is there someone out there in the list, who knows more
about olsrd and FreeBSD? Is there is something special in the communication
between olsrd and the FreeBSD system?

What I have tried already: "changing routes" made me think of dhcp and
I killed all dhcpd-s. I also killed (deactivated at boot time) devd,
because it seems to start dhcp-processes later (maybe caused by
changes at an interface). Both didn't help.

Is there something (probably very simple) I've forgotten?


[1] The stationary knots are Access Points running a modified OpenWRT
with olsrd and OpenVPN.


Hope, someone can help,

Karsten

-- 

Karsten Rothemund <(spam-protected)>     /"\
PGP-Key:     0x7019CAA5                   \ /
Fingerprint: E752 C759 B9B2 2057 E42F      \  ASCII Ribbon Campaign
             50EE 47AC A7CE 7019 CAA5     / \ Against HTML Mail and News





More information about the Olsr-users mailing list