Skip to content

Commit

Permalink
Merge pull request #94 from libremesh/main
Browse files Browse the repository at this point in the history
Just moving branches...
  • Loading branch information
ilario authored May 10, 2024
2 parents a568ed0 + 2947d09 commit 66fe5df
Show file tree
Hide file tree
Showing 38 changed files with 219 additions and 129 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config lime system
option hostname 'gateway_device43'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.4275830'
list uci_set 'location.settings.node_longitude=2.183551'
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config lime system
option hostname 'gateway_device28'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.4274227'
list uci_set 'location.settings.node_longitude=2.1831934'
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config lime system
option hostname 'gateway_device7'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.4274375'
list uci_set 'location.settings.node_longitude=2.1827042'
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config lime system
option hostname 'gateway_device9'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.4274375'
list uci_set 'location.settings.node_longitude=2.1827042'
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config lime system
option hostname 'gateway_device6'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.4274375'
list uci_set 'location.settings.node_longitude=2.1827042'
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config lime system
option hostname 'gateway_device26'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.4274227'
list uci_set 'location.settings.node_longitude=2.1831934'
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config lime system
option hostname 'gateway_device29'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.4275745'
list uci_set 'location.settings.node_longitude=2.1833688'
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config lime system
option hostname 'gateway_device15'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.4275750'
list uci_set 'location.settings.node_longitude=2.183007'
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config lime system
option hostname 'gateway_device34'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.4275745'
list uci_set 'location.settings.node_longitude=2.1833688'
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config lime system
option hostname 'gateway_device35'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.4274254'
list uci_set 'location.settings.node_longitude=2.183692'
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config lime system
option hostname 'gateway_device20'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.4275750'
list uci_set 'location.settings.node_longitude=2.183007'
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config lime system
option hostname 'gateway_device41'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.4274254'
list uci_set 'location.settings.node_longitude=2.183692'
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config lime system
option hostname 'gateway_device42'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.4275830'
list uci_set 'location.settings.node_longitude=2.183551'
20 changes: 20 additions & 0 deletions canodrom.barcelona/gatewayVPN/root/etc/config/lime-community
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
config lime network
option main_ipv4_address '10.1.128.0/16/17'
option anygw_dhcp_start '2562'
option anygw_dhcp_limit '30205'
option batadv_orig_interval '5000'

config lime wifi
option country 'ES'
option ap_ssid 'LibreMesh.org'
Expand All @@ -12,3 +18,17 @@ config lime-wifi-band '5ghz'
option channel '48'
option distance '500'

config run_asset root_password
option asset 'community/root_password'
option when 'ATFIRSTBOOT'

config generic_uci_config dropbear
list uci_set "dropbear.@dropbear[0].RootPasswordAuth=off"

config copy_asset authorized_keys
option asset 'community/authorized_keys'
option dst '/etc/dropbear'

config run_asset fix_authorized_keys_permissions
option asset 'community/fix_authorized_keys_permissions'
option when 'ATCONFIG'
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL6yvUIq5lyDxswAUfo8vrsDaG9VU7sMvx6AvQhG35I1 ilario@satellite
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL6yvUIq5lyDxswAUfo8vrsDaG9VU7sMvx6AvQhG35I1 ilario@sindominio.net
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGuZnYnYWHIgBe8L28DeGEW54GNzIsA49Y1/ouA6PB/w pedro@dweb
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOdNNWmLMJNMkO0UzkOrNjAONlzQ2oBkA+b0f/Lq6RqJ
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOdNNWmLMJNMkO0UzkOrNjAONlzQ2oBkA+b0f/Lq6RqJ angel
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

# Fix dropbear authorized keys permissions
chmod 0600 /etc/dropbear/authorized_keys
chmod 0700 /etc/dropbear
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
!#/bin/sh

# Disclamer: We know that hardcoding the password is a bad idea and that uploading its hash on the internet is stupid

# as recommended by Pedro here:
# https://agora.exo.cat/t/decidir-gestio-testbed/318/9
# salt=$(openssl rand -base64 12)
# password=FIXME
# hashed_passwd=$(openssl passwd -6 -salt "$salt" "$password")

sed -i 's/root::/root:$6$5VUgcTdRQN4igoWs$ZuZu.4ruzVUQ.Yg3klttzl57NrDySmJZOWKngIL9V/AjEDyCkx.o.cfIo2wLuJdCl9GHNR5sKm.ld5/09Q0WQ1:/' /etc/shadow
15 changes: 0 additions & 15 deletions canodrom.barcelona/simple/root/etc/config/lime-10FEED3B3D72

This file was deleted.

15 changes: 0 additions & 15 deletions canodrom.barcelona/simple/root/etc/config/lime-10FEEDE5EEF2

This file was deleted.

10 changes: 5 additions & 5 deletions canodrom.barcelona/simple/root/etc/config/lime-10FEEDE5F0C8
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
config lime system
option hostname 'device38'
option hostname 'device43'

config net 'lm_hwd_openwrt_wan'
option autogenerated 'false'
option linux_name 'eth0.2'
list protocols 'static'
option static_ipv4 '192.168.1.38/24'
option static_ipv4 '192.168.1.43/24'
option static_gateway_ipv4 '192.168.1.1'
option static_ipv6 '2a00:1508:0a00:38/64'
option static_ipv6 '2a00:1508:0a00:43/64'
option static_gateway_ipv6 'fe80::1'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.42753'
list uci_set 'location.settings.node_longitude=2.18346'
list uci_set 'location.settings.node_latitude=41.4275830'
list uci_set 'location.settings.node_longitude=2.183551'
10 changes: 5 additions & 5 deletions canodrom.barcelona/simple/root/etc/config/lime-10FEEDE60AD8
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
config lime system
option hostname 'device38'
option hostname 'device28'

config net 'lm_hwd_openwrt_wan'
option autogenerated 'false'
option linux_name 'eth0.2'
list protocols 'static'
option static_ipv4 '192.168.1.38/24'
option static_ipv4 '192.168.1.28/24'
option static_gateway_ipv4 '192.168.1.1'
option static_ipv6 '2a00:1508:0a00:38/64'
option static_ipv6 '2a00:1508:0a00:28/64'
option static_gateway_ipv6 'fe80::1'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.42753'
list uci_set 'location.settings.node_longitude=2.18346'
list uci_set 'location.settings.node_latitude=41.4274227'
list uci_set 'location.settings.node_longitude=2.1831934'
10 changes: 5 additions & 5 deletions canodrom.barcelona/simple/root/etc/config/lime-6466B3C6EDCA
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
config lime system
option hostname 'device38'
option hostname 'device7'

config net 'lm_hwd_openwrt_wan'
option autogenerated 'false'
option linux_name 'eth0.2'
list protocols 'static'
option static_ipv4 '192.168.1.38/24'
option static_ipv4 '192.168.1.7/24'
option static_gateway_ipv4 '192.168.1.1'
option static_ipv6 '2a00:1508:0a00:38/64'
option static_ipv6 '2a00:1508:0a00:7/64'
option static_gateway_ipv6 'fe80::1'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.42753'
list uci_set 'location.settings.node_longitude=2.18346'
list uci_set 'location.settings.node_latitude=41.4274375'
list uci_set 'location.settings.node_longitude=2.1827042'
10 changes: 5 additions & 5 deletions canodrom.barcelona/simple/root/etc/config/lime-6466B3CE2F1E
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
config lime system
option hostname 'device38'
option hostname 'device9'

config net 'lm_hwd_openwrt_wan'
option autogenerated 'false'
option linux_name 'eth0.2'
list protocols 'static'
option static_ipv4 '192.168.1.38/24'
option static_ipv4 '192.168.1.9/24'
option static_gateway_ipv4 '192.168.1.1'
option static_ipv6 '2a00:1508:0a00:38/64'
option static_ipv6 '2a00:1508:0a00:9/64'
option static_gateway_ipv6 'fe80::1'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.42753'
list uci_set 'location.settings.node_longitude=2.18346'
list uci_set 'location.settings.node_latitude=41.4274375'
list uci_set 'location.settings.node_longitude=2.1827042'
10 changes: 5 additions & 5 deletions canodrom.barcelona/simple/root/etc/config/lime-6466B3FAAF88
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
config lime system
option hostname 'device38'
option hostname 'device6'

config net 'lm_hwd_openwrt_wan'
option autogenerated 'false'
option linux_name 'eth0.2'
list protocols 'static'
option static_ipv4 '192.168.1.38/24'
option static_ipv4 '192.168.1.6/24'
option static_gateway_ipv4 '192.168.1.1'
option static_ipv6 '2a00:1508:0a00:38/64'
option static_ipv6 '2a00:1508:0a00:6/64'
option static_gateway_ipv6 'fe80::1'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.42753'
list uci_set 'location.settings.node_longitude=2.18346'
list uci_set 'location.settings.node_latitude=41.4274375'
list uci_set 'location.settings.node_longitude=2.1827042'
10 changes: 5 additions & 5 deletions canodrom.barcelona/simple/root/etc/config/lime-6470023E9D2A
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
config lime system
option hostname 'device38'
option hostname 'device26'

config net 'lm_hwd_openwrt_wan'
option autogenerated 'false'
option linux_name 'eth0.2'
list protocols 'static'
option static_ipv4 '192.168.1.38/24'
option static_ipv4 '192.168.1.26/24'
option static_gateway_ipv4 '192.168.1.1'
option static_ipv6 '2a00:1508:0a00:38/64'
option static_ipv6 '2a00:1508:0a00:26/64'
option static_gateway_ipv6 'fe80::1'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.42753'
list uci_set 'location.settings.node_longitude=2.18346'
list uci_set 'location.settings.node_latitude=41.4274227'
list uci_set 'location.settings.node_longitude=2.1831934'
10 changes: 5 additions & 5 deletions canodrom.barcelona/simple/root/etc/config/lime-6470023E9D60
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
config lime system
option hostname 'device38'
option hostname 'device29'

config net 'lm_hwd_openwrt_wan'
option autogenerated 'false'
option linux_name 'eth0.2'
list protocols 'static'
option static_ipv4 '192.168.1.38/24'
option static_ipv4 '192.168.1.29/24'
option static_gateway_ipv4 '192.168.1.1'
option static_ipv6 '2a00:1508:0a00:38/64'
option static_ipv6 '2a00:1508:0a00:29/64'
option static_gateway_ipv6 'fe80::1'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.42753'
list uci_set 'location.settings.node_longitude=2.18346'
list uci_set 'location.settings.node_latitude=41.4275745'
list uci_set 'location.settings.node_longitude=2.1833688'
10 changes: 5 additions & 5 deletions canodrom.barcelona/simple/root/etc/config/lime-6470023E9DC6
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
config lime system
option hostname 'device38'
option hostname 'device15'

config net 'lm_hwd_openwrt_wan'
option autogenerated 'false'
option linux_name 'eth0.2'
list protocols 'static'
option static_ipv4 '192.168.1.38/24'
option static_ipv4 '192.168.1.15/24'
option static_gateway_ipv4 '192.168.1.1'
option static_ipv6 '2a00:1508:0a00:38/64'
option static_ipv6 '2a00:1508:0a00:15/64'
option static_gateway_ipv6 'fe80::1'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.42753'
list uci_set 'location.settings.node_longitude=2.18346'
list uci_set 'location.settings.node_latitude=41.4275750'
list uci_set 'location.settings.node_longitude=2.183007'
15 changes: 0 additions & 15 deletions canodrom.barcelona/simple/root/etc/config/lime-6470023E9E8C

This file was deleted.

10 changes: 5 additions & 5 deletions canodrom.barcelona/simple/root/etc/config/lime-6470023E9E90
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
config lime system
option hostname 'device38'
option hostname 'device34'

config net 'lm_hwd_openwrt_wan'
option autogenerated 'false'
option linux_name 'eth0.2'
list protocols 'static'
option static_ipv4 '192.168.1.38/24'
option static_ipv4 '192.168.1.34/24'
option static_gateway_ipv4 '192.168.1.1'
option static_ipv6 '2a00:1508:0a00:38/64'
option static_ipv6 '2a00:1508:0a00:34/64'
option static_gateway_ipv6 'fe80::1'

config generic_uci_config location_coord
list uci_set 'location.settings.node_latitude=41.42753'
list uci_set 'location.settings.node_longitude=2.18346'
list uci_set 'location.settings.node_latitude=41.4275745'
list uci_set 'location.settings.node_longitude=2.1833688'
Loading

0 comments on commit 66fe5df

Please sign in to comment.