[OLSR-users] dis/enabling HNA4 while olsrd is running
Jens Nachtigall
(spam-protected)
Wed Nov 3 12:20:45 CET 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> >> This would be a typical plug-in scenario. Actually there is
> >> already a plugin(dyn_gw) that adds and removed Internet HNA4
> >> announcments dynamically based on the existence of a default
> >> route(with metric 0). You should check it out.
> >
> > Thanks for the pointer. However, this does not do what I actually
> > want,
>
> Well - I realize that ;-) but it is very close. You could just
> replace the check of the internal routes(check for Internet route)
> with a ping test.
I see now :-). Actually, I like your approach better, i.e. automatically
adding gateways (same as file sharing apps which automatically search
for files to share --> good for the net). If a user is in doubt, it is
more likely that she/he is willing to share bandwidth if it's done
automatically.
I've created an (ugly ;-) patch that does more or less what I want (see
attachment). The remaining question would be:
a) how to generalize the dyn_gw for other subnets (how to make sure that
these are not behind a NAT), e.g. routers having a route to
192.168.2.0/24 and having a NAT for this
>
> Then again - there is the question of wether or not pinging hosts are
> the way to go about this(firewalls, external host goes down ect.).
> But I'm not going to debate that - it is definetly one easy and quick
> way of doing this :-)
Yes, I cannot think of anything better ----> suggestions by others
welcome.
> As for passing an IP to the plugin(to ping), this kind of
> functionallity will probably be available for 0.4.8. There are a LOT
> of changes scheduled for the next release and one of them will
> hopefully be the abillity to pass parameters to plugins from the
> config file.
My idea would be to let the users configure the IPs which should be
pingable in a certain subnet. If none a given, at least for the
internet gateway suitable default IPs could be taken. If ping should
really be done, could be an config option as well.
Kind regards,
Jens
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFBiL8gAzJOgw63+4oRAmdBAJ9mn7OisRg0ZadgidKdK47zBbF4HACgiulJ
lqLV1haK5p81FMvSazOGrFQ=
=7DYx
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dyn_gw.diff
Type: text/x-diff
Size: 1705 bytes
Desc: not available
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20041103/39f3616c/attachment.diff>
More information about the Olsr-users
mailing list