Skip to content

Commit

Permalink
bmx7: allow setting trustedNodesDir
Browse files Browse the repository at this point in the history
To make use of bmx7 signature checking one has to set
bmx7.general.trustedNodesDir='/etc/bmx7/trustedNodes'
Allow communities to do that by setting lime config option
network.bmx7_enable_pki to true.

Signed-off-by: Daniel Golle <[email protected]>
  • Loading branch information
dangowrt committed Jun 21, 2020
1 parent 658cd27 commit 57565ec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/lime-docs/files/lime-example
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ config lime network
option bmx7_over_batman false
option bmx7_pref_gw none # Force bmx7 to use a specific gateway to Internet (hostname must be used as identifier)
option bmx7_wifi_rate_max 'auto'
option bmx7_enable_pki false # Trust only nodes in /etc/bmx7/trustedNodes when set (default is to trust all nodes)
option anygw_mac 'aa:aa:aa:%N1:%N2:aa' # Parametrizable with %Nn. Keep in mind that the ebtables rule will use a mask of ff:ff:ff:00:00:00 so br-lan will not forward anything coming in that matches the first 3 bytes of it's own anygw_mac (aa:aa:aa: by default)
# option autoap_enabled 0 # Requires lime-ap-watchping installed. If enabled AP SSID is changed to ERROR when network issues
# option autoap_hosts "8.8.8.8 141.1.1.1" # Requires lime-ap-watchping installed. Hosts used to check if the network is working fine
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ function bmx7.configure(args)
uci:set("bmx7", "librenet6", "dev", "librenet6")
end

local enablePKI = config.get_bool("network", "bmx7_enable_pki")
if (enablePKI) then
uci:set(bmx7.f, "general", "trustedNodesDir", "/etc/bmx7/trustedNodes")
end

if(hasLan) then
uci:set("bmx7", "lm_net_br_lan", "dev")
uci:set("bmx7", "lm_net_br_lan", "dev", "br-lan")
Expand Down
1 change: 1 addition & 0 deletions packages/lime-system/files/etc/config/lime-defaults
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ config lime network
option bmx7_over_batman false
option bmx7_pref_gw none
option bmx7_wifi_rate_max 'auto'
option bmx7_enable_pki false
option anygw_mac "aa:aa:aa:%N1:%N2:aa"
option use_odhcpd false

Expand Down

0 comments on commit 57565ec

Please sign in to comment.