forked from freifunk-franken/firmware
Fabian Bläse
e07f6121cc
For some purposes (e.g. SNAT, vxlan) it might be necessary to have an additional address just for the router which is not attached to any interfaces. Addresses like this are typically added to the loopback interface. The new options "router_ip" and "router_ip6" are added to the gateway config to allow the user to configure such addresses. It is possible to both specify the address with or without a subnet size. The default configuration contains the IPv4 loopback address (127.0.0.1/8) explicitly, but this is not necessary. These addresses are configured automatically, even if they are not present in the configuration, so they can safely be removed, if present. The filters of our routing daemon babeld are adjusted accordingly, so the newly added addresses are announced correctly. Signed-off-by: Fabian Bläse <fabian@blaese.de> Reviewed-by: Christian Dresel <freifunk@dresel.systems> Reviewed-by: Johannes Kimmel <fff@bareminimum.eu>
45 lines
790 B
Plaintext
45 lines
790 B
Plaintext
config general
|
|
option export_table '10'
|
|
option import_table '10'
|
|
option local_port '33123'
|
|
|
|
config interface
|
|
option type 'wired'
|
|
|
|
config filter
|
|
option type 'redistribute'
|
|
option local 'true'
|
|
option ip '10.50.0.0/16'
|
|
|
|
config filter
|
|
option type 'redistribute'
|
|
option local 'true'
|
|
option ip '10.83.0.0/16'
|
|
|
|
config filter
|
|
option type 'redistribute'
|
|
option local 'true'
|
|
option ip 'fd43:5602:29bd::/48'
|
|
|
|
config filter
|
|
option type 'redistribute'
|
|
option local 'true'
|
|
option if 'lo'
|
|
|
|
config filter
|
|
option type 'redistribute'
|
|
option local 'true'
|
|
option action 'deny'
|
|
|
|
config filter
|
|
option type 'redistribute'
|
|
option ip '10.50.0.0/16'
|
|
|
|
config filter
|
|
option type 'redistribute'
|
|
option ip '10.83.0.0/16'
|
|
|
|
config filter
|
|
option type 'redistribute'
|
|
option ip 'fd43:5602:29bd::/48'
|