gluon/package/gluon-radv-filterd
Sven Eckelmann 2d3614c1a9
gluon-radv-filterd: Trigger config reload checks on interface.* events
The init scripts adds the br-client as netdev for the daemon. The daemon
will automatically be restarted when the netdev's ifindex is changed and
the reload target of the init script is called. But something has to call
this script first.

This can be done the procd triggers interface which can simply wait for all
events from type "interface.*". The reload target will always be called but
the daemon will only be restarted when the br-client ifindex actually
changed.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2018-01-03 15:45:22 +01:00
..
files gluon-radv-filterd: Trigger config reload checks on interface.* events 2018-01-03 15:45:22 +01:00
luasrc/lib/gluon/upgrade gluon-radv-filterd: Various small fixes due to NeoRaider 2018-01-03 14:59:48 +01:00
src gluon-radv-filterd: Fix sock initialization check 2018-01-03 15:45:21 +01:00
check_site.lua gluon-radv-filterd: Various small fixes due to NeoRaider 2018-01-03 14:59:48 +01:00
Makefile gluon-radv-filterd: Use generic netlink to request batman-adv data 2018-01-03 15:45:21 +01:00
README.md Add package gluon-radv-filterd 2018-01-03 14:59:35 +01:00

gluon-radv-filterd

This package drops all incoming router advertisements except for the default router with the best metric according to B.A.T.M.A.N. advanced.

Note that advertisements originating from the node itself (for example via gluon-radvd) are not affected and considered at all.

"Best" router

The best router is determined by the TQ that is reported for its originator by B.A.T.M.A.N. advanced. If, for some reason, another gateway with a better TQ appears or an existing gateway increases its TQ above that of the chosen gateway, the chosen gateway will remain selected until the better gateway has a TQ value at least X higher than the selected gateway. This is called hysteresis, and X can be specified on the commandline/via UCI/the site.conf and defaults to 20 (just as for the IPv4 gateway selection feature built into B.A.T.M.A.N. advanced).

"Local" routers

The package has functionality to assign "local" routers, i.e. those connected via cable or WLAN instead of via the mesh (technically: appearing in the transtable_local), a fake TQ of 512 so that they are always preferred. However, if used together with the gluon-ebtables-filter-ra-dhcp package, these router advertisements are filtered anyway and reach neither the node nor any other client. You currently have to disable the package or insert custom ebtables rules in order to use local routers.