firmware/src/packages/fff/fff-babel/files/etc/uci-defaults/27-babel-network-rules
Fabian Bläse 71d137d4f1 Add support for different babel implementations
To be able to swap out babeld for a different babel implementation in
the future, this splits all fff-specific configuration into a seperate
fff-babel package.

Implementation specific configuration is done in
/lib/functions/fff/babeldaemon, which is included with every selectable
babel implementation. It contains functions, which are called by the
fff-specific code, and therefore allows to configure the implementation
specific parts.

The babel implementation is provided by implementation-specific
fff-packages, which provide 'fff-babel-implementation'. At the moment,
only fff-babeld is supported for use as babel implementation.

Signed-off-by: Fabian Bläse <fabian@blaese.de>
Acked-by: Christian Dresel <freifunk@dresel.systems>
2022-03-23 19:46:30 +01:00

45 lines
1.2 KiB
Plaintext

uci batch <<EOF
add network rule
set network.@rule[0].src='10.50.0.0/16'
set network.@rule[0].lookup='10'
set network.@rule[0].priority='20'
add network rule
set network.@rule[1]=rule
set network.@rule[1].dest='10.50.0.0/16'
set network.@rule[1].lookup='10'
set network.@rule[1].priority='20'
add network rule
set network.@rule[2].src='10.83.0.0/16'
set network.@rule[2].lookup='10'
set network.@rule[2].priority='20'
add network rule
set network.@rule[3]=rule
set network.@rule[3].dest='10.83.0.0/16'
set network.@rule[3].lookup='10'
set network.@rule[3].priority='20'
add network rule
set network.@rule[4]=rule
set network.@rule[4].in='client'
set network.@rule[4].lookup='10'
set network.@rule[4].priority='31'
add network rule6
set network.@rule6[0]=rule6
set network.@rule6[0].src='fc00::/7'
set network.@rule6[0].lookup='10'
set network.@rule6[0].priority='20'
add network rule6
set network.@rule6[1]=rule6
set network.@rule6[1].dest='fc00::/7'
set network.@rule6[1].lookup='10'
set network.@rule6[1].priority='20'
add network rule6
set network.@rule6[2]=rule6
set network.@rule6[2].in='client'
set network.@rule6[2].lookup='10'
set network.@rule6[2].priority='31'
EOF
uci commit network
exit 0