[olsr-dev] Policy Routing Hack

Sven-Ola Tuecke (spam-protected)
Mon Apr 23 15:33:49 CEST 2007


Hi Bernd,

for me it's working fine. However, the struct tcmsg change is appreciated of 
course. What's wrong on your side? Does-not-compile or has-no-effect? In the 
latter case, you need to add some policy stuff first. Example: set 
rttable=123 in olsrd.conf and hack in something in the start script, e.g. 
"ip rule add from 10.0.0.0/8 table 123" and maybe "ip rule add from 
192.168.0.0/16 to 10.0.0.0/8 table 123" provided that your mesh runs on 
10.x.x.x. After starting olsrd, the "route -n" command does not show any 
OLSR route. You need to enter "ip route ls table 123" for this. And you need 
the ip command, "apt-get install iproute" or so...

// Sven-Ola

"Bernd Petrovitsch" <(spam-protected)> schrieb im Newsbeitrag 
news:(spam-protected)
> On Thu, 2007-04-19 at 19:42 +0200, Sven-Ola Tuecke wrote:
>> Hey,
>>
>> justa note: policy patch is on top of olsrd-0.5.0.tar.bz2 + cvs.patch.
>> http://ff-firmware.cvs.sourceforge.net/ff-firmware/ff-ng/freifunk-openwrt/package/freifunk-olsrd/patches/
>> Needed this to prevent the fast-guys selling ff gateways via fon with 
>> some
>> policy magic. Ah - the never-used "delete all default routes when olsrd
>> default route comes up" option is not implemented in this hack and it's
>> linux-ipv4-only of course, tested on i386le and mipsbe. New olsrd.conf
>> option: rttable (default 254 == main aka "known by route command").
>
> Hmm, it doesn't work for me so far. But I didn't look much into it.
> However, to avoid the name clash (und especially the - IMHO ugly -
> work-around), I renamed the "struct tcmsg" in the olsrd to "struct
> olsr_tcmsg" (in CVS-HEAD obviously).
>
> Bernd
> -- 
> Firmix Software GmbH                   http://www.firmix.at/
> mobil: +43 664 4416156                 fax: +43 1 7890849-55
>          Embedded Linux Development and Services
>
>
> _______________________________________________
> olsr-dev mailing list
> (spam-protected)
> https://www.olsr.org/mailman/listinfo/olsr-dev 





More information about the Olsr-dev mailing list