View Full Version : OLSR dynamic gateway plugin
rebel2234
01-16-2008, 02:02 PM
did the "olsrd_dyn_gw.so.0.3" plugin make it into the 1.3.12 (build 2731) release? I cannot get it to work for the life of me. Is there something I am missing?
LoadPlugin "olsrd_dyn_gw.so.0.3"
{
PlParam "Interval" "5"
PlParam "Ping" "192.168.11.1"
PlParam "Ping" "172.18.0.1"
}
It's in there, but use olsrd_dyn_gw.so.0.4 with this release, and you should be all set.
Other OLSR plugins available include:
olsrd_arprefresh.so.0.1
olsrd_dot_draw.so.0.3
olsrd_httpinfo.so.0.1
olsrd_txtinfo.so.0.1
rebel2234
01-16-2008, 02:19 PM
One more quick question while im at it. This plugin detects if there is a valid gateway to the internet where would I use this plugin? At the endpoints of my network or somewhere else?
You would add this to the system(s) that have Internet connections.
DrLove73
01-17-2008, 03:48 PM
One more quick question while im at it. This plugin detects if there is a valid gateway to the internet where would I use this plugin? At the endpoints of my network or somewhere else?
Can this work with policy routing gateways (like only dest port 80), or just regular gateways?
The dyngw plugin announces 0.0.0.0/0 via Hna4 based on whether or not there is a response from what you told it to ping.
Policy routing is pretty much a static route type entry and will not change based on anything that OLSR does.
Policy routing gateways are a layer above the standard routing table (and a higher priority). OLSR, and the other routing daemons only manipulate the standard routing table.
DrLove73
01-17-2008, 04:05 PM
I was asking this because I use policy routing for http traffic. If "http" gateway (or towards it) goes down, I am stuck with no service until I manualy turn http marking rule off.
Yes.
Only way I can think of to get around that in any automated fashion would be to have a monitoring script upload and activate a pre-made failover "no policy route" config for you via starutil if it detected such an event.
You'd have to be really diligent about keeping your failover/normal configs up to date so your automated monitoring script didn't upload an old config that left out some important static route or other config change.
DrLove73
01-18-2008, 01:45 AM
I already concluded that, but I will have to carefully plan where to put monitoring script.
It would be nice to have some if then possibility in Star-Os it self tied to few ping watchdog instances. A LOT of trouble would be avoided in that case.