gluon-mesh-batman-adv: Add IPv4 subnet to br-client

This allows us to route and NAT between br-client and br-wan in the future.
Which is necessary for the gluon-alt-esc-provider package, for instance.

With the local-node routes separated in their own table, the issue
described in:

3ef28a4684 ("gluon-client-bridge: Revert "move IPv4 local subnet route to br-client (#1312)"

and initially introduced in:

b3762fc61c ("gluon-client-bridge: move IPv4 local subnet route to br-client (#1312)")

does not apply anymore, which makes this change safe again.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
This commit is contained in:
Linus Lüssing 2018-11-15 01:44:27 +01:00
parent 8c6a4d8c1a
commit 86802acefd

View File

@ -25,6 +25,11 @@ uci:section('network', 'interface', 'client', {
uci:delete('network', 'client_lan') uci:delete('network', 'client_lan')
uci:section('network', 'route', 'br_client_route', {
interface = 'client',
target = site.prefix4(),
})
uci:section('network', 'rule', 'local_node_rule', { uci:section('network', 'rule', 'local_node_rule', {
src = next_node.ip4 .. '/32', src = next_node.ip4 .. '/32',
lookup = 2, lookup = 2,