Commit Graph

955 Commits

Author SHA1 Message Date
Tim Wilkinson 95f3cfe75a Fix service alignments 2023-02-21 17:49:10 -08:00
Tim Wilkinson e284ff98e2 Move the unconfigued setup earlier
Fixes bad band label display on first boot
2023-02-21 17:46:43 -08:00
Tim Wilkinson 4763c4d149 Fix AP mode selection when turning mesh back on. 2023-02-20 12:05:39 -08:00
Tim Wilkinson e728e30aaf Handle system upgrade files of type "nand-sysupgrade" 2023-02-20 12:03:01 -08:00
ab7pa 072c3da550 remove WAN Wifi Client key lower limit 2023-02-20 09:25:35 -08:00
Tim Wilkinson 68f242512b More fixes for AP mode
AP radio isn't always phy1 so handle these cases.
Add in some labels to RF and AP for which bands are in use.
2023-02-19 08:18:32 -08:00
Tim Wilkinson 741becfefa
Improve AP band selection. (#718) 2023-02-17 20:58:51 -08:00
Tim Wilkinson 111858eaba
Mesh Status TxMbps calculation consistency (#713)
* Fix the bandwidth reporting for ath10k devices
* Use 'iw' for all TxMbps reporting.
       As we cannot account for error rates in the ath10k driver, to be consistent
       we now use the same system to retrieve tx rates for both ath9k and ath10k.
* Remove unused rate tables
2023-02-15 20:49:33 -08:00
Tim Wilkinson dd00c7b1c3 Fix the bandwidth reporting for ath10k devices 2023-02-15 20:14:53 -08:00
ab7pa b4df8bd893 add help text for LAN AP channel selection 2023-02-14 21:44:39 -08:00
ab7pa 89500f6c2d add extended channels to LAN AP list 2023-02-14 21:44:39 -08:00
Tim Wilkinson 571dbf6251
Disable RTS by default in ath10k devices 02/11/2023 (#706) 2023-02-11 13:44:10 -06:00
Tim Wilkinson 062ffb3521
Normalize the case of the macs and node names (#700) 2023-02-11 13:42:03 -06:00
Tim Wilkinson e515ed7ec6 Provide a timeout on the iperf client.
This cryptic bit of shell script adds a maximum timeout for the iperf client
to run as it appears it can get stuck occasionally. The server has a built-in
timeout (not available in client mode)
2023-02-03 08:17:49 -10:00
Tim Wilkinson fdb9270617
Improve firmware failure error recovery (#683) 2023-01-29 21:21:03 -06:00
Tim Wilkinson f733592438
Make sure we never pass 'nil' to the json parser (#685) 2023-01-28 21:58:46 -06:00
Tim Wilkinson d6a6261a46
Remove fw blocker we no longer need (#679) 2023-01-27 22:08:22 -06:00
Steve 0dc5651690
add hidden and exposed to help file (#676) 2023-01-26 13:39:31 -06:00
Tim Wilkinson e6eef45de7 New firmware selector
Uses the same information as the firmware selector UI
2023-01-25 23:42:06 -08:00
Tim Wilkinson 4894f42efd Make sure we look for packages with the correct architecture 2023-01-24 23:29:06 -08:00
Tim Wilkinson 5cf089e96c
Iperf improvements (#668) 2023-01-21 22:38:32 -06:00
Tim Wilkinson 78b8578a06
Automatically enable RTS when hidden nodes detected (#659) 2023-01-19 13:11:30 -06:00
Tim Wilkinson 252b1dc8b7
Exposed node detection (#644) 2023-01-12 19:58:27 -08:00
Tim Wilkinson 5fcd373e65 Block older versions of the firwmare once we upgrade 2023-01-12 14:56:07 -08:00
Tim Wilkinson d2ac62e775 Bug fixes + distance information 2023-01-12 14:54:35 -08:00
Tim Wilkinson 72cc6c8a06
Hidden node detection (and optional mitigation) (#635)
* Enable RTS/CTS when we detect hidden nodes
* Only change rts setting when we need to
* RTS advanced config option
* Include neighbors blocked neighbors (they still transmit)
* Bump default RTS threashold
* Report list of hidden node rather than yes/no
* Canonical hostnames
* When we enable RTS, enable it for all traffic by default
* Show hidden neighbors in display
* Default RTS threshold to -1 (always off)
2023-01-12 10:31:28 -08:00
Steve a90fbae271
fix mesh status typos (#632) 2023-01-09 16:16:53 -06:00
Tim Wilkinson 6dac4c6b41 Fix WAN VLAN detection on hAP (name change) 2023-01-08 17:05:44 -08:00
Tim Wilkinson 5214d35fcd Provide better error feedback when upgrades fail 2023-01-05 19:13:01 -08:00
Tim Wilkinson 8a3bc2d09c
Improve the quality of the scan output (#609) 2022-12-31 21:20:12 -06:00
Tim Wilkinson 9da5d7b8cc
Add client/server at top of data for easier understanding (#602) 2022-12-28 10:47:02 -06:00
Tim Wilkinson 9293de42a7
Improve meshref conflict check which could be triggered even when no wifi is enabled (#599) 2022-12-27 20:06:30 -06:00
Tim Wilkinson 47d8a5bb29
New opkg reports missing dependencies differently (#597) 2022-12-27 10:46:47 -06:00
Steve 909e4fb765
Display Charts button even when no RF links (#593)
* display charts button even if no RF links

* adjust spacing
2022-12-26 18:31:33 -06:00
Tim Wilkinson 6fba065d2d
Ignore unexpected output causing bad gateway error (#591) 2022-12-25 07:13:04 -06:00
Tim Wilkinson 0414ec7fac
Handle generic to specific name changes when upgrading (#585) 2022-12-24 23:17:53 -06:00
Tim Wilkinson 6950479bf1
Update AREDN to OpenWRT 22.3.2 (Major Upgrade) (#574)
* Update to Openwrt 21.02 and add support for the CPE710 v1
Update scripts to change references to ifname to device due to a change in Openwrt naming
reverse-wpad-basic-wolfssl and disable SSL on Curl

NOTE: The compile host must have python3-distutils installed for gpsd to build

* aredn: initial working upgrade to openwrt 21.02.1

* aredn: update 1 to working upgrade to openwrt 21.02.1

* aredn: add cpe710v1 to build config

* Andrew's patches

* Remove duplicates + display perl

* Temp disable wifi extension patch

* ifname/ports support

* Add spectrum patch back in

* Generic function to extra interfaces

* New api to get wifi ifname

* Disables jails

* Style link

* aredn: partial upgrade to openwrt 22.0.3.0

added AC device images and partial migration to 22.0.3.0
firewall upgrade pending

* aredn:  update mesh-release and revert config.mk

* Unused

* NFT firewall rewrite

* Common-isze configs

* Fix network layout for hap2

* Use local packages dev (new firewall rules)

* Add HAP2

* Add pause after network restart to let bridge reinitialize

* Various lua fixes for new lua version

* Tweak config

* Re-fix networking (lost patch change)

* Add new radio names

* Tolerate missing wifi

* Fix hap-lite switch setup

* More devices

* New radio id

* Build Rocket 5AC lite

* Remove need for luci.sys

* Remove need for luci.sys

* Explicitly name wlan interfaces

* Handle different compatibility verisoning

* Update networking for switches

* ipref version bump

* Extra flag for curl

* Better compat_version fix

* Remove wolfssl

* Fix dns server

* Fix device name

* Unused

* Remove things we dont need

* Remove unused packages

* Generic macaddr overrides

* Fix uci commit

* Fix luci.template.parser to avoid luci.http loading the real thing

* Rocket-M build

* Add search-domain dhcp option

* Turn of ipv6

* No IPV6 in dnsmasq

* Override mac addresses if devices all  the same

* Working from master (for now)

* Put back hostap

* Disable old ethmac fixup

* Tweak configs

* Move back to v22.03.2
Leave ipq4019 builds to master

* Need IPV6 to compile nft firewall

* Rocket-M fixes

* Before we start

* WIP

* Working snapshot

* Cleaned patches

* Merged patch

* Single patch to support HAP2

* Fix typo

* Add nanostation-m

* 5/10Mhz patch

* 5+10MHz patch for ath10k-ct driver

* Extend 2Ghz channel check to include -4 to -1

* Add chanbw setup for ath10k (like ath9k)

* Added TP-Link CPE710 v1

* Override firmwares

* Missing patch

* Dropbear config like 3.22.8.0

* Add Ubiquiti Rocket 5AC Lite

* Fix c6

* Update

* Need more scan channels

* Remove IPV6

* Improve mac fixups

* Put back missing nft app

* IPv6 removed so dont have to disable it

* Fix rocket-m flash bug

* Fix nanostation-m

* Nanobridge is tiny

* Fix wifi order for ar750

* Rocket M5 XW support

* New rates

* Fix firewall4 so we don't need IPv6

* Allow channel width to be restricted

* Move channel list into library

* Fix naming

* Mechanism to block specific channels on specific radios

* Refresh buttons

* routerboard-sxt-5nd

* CPE605 v1.0

* Improve rocket m xw

* tpink

* Update patch

* Update to remove disable

* Remove BW restrictions on cpe710

* Restrict to what has been tested

* Remove test BW restrictions

* sxtsq-5-ac

* Update

* Update

* powerbeam-m5-300 support

* Fix

* Fix hap2

* Tidy unused patches

* Remove limit

* Add ubnt_bullet-m-ar7241

* Added ubnt_nanobeam-ac-gen2

* Fix typo

* Tolerate missing dtd ip

* Explicitly gix hap2 mac addresses

* Fix some broken patches

* Hap2 wont work at 5MHz

* Ubiquiti LiteBeam 5AC Gen2

* Fix compat_version for sxt 5ac

* Update patch

* Unused

* Fix lan configuration for some devices

* Rolling average of noise level

* Unused

* Split out the ath10k rssi monitor (its very simple at the moment)

* Ignore .DS_Store

* Reboot if ethernet doesnt come up (but only once!)

* reboot returns - add exit

* Add some logging info

* Fix ]

* Check all possibly ethernet bridges

* Improve mac fixing

* Remove HostAP on small memory devices

* Reduce dropbear footprint

* Add setsid

* Kill hostap when upgrading to save memory

* Different way to detect hostapd unavailable

* New build steps

* Improve manager logging

* Fix name conflict for the two monitors

* Try to improve test mesh name resolve problem

* Migrate tiny to generic (tiny doesnt work properly)

* Typo

* Another attempt to fix macs for Mikrotik

* Protect against missing trackers

* Fix wpad for ipq40xx

* Remove old tunnel check code

* Enable ZRAM swap to aid low memory devices

* ath10k noise can something be out of range - protect against that

* Updated with current devices and status

* Update firmware which has been tested

* Updated with more builds

* More binary/README

* Fix css error

* Start noise at sensible base level

* Unfix the css so it looks how it use to.

* Save as much memory as we can on lowmem nodes

* Hide some options on low memory devices

* Add "eol" to 32MB devices

* Restart network rather than reboot node if it seems to be broken

* Fixes

* Revert network reset

* Fix ar750 networking

* Continue to trim tiny configs

* More devices

* Dump IW output messages

* Fix Rocket 5AC intermittent ethernet issue

* Ethernet fix for PowerBeam 5AC 500

* More tiny size reduction

* More support data

* Fixed POE and USB power features

* Add Ubiquiti NanoBeam AC (gen1)

* NanoStation (not NanoBeam)

* Add mii-tool package

* Device updates

* Bump update time to 5 minutes

* Fix ethernet negotiation for rocker-5ac and nanobeam

* Fix iplookup

* Config changes based on call feedback

* Radio listing fixes

* Update with more untested builds

* Fallback TxMbps extracted from iw station dump

* Fix tunnel detection for low memory nodes

* Remove unused feed packages

* snapshot build

* Update stability info

* Add powerbeam-5ac-500

* Typo

* Add missing 3.22.1.0

* Add MikroTik LHG 5 AC

* Fix permissions

* Fix permissions

* AirGrid's take Bullet builds

* Mikrotik AC3

* Improve supportdata structure a little to make it easier to find things

* Restore WAN VLAN overrides

* Fix vlan regex for hap2 and hap3

* Support old and new style poe controls

* hap-ac3 is version 1.1

* Handle typo in some openwrt config files

* Fix HAP AC3 install

* Update hap ac3 status

* Support user overrides for network ports (non-swconfig devices)

* LHG 5AC support

* Remove -nand

* Remove non-working platform.sh change

* tunnel weight override

* Omit LinkQualityMult when value is 1

* Add mANTBox 19s and 15s

* Support ath79 mikrotik devices which require ath10k in the initramfs

Co-authored-by: apcameron <apcameron@softhome.net>
Co-authored-by: Joe AE6XE <ae6xe@arrl.net>
Co-authored-by: Joe Ayers <joe@arrl.net>
2022-12-22 14:22:49 -06:00
VA2XJM Jean-Michel 74810d01b4
Fix port range not working (#569)
* Fix for port ranges

Fix port range validation.

* Update CONTRIBUTORS

added myself

* Update files/usr/lib/lua/aredn/utils.lua

Reverting to whitespace protection plus escaping hyppen.

Co-authored-by: Tim Wilkinson <tim.wilkinson@me.com>

* Update ports

added %s* infront of the port range input in case a whitespace has been inserted.

Co-authored-by: Tim Wilkinson <tim.wilkinson@me.com>
2022-12-22 10:31:41 -06:00
Steve 29d1251831
fix local mesh status bug (#573) 2022-12-21 12:30:37 -06:00
Tim Wilkinson e9acf4928b
Check /etc/config/vtun exists (#561) 2022-12-10 08:51:26 -06:00
Steve 73ca16b17d
update vtun name when changing nodename (#557)
* update vtun name when changing nodename

* Update files/www/cgi-bin/setup

Co-authored-by: Tim Wilkinson <tim.wilkinson@me.com>

* Update files/www/cgi-bin/setup

Co-authored-by: Tim Wilkinson <tim.wilkinson@me.com>

Co-authored-by: Tim Wilkinson <tim.wilkinson@me.com>
2022-12-06 14:24:44 -06:00
Steve 8fc9b51559
fix status page not rendering (#559)
* fix status page not rendering

* account for "none" value
2022-12-06 14:23:47 -06:00
Tim Wilkinson 93f71d31ad
Fix Bad Gateway error when trying to update with the wrong firmware (#556) 2022-12-01 14:55:27 -06:00
Steve ed77cec3b9
display both types of gateway on Status page (#554)
* display both types of gateway on Status page

* underline section labels

* add LAN AP SSID if exists

* add gateway node label
2022-11-30 16:04:41 -06:00
Steve 46a23f8e26
add WAN wifi ssid and SNR to Status page (#552)
When WAN connects via wifi to an AP, show SSID and SNR.  Added workaround to intermittent bad value strength retuned from iw, when positive value.  Assume absolute value is correct and add back a negative sign.
2022-11-24 11:07:22 -08:00
Steve cf2497b346
group Mesh RF info if wifi_enabled (#551) 2022-11-19 11:38:30 -06:00
Steve aff1cad02d
remove reference to nodes reducing power (#548) 2022-11-15 18:37:28 -06:00
Tim Wilkinson 41b5040102
Improve xlink integration (#545) 2022-11-14 22:45:58 -06:00
Tim Wilkinson 5cbd83cb24
Make sure c6 always has a value (#550) 2022-11-14 22:44:21 -06:00
Steve 9ff499cdcc
add kernel MemAvailable to Status page (#536)
add larger of kernel MemAvailable or MemFree to Status page. 
This will show a value to be at least the size of unused RAM and
can be larger if RAM can instantly be freed up to start a new process.
2022-11-10 20:43:00 -08:00
Steve cd661106a8
fix mesh search rows (#546) 2022-11-09 21:15:25 -06:00
Steve eb631e4819
set min field widths on ports page (#544) 2022-11-04 21:54:04 -05:00
Steve 80a6da9276
give cleaner lines to the scan table (#543) 2022-11-01 09:49:47 -05:00
Steve 644ec1d595
give cleaner lines to adv config table (#542) 2022-11-01 09:49:14 -05:00
Steve 133ab928b5
give cleaner lines to the setup table (#541) 2022-11-01 09:48:48 -05:00
Steve ff20a9932f
fix current neighbor service search and add new search fields 11/01/2022 (#538) 2022-11-01 09:47:52 -05:00
Tim Wilkinson 4b305db099
Line up the columns on the mesh display (#534) 2022-10-26 20:55:36 -05:00
Steve 0b4ec4f1af
fix description alignment (#532) 2022-10-23 14:49:03 -05:00
Tim Wilkinson f7909823ec
Handle names missing .local.mesh (#528) 2022-10-20 15:43:55 -05:00
Steve 27115894ab
add search capability to Mesh Status page (#527)
* add search capability to Mesh Status page

* put filters in column header
2022-10-18 21:37:34 -05:00
Steve b5acf18bcf
clarify Host Entries counts (#524) 2022-10-14 15:32:56 -05:00
Steve 4e02cd5044
add warnings to 32mb nodes (#521) 2022-10-14 15:32:22 -05:00
Tim Wilkinson caaafc3831
Protect against missing hosts_olsr.stable (#523) 2022-10-14 15:31:09 -05:00
Tim Wilkinson 93ad1f5ee7
Strip out as many dependncies from Lua Manager as possible to save memory (#522) 2022-10-13 12:07:36 -05:00
Tim Wilkinson 1a0d51ff59
Fix limiting nr of route shows with low memory (#518) 2022-10-11 22:22:11 -05:00
Tim Wilkinson c7538884ca
Display and correct from olsr_hosts totals rather than olsr json (#520)
* Display hosts totals rather than olsr totals
* Don't count hostname beginning mid<nr>.
2022-10-11 16:46:39 -07:00
Steve 10bedbaf48
fix retrieval of ntp_period (#517) 2022-10-11 09:14:46 -05:00
Steve 7f4342ffb7
add help link to pages missing it (#513) 2022-10-03 20:49:26 -05:00
Steve 72572034be
add ntp update period to basic setup page (#510)
* add ntp update period to basic setup page

* ensure current value as selected

* include case where reverts to daily after upgrade

* persist ntp_period across upgrades
2022-10-02 18:46:57 -05:00
Tim Wilkinson 808f4b1aa1
Remove an old "Lua version" display tag (#509) 2022-09-20 18:26:44 -05:00
Steve f9a63a3f25
update help file for new adv config format (#504) 2022-09-12 16:09:57 -05:00
Steve e37708641e
simplify AdvConfig display (#501) 2022-09-09 09:41:52 -05:00
Tim Wilkinson 6ba17b8e5a
Snapshot hostnames after updates so we have a consistent copy to display (#488) 2022-09-06 09:58:18 -05:00
Tim Wilkinson 3f89bb4290
Fix bad match for NAT dhcp address. (#500) 2022-09-06 09:57:06 -05:00
Steve b6a4ee6bb2
add units to setup and advconf pages (#499) 2022-09-04 11:05:54 -05:00
Steve cb62d5bf49
change support link to button (#496) 2022-08-29 16:49:45 -05:00
Steve AB7PA 696df41d5a
update node help file for adv wan settings (#480) 2022-08-15 17:22:17 -05:00
Tim Wilkinson 471f200782 Added missing callbacks 2022-08-15 11:16:24 -07:00
Tim Wilkinson a8d3be4403 Make the options booleans 2022-08-15 11:16:24 -07:00
Tim Wilkinson e1ddbabb85 Migrate LAN-to-WAN options to advance configuration 2022-08-15 11:16:24 -07:00
Steve AB7PA 9214a749b8
reorder advconfig settings (#477) 2022-08-09 21:44:45 -05:00
Tim Wilkinson 4426aa8016
Remove spectal scan (#441) 2022-08-02 21:27:31 -05:00
Tim Wilkinson 102c4112c0
Prefix 'WiFi' to WAN address when WiFi wan is enabled (#470) 2022-08-02 18:57:44 -05:00
Tim Wilkinson c3a317d424
Provide status about state of wan wifi connection (#472)
* Provide status about state of wan wifi connection

* Updated icons

* One more icon
2022-08-02 18:56:27 -05:00
Tim Wilkinson 47fc5f78ef
Password visible toggle (#469)
* Add toggle to show password fields

* Fix permissions
2022-08-02 18:55:08 -05:00
Steve AB7PA fddde5ea53
update html help file for adv svc feature (#459) 2022-07-31 14:12:53 -05:00
Steve AB7PA 7b768e6ce1
add svc alert icon (#461) 2022-07-31 14:12:17 -05:00
Tim Wilkinson 665fa4924f Fix missing "http" proto when checking non-links 2022-07-27 12:22:10 -07:00
Tim Wilkinson e8d90a9404 Add a visual indicator when a service is not being published. 2022-07-27 12:22:10 -07:00
Tim Wilkinson 1e78f85edc Immediatley run service check code when installing/removing package 2022-07-26 23:48:24 -07:00
Tim Wilkinson e591ffa801 Also include AR750 2022-07-25 14:39:24 -07:00
Tim Wilkinson d9ef1423c2 Add WAN VLAN support to the Mikrotik hAP 2022-07-25 14:39:24 -07:00
Steve AB7PA 6272209324
adjust admin categories (#455) 2022-07-25 16:38:18 -05:00
Paul K3PGM b859a79127
Fully validate node and tactical names; give better messages when invalid. (#450) 2022-07-22 18:49:58 -05:00
Tim Wilkinson 9993244143 Fix issues with tactical names 2022-07-21 15:15:47 -07:00
Tim Wilkinson f0bfad55d0 wifi_chanbw should always be a string 2022-07-21 15:15:05 -07:00
Tim Wilkinson 43fe20f2bd
Fix random iperf failures (#445) 2022-07-21 09:50:28 -05:00
Steve AB7PA 02ec015d90
allow long filename display (#444) 2022-07-20 18:15:13 -05:00
Tim Wilkinson cf8abafd65
iPerf3 as part of the api (#443) 2022-07-20 14:42:05 -05:00
Tim Wilkinson d166393bb8
Ping tool (to complement the iperf3 tool) (#440)
* Ping tool (to complement the iperf3 tool)

* Make ping-tool part of the api (like traceroute)

* Bump api version
2022-07-19 20:27:44 -05:00
Steve AB7PA ce67430b45
make Keep Settings more prominent (#439) 2022-07-19 17:47:12 -05:00
Tim Wilkinson 675beca8f8
Prevent < and > being used in service names (#437) 2022-07-18 08:46:01 -05:00
Tim Wilkinson ba55aed754
Arrays are 1-indexed (not zero) (#432) 2022-07-14 13:05:33 -05:00
dman776 f55cdee1d2
Initial framework api for read/write 07/13/2022 (#359)
* add login page controller

* update copyright

* initial update

* add options method

* add setup_basic controller

* initial pass of rework of setup_basic

* add stubs for setup_optional and setup_advanced

* setup_basic get mesh_rf functions complete

* add additional properties for setup_basic

* add maxpower for setup_basic

* add error checking for controllers

* cleanup

* add /apriprotected to basic auth list

* change to dot notation style
2022-07-13 16:36:53 -05:00
Tim Wilkinson abee30e537
Reduce colors and improve scan information (#429)
* Reduce colors

* Noise -> Ambient noise
2022-07-13 16:21:39 -05:00
Tim Wilkinson 79a63e8ad8
Default DHCP limits in NAT mode if fields are blank (#430) 2022-07-13 16:19:24 -05:00
dman776 2e09886d4b
Fix tacticalname (#426)
* fix tactical node names fixes#420

* make / optional

* revert last change
2022-07-13 16:18:08 -05:00
dman776 55642e05be
rename supportdata extention from tgz to gz (#427) 2022-07-06 15:27:08 -05:00
Tim Wilkinson 82b0cb5903
Heatmap spectral view (#423) 2022-07-01 09:53:18 -05:00
Steve Lewis AB7PA 4e6b68c612 allow zero length wan wifi client passphrase 2022-06-30 08:55:41 -07:00
Steve AB7PA 480185bd0b
set default non-nil values on setup (#417) 2022-06-29 15:45:54 -05:00
Tim Wilkinson 7887497cb3 Allow auto-distance to be overridden when LQM cannot determine the
distance to other nodes
2022-06-27 15:29:39 -07:00
Tim Wilkinson afe30ffc6e
Graph in SNR + fixes (#412)
Feedback from Joe and others to adjust the noise floor (which is lower
for subchannels). Label with SNR because that's easier to compare to the
SNR values people are already familiar with.
2022-06-25 20:45:28 -05:00
Tim Wilkinson b4c5691110
3GHz fixes and optimizations (#411) 2022-06-24 22:24:28 -05:00
Tim Wilkinson 4b37c6a033
Spectral wifi information (#410)
* Add spectral channel information

* Add spectral graph
2022-06-24 16:50:05 -05:00
Tim Wilkinson b006c1040a Stop map update claiming success when it actually fails 2022-06-23 14:46:15 -07:00
Tim Wilkinson ad441ba600 Fix error when re-enabling wifi mesh with lqm on 2022-06-17 14:27:48 -07:00
Tim Wilkinson 28f25cf951 Allow user to force certain macs to be accepted 2022-06-16 20:34:39 -07:00
Tim Wilkinson c57d384ca6 LQM on by default 2022-06-16 20:34:39 -07:00
Tim Wilkinson fb2ec36bb6 LQM2 2022-06-16 20:34:39 -07:00
Tim Wilkinson 8dc74c117f Fix display of unknown radio model 2022-06-13 14:49:24 -07:00
Tim Wilkinson 0a6f4a7a48 Missing channels -4 and -3 2022-06-08 11:45:03 -07:00
Tim Wilkinson 40fb320290 Fix 5GHz AP bad channel dropdown 2022-06-07 21:49:30 -07:00
Steve AB7PA 6aff2636c0
report node hardware better on Status page 06/07/2022 (#383)
* report hwtype better for UBNT nodes

* add Ubiquiti mfg to radios.json

* change field name

* edit field name to model
2022-06-07 21:31:30 -05:00
Steve AB7PA c4bd018a5c
restrict msg banner to nonprotected pages (#384)
* restrict aredn messages to non-protected pages

* fix typo
2022-06-07 21:30:27 -05:00
Steve AB7PA bf8c6ee093
add hardware type to Status page (#382) 2022-06-04 22:45:00 -05:00
Tim Wilkinson b86213a66f
LQM fixes 6 (#379) 2022-05-31 21:54:02 -05:00
Tim Wilkinson 0faf41072a
Restart manager when we restart the firewall (#378) 2022-05-30 14:56:50 -05:00
Steve Lewis AB7PA 47826f809c correct typo on latency status 2022-05-25 12:33:18 -05:00
Steve Lewis AB7PA 086aeb18e3 add qmark to RF Neigh status column 2022-05-25 12:33:18 -05:00
Steve Lewis AB7PA 8218555bd8 add LQM status codes to on-node help 2022-05-25 12:33:18 -05:00
Steve Lewis AB7PA 885b046636 correct registered service mark and minor format changes 2022-05-25 10:05:35 -07:00
Tim Wilkinson 53632d322d
LQM fixes 4 (#370)
* Tidy LQM status
Remove TX Estimate which was duplicating information on the mesh page and
confusing folk.
Sort by name to stop the display jumping around.

* Split out ping and tx qualities and use average of both.

* Improve keeping re-discovered nodes in pending

* Remove .local.mesh from hostname (they're there sometimes)

* Identify why poor quality traffic is blocked
2022-05-24 10:35:36 -05:00
Steve AB7PA 2fb911948a
update the onboard node help file (#367) 2022-05-23 07:45:16 -05:00
Tim Wilkinson b680d2019e
LQM fixes 3 (#366) 2022-05-22 21:06:02 -05:00
Tim Wilkinson a8b7f8a216
LQM improvements (#364) 2022-05-20 08:10:01 -05:00
Tim Wilkinson 3f3b71b10c
Add missing .local.mesh to neighbor links (#363) 2022-05-19 10:51:41 -05:00
Tim Wilkinson b23ab5ee8a
Link Quality Management (#360)
* Link Quality Management experiment (built in)

* Protect LQM pages

* Omit "empty" mac addresses

* Integrate LQM v0.2
Includes proposed UI if this were built-in.
When LQM is enabled (advanced settings) the usual distance inputs are
replaced with "min snr' and "max distance" inputs which are the major
ones you might tweak, as well as a link to the LQM status page.
Other controls are now available (so protected) in advanced settings.

* Improve LQM updating

* Use running snr averages

* Merge app changes

* AREDN-ize the UI

* Improve status language

* Improved DtD detection

* Improve quality reporting

* Link Quality category

* Enable by default

* Better intergration

* Link => Neighbor

* Formatting

* Make sure initial page is populated without extra fetch

* Handle empty lqm.info

* Update with latest experiment algorithm changes

* Validate LQM settings before applying them

* Algorithm updates

* Improve quality reporting

* %% -> %

* Default max distance now 50 miles

* Get actual noise if radio will provide it

* low_snr => min_snr

* Dont print node description if we dont have one

* Remove properties duplicated from setup page

* Localize max distance. Miles in GB and US, Kilometers everywhere else.

* Ping link quality testing

* UDP 'ping' for quality check

* Change Active Settings title

* Expand ping test

* Improve messaging

* Add a ping penalty for neighbors which cannot be contacted in a timely manner.

* Remove user_blocks config option. No one needs to use this anymore.

* Localize distances on lqm page

* Improve status reporting

* First run emergency node setup.
When a node first runs LQM, if the default settings fail to connect to
a node we will now adjust them so that at least one node is viable.

* Restore blocking of mac addresses

* LQM now off by default
fixed #47
2022-05-18 12:49:00 -05:00
Tim Wilkinson 15b4ff734a
Firmware sideload support (#358) 2022-05-08 11:13:11 -05:00
dman776 f09b38c6d2
enhancement: advanced config categories 05/06/2022 (#357) 2022-05-06 21:03:03 -05:00
Tim Wilkinson 77c88f2738
Wait for iperf3 daemon to startup before returning. (#350) 2022-04-29 13:26:48 -05:00
Tim Wilkinson ac78a4a40a
succssfully -> successfully (#349) 2022-04-28 09:05:29 -05:00
Tim Wilkinson 3660b26fbb
Add cross origin access to remove remote access limitation. (#347) 2022-04-27 19:39:14 -05:00
Tim Wilkinson e3558c02de
Only preserve wan_intf if set (#348) 2022-04-27 19:38:16 -05:00
Tim Wilkinson 3f2adcc002
Tiny iperf3 UI (#338) 04/26/2022
* Tiny iperf3 UI

* Added advancedconfig switch

* Add udp/tcp protocol selection

* Validate server names
Add .local.mesh if missing
2022-04-26 21:08:46 -05:00
Tim Wilkinson 63ed346f40
Update docs for VLAN change (#334) 2022-04-19 20:40:12 -05:00
Tim Wilkinson 7515d6f841 Set WAN VLAN by number rather than by device.
This is more obviously what you want to do, and it makes supporting
devices with switches easier.
2022-04-19 17:24:46 -07:00
Tim Wilkinson 4f1b13deb6 Dont support this feature on devices with switch chips. 2022-04-19 17:24:46 -07:00
Tim Wilkinson 7b77f111ce Support changing the VLAN tag on WAN 2022-04-19 17:24:46 -07:00
Tim Wilkinson d707ca89ac Add port dump to supporttool data 2022-04-19 15:25:42 -07:00
Tim Wilkinson aec90d47ae
Missing lanlimit when print port in nat mode (#328) 2022-04-08 04:15:13 -05:00
Tim Wilkinson c3f2fcd400
Optimize getRemoteNodes (#326) 2022-04-05 19:30:36 -05:00
Tim Wilkinson b26476f5e2
Fix displaying "Previous neighbors" with empty hostnames (#325)
* Dont display previous neighbors with empty hostnames
* Use IP address when name missing
* Fix bug where missing names became ever growing string of whitespace
2022-04-04 22:16:35 -04:00
Tim Wilkinson e0ac3e9349
Fix bad gateway when switching to LAN NAT mode (#321) 03/30/2022 2022-03-30 15:14:01 -05:00
Steve AB7PA b13e04b2d8
reduce slider chunkiness (#316) 2022-03-22 06:33:00 -05:00
Tim Wilkinson 6b4ccbf5ad
advancedconfig: tun wan only (#310)
* Prevent tunnel traffic being sent over the mesh (unless explicitly enabled)
* Boolean settings will use default value if value not yet set
2022-03-20 22:55:11 -03:00
Tim Wilkinson 69c0d51216
Add @ back in as a valid password character (#312) 2022-03-20 17:46:56 -05:00
Tim Wilkinson ce2f47e06d
Improve history matching as poor history entries could break "Previous Neighbors" (#307) 2022-03-19 09:21:22 -05:00
Tim Wilkinson 85edc542fc Fix uploading data to AREDN Servers 2022-03-18 17:57:05 -07:00
Tim Wilkinson 321e58bd37
Include tunnels by default (#302)
* Include tunnels by default

* Tunnels are always installed so no longer need this flag
2022-03-17 20:57:48 -05:00
Tim Wilkinson caebaea106
Automatically update package dependencies if package install fails (#303) 2022-03-17 20:36:08 -05:00
Tim Wilkinson ebd4a9e07e
Fix use of coordinate to center map (#304)
* Fix use of coordinate to center map

* Typo
2022-03-17 20:35:35 -05:00
Tim Wilkinson 57f81e48cc
Automatically update package dependencies if package install fails (#300) 2022-03-17 14:28:20 -05:00
Tim Wilkinson 3595dd3ac2
Make sure we copy /etc/config/vtun to /etc/config.mesh/vtun when installing tunnels. (#299) 2022-03-17 06:23:40 -05:00
Tim Wilkinson ad78e077f0
Improve the firmware upgrade process (#294)
* Improve the firmware upgrade process

The old firmware upgrade process attempted to free up RAM by reusing
the 'upgrade_kill_prep' script which is later used by '/sbin/sysupgrade'.
Unfortuantely this doesn't work as intented. While the script will go about
killing various services, 'procd' just goes and starts them up again using
quite a bit more memory in the process. Instead this script just kills
the various daemons 'no questions asked' and then runs the associated
'/etc/init.d/xxx stop' script to instruct 'procd' not the start them up again.
This gets us to the place the original script was trying to go.

+ A syntax fix in '007' patch (need spaces around the [ .. ])

* Inline the style for the firmware page to avoid sleep before flash

* Minor reliability improvements

* Clear away services even earlier
2022-03-16 21:45:26 -05:00
Tim Wilkinson 8947e6f23c
Migrate LeafletJS to new URL (#298) 2022-03-16 21:42:26 -05:00
Tim Wilkinson f613b078d7 Add /var/run/services_olsr to support tool data 2022-03-15 22:57:53 -07:00
Tim Wilkinson 09985d3c57
Completely remove perl from the build DUMP_PERL (#291)
* And finally ... remove perl from the images

* Remove two more than came from the Admin merge

* Remove perl from perm packages
2022-03-15 21:23:39 -05:00
Tim Wilkinson 7dde68bbb5
Lua page: Admin (#290)
* Fix scripts to fail gracefully if tunnel software not configured.
* Add 'manager.lua' to restart list
* Admin page in Lua (+associated upgrade script)
* Rename bbhn-postupgrade -> aredn_postupgrade
* Add missing 'uploadctlservices' call before package upload
2022-03-13 20:19:04 -07:00
Tim Wilkinson 74ba25c909
Add missing escapes for contact and node descriptions (#289) 2022-03-13 08:11:22 -07:00
Tim Wilkinson 64d315ada5
Ignore 'iw phy' command if no phy device (#287) 2022-03-13 07:48:10 -07:00
Tim Wilkinson 8409ffe6ea
Fix tunnel disply order (#286) 2022-03-11 15:59:50 -06:00
Tim Wilkinson d03be0c2ae Fix broken wifi sorting 2022-03-11 10:57:54 -08:00
Tim Wilkinson 93e8d0a53d Cron is only running to poll AREDN messages, so kill it.
And move polling into the Lua Manager
2022-03-09 19:18:19 -08:00
Tim Wilkinson 66ee2fc9a2
Fix active tunnel indicator for tunnel server (#277) 2022-03-09 20:26:07 -06:00
Tim Wilkinson 7a5d15fd09
Tunnel's default IP is explicityly based on eth0's MAC (not 'lan') (#278) 2022-03-09 20:25:35 -06:00
Tim Wilkinson 36c3e054ac
Dont truncate /etc/config/vtun on tunnel install (#275) 2022-03-09 15:34:33 -06:00
Tim Wilkinson a0e7749b1e
Lua stragglers (#274)
* Final bits of perl replaced by lua

* Use iwinfo during first boot (api I was using fails this early)

* Retry getting phy device (it can fail as the node is booting up)
2022-03-08 21:22:07 -06:00
Tim Wilkinson 922a74d574
Lua userpages: Tunnels (#271)
* Lua vpn server and client pages

* Lua vpn server and client pages

* Fix reporting of daemon restart errors

* Lua olsrd-config

* Fix reversed client/server ip assignments

* Fix patterns for finding active tunnels
2022-03-08 21:07:58 -06:00
Tim Wilkinson f41fff889d
Mesh ignore bad linkquality (#273) 2022-03-08 17:47:08 -06:00
Tim Wilkinson b17f52c27d
Fix suffix and bad protocol suffix service url name checks (#269) 2022-03-07 21:41:47 -08:00
Tim Wilkinson ceec7a6fa5
Fix mis-reporting of changed LAN subnet on reboot (#268) 2022-03-06 18:15:07 -06:00
Steve AB7PA 6087149914
add advanced WAN help (#259) 2022-03-05 21:52:41 -06:00
Tim Wilkinson eae5908148
Add channel -3 & -4 (from original fix #210) (#262) 2022-03-05 21:51:45 -06:00
Tim Wilkinson 50d4671be5
Make wifi scanning produce the same results as the perl version. (#263) 2022-03-05 21:50:54 -06:00
Tim Wilkinson 17d76bed07
Fix wifi power offset calculation. (#265) 2022-03-05 21:50:06 -06:00
Tim Wilkinson c1ab4f9a51
Setting POE or USB to off caused 'Bad Gateway' (#264) 2022-03-05 17:31:44 -06:00
Steve AB7PA 125f49d640
remove trunk from urlprefix (#261) 2022-03-05 11:46:57 -06:00
Tim Wilkinson d3b67ddbb8
Fix broken cursor use. (#258) 2022-03-04 20:57:16 -06:00
Tim Wilkinson 46a4420a3d Remove the potentially problematic 'filecopy("/etc/config/aredn", "/etc/config.mesh/aredn")'
/etc/config.mesh/aredn sometimes gets truncated, although reproducing it is difficult. This
is one of the few places this file is mindlessly written to, so instead use cursors to update it.
2022-03-03 19:47:25 -08:00
Tim Wilkinson 4eaeb1d220
Advancedconfig improvement (#255) 2022-03-03 17:03:08 -06:00
Tim Wilkinson 10a7be36fe
Fix broken auto-reboot on initial setup (#256) 2022-03-03 17:01:57 -06:00
Tim Wilkinson bdba0c2910
tx power => txpower (typo) (#250) 2022-03-02 17:28:06 -06:00
Tim Wilkinson 2a263fce4f
Fix noprop color (typo in pattern match) (#251) 2022-03-02 17:27:39 -06:00
Tim Wilkinson 6877cb326f Fix WAN IP check (check was inverted) 2022-03-02 00:32:47 -08:00
Tim Wilkinson af53c47d57 Fix timezone management 2022-03-01 21:49:02 -08:00
Tim Wilkinson 3dbb83fcab
Lua userpages: ports (#244)
* Ports page in Lua

* Minor fixes

* Fix adding current leases to dhcp reservations

* Show correct dns alias ip address
2022-03-01 21:13:53 -06:00
Tim Wilkinson 5a47d39b3b
Fix map when lat/lon unknown (#245) 2022-03-01 21:06:55 -06:00
Tim Wilkinson 3f2efd1c91
Fixes for first boot setup (#242) 2022-03-01 08:19:19 -06:00
Tim Wilkinson 7600284487
Fix broken reboot on advancedconfig page (#239) 2022-02-28 14:38:05 -06:00