Commit Graph

192 Commits

Author SHA1 Message Date
Conrad Lara - KG6JEI 2415c56c3e bugfix: sysupgrade needs more tmpfs space.
Increase space on tmpfs just before launching sysupgrade
when the device has had tmpfs limited to 6.5mb

Change-Id: I5b27e6812017c4cbe5d9cb3f53cb04d09892edf4
2017-04-04 23:31:50 -07:00
Conrad Lara - KG6JEI a57d5cd08c bugfix: olsrd-watchdog false reports
olsrd-watchdog can trigger when the olsrd service is restarted
Such as when a tunnel comes up, or when a config change is
made to olsrd.

procd already monitors olsrd and makes sure it remains running.

With procd we no longer need olsrd-watchdog and can remove it.

fixes AREDN->ticket:215

Change-Id: I5067d380a22bd0ab5e597746478ef3e1ba05d72d
2017-03-31 19:34:49 +00:00
Conrad Lara - KG6JEI 8ee8fbefe0 bugfix: Increase available memory during upgrade/install process
It is possible for the system to run out of memory when dealing
with large file uploads and installs.

As part of the upgrade procedure shutdown services that are not
essential for node operations to allow more memory for install
to take place.

Includes changes to linkled to indicate this new state as it will
be shutdown as part of the cleanup process.

Memory gain (approximate)

dropbear 100kb
linkled  200kb
logd     200kb
odhcp    100kb
snmpd    500kb
xinetd   100kb

Total(approximate): 1200kb (around %4 on 32mb devices)

This is somewhat similar to files/usr/local/bin/upgrade_kill_prep
except that it kills only a select group of services
so that the system can handle the file upload while
upgrade_kill_prep does the final system cleanup to run the full
upgrade.

ref AREDN->ticket:204

Change-Id: Ic6d3aa028725064a97c4723f6d9b36e1e51d87a7
2017-03-08 03:23:52 +00:00
Darryl Quinn 956c6b7cd8 bugfix: change charts to be time linear
Change-Id: I06e0c8d1d5d39e9faa46bfec3442bf2e3071c8ff
2017-02-03 16:34:25 +00:00
Conrad Lara - KG6JEI c592f44ab0 Sourcecode license text spelling correction.
Inside the source files the word "contained" was mispelled
as "conained"

The website currently lists this correctly as "contained"

This was an error in the intial stamping of the source files in
changeset:5c3ee1d0686c6e6f2907fe4fc393d86d6c5a69b5/aredn_ar71xx

Line is part of "Additional Conditions" permitted by GPLv3.
Line does not impact coders prior to the AREDN setup date
as it was added by the AREDN team.

Change-Id: I3bc09aea548100f35c08aebe8686b8d4808d56d8
Signed-off-by: Conrad Lara - KG6JEI <KG6JEI@amsat.org>
Signed-off-by: Joe Ayers <ae6xe@arrl.net>
Signed-off-by: Darryl Quinn <k5dlq@arrl.net>
Signed-off-by: Trevor Paskett - K7FPV <snoopytjp@gmail.com>
2016-12-30 18:54:05 +00:00
Darryl Quinn 1e08847db0 change: add chart null on timeout, skip signal 0 in archive.
Change-Id: Ia30bfebb3d5df097e69f1fb9e8cb75e8f317e3ff
2016-12-28 04:54:34 +00:00
Conrad Lara - KG6JEI a39abd3813 bugfix: Typo in comment header for perl scripts
This is at the top of the license header.

It prevents the code from being processed but doesn't
actually impact the license terms in any way.

Change-Id: Ic91f2400f9694056b6f06fa43d1074411d6c6262
2016-12-23 16:45:47 -08:00
Conrad Lara - KG6JEI db2046092f bugfix: Make get_model return model of device instead of board type
Fixes the fact that get_model has done the same as other functions.

This probably always should of been a real model of active device
not just of the hardware type from the begining.

DEV NOTE:
This is in perl, even though we intended to migrate to LUA the
core library that contains this data has yet to be migrated
so we need to add this as a perl program.

Change-Id: Ib8a4ea6dd881c32e6d7660607576aeb5218b1e7a
2016-12-23 19:30:15 +00:00
Darryl Quinn b9c77fa551 change: snrlog to keep logs longer after signal loss
Change-Id: Ifab054fcc2bd1578789dbe61f1ae300cce4c2ccd
2016-12-14 14:18:37 -06:00
Darryl Quinn 37a7b57c0a feature: add mcs/rate info to snrlog for archive
Change-Id: I8caa8a0b8cdef74be646283fa458e89b378e608b
2016-12-12 20:18:27 +00:00
Darryl Quinn a1da9c0ad7 migrate snrlog to lua
Change-Id: Icecf72e370c5e938d8d689a858d57094fe847e45
2016-12-03 20:18:24 +00:00
Conrad Lara - KG6JEI 811f52f93b bugfix: SSID handling in system tools.
Corrects flaws in how the web user interface displays SSID's
picked up by wifi scanning.

In addition remove the defunct (never supported) connect program
since we never use it (no more client  mode) and it could have
issues with correctly passing SSID's from the shell.

Change-Id: I0444c1b3226b9bc5c3d3044fd5c9849a0d2bf67d
2016-11-22 22:06:57 +00:00
AE6XE b2edc2472b bugfix: Add support to obtain boardid from more Ubiquiti devices
Change-Id: I60ad4d23339c4aaf59b429c49fa705dbbe49ba8e
2016-09-30 20:41:33 -07:00
Conrad Lara - KG6JEI 717b39c2fd hardware: Add support to obtain boardid from more Ubiquiti devices.
Obtain the board ID from the EEPROM on *-m-xw devices.

ref AREDN->ticket:185
ref AREDN->ticket:43

Change-Id: I86247640773a1f6cbd3c4792502d7da4890a46a4
2016-09-24 08:28:31 -07:00
Conrad Lara - KG6JEI 1b65f8a3ad bugfix: UI allows enabling mesh_gw when wan disabled or nat mode
Mesh nodes would need a significant amount of configuration
including some operational checks everytime an interface comes up
to be able to handle this.

The more sane method is to only allow a node to be a mesh_gw when
the WAN port is utilized and the node is in DIRECT mode.

This changes the UI to prevent this setup from being allowed.

fixes AREDN->ticket:184

Change-Id: I1a1289bc914a349149f5842812dbebc0a70442f7
2016-09-20 23:09:03 -07:00
AE6XE d4b7617e03 remove non-mesh modes from setup options
fixes AREDN->ticket:175

Change-Id: I7517df178a5ce82ef79ec4af844932fe6569d8da
2016-08-07 21:38:18 +00:00
KG6JEI 32a0d6348d Merge "Merge branch 'ChaosCalmer' into develop" into develop 2016-06-20 05:53:31 +00:00
Conrad Lara - KG6JEI 061ede3488 Merge branch 'ChaosCalmer' into develop
Change-Id: I26a8677595a25aae267b7365f1e5835ea68f49b4
2016-06-19 19:26:12 -07:00
Conrad Lara - KG6JEI 8abe628915 Cleanup /usr/local/bin scripts to pass shellcheck
Correct all shellcheck "errors" and "warnings" for
/usr/local/bin/* shell scripts.

This is necesary to have Jenkins start publishing test results.

All code worked on nodes but pushed to strict posix compliance
as part of the cleanup.

SC1001,SC2002,SC2004,SC2006,SC2034,SC2039,SC2086,SC2155
https://github.com/koalaman/shellcheck/wiki for more info

Change-Id: If1f27381eedae79087e490ea12f5939f8cc525a0
2016-06-18 04:52:08 +00:00
KG6JEI ae6688dc33 Merge "security feature: Enhance HTTPD password security" into develop 2016-06-16 05:39:10 +00:00
Conrad Lara - KG6JEI 1ee5cc698b cleanup: Cleanup shellcheck reported concerns in vtun_up
Change-Id: I88c775243a33731a182fd81d411bca664538e536
2016-06-15 08:08:28 -07:00
Conrad Lara - KG6JEI 70e93c09d7 bugfix: Refer to in interface by iif not iff
This may be why we have seen nodes in the past with stray routing table entries.

Change-Id: Ib47cc76eb9f2cd9328252a8a8a6d1bda0a6af35b
2016-06-15 08:07:20 -07:00
Conrad Lara - KG6JEI 8f91ad1e0e security feature: Enhance HTTPD password security
Move httpd.conf to not store password and instead depend on the shadow password file.

Also tag the 40_aredn_migrate-httpdconf script to be +x. Not strictly necessary but wish to have this standard

Change-Id: I018d9a3294e45af2316b3c3947ef2a7d8081268b
2016-06-10 19:37:57 -07:00
Conrad Lara - KG6JEI 1271db794a Merge 3.16.1.0 as released into develop
Merge branch 'release-3.16.1.0' into develop
2016-05-17 09:50:40 -07:00
AE6XE 38a2835471 bugfix: sysupgrade full reboot message not displaying 2016-05-10 19:22:33 -07:00
Darryl Quinn 9800612d86 allow sysupgrade time to settle in order for http to finish delivering the "rebooting" page 2016-04-29 22:29:57 -05:00
Conrad Lara - KG6JEI 86d17e0998 bugfix: RFC Compliance for DHCP and Classless static routes
RFC requires that the DHCP server include the default gateway (0.0.0.0/0) route as part the Classless network list.

Moved to node-setup so it can be set dynamically at setup run time.

fixes AREDN->ticket:155
2016-03-31 22:54:29 -07:00
Trevor Paskett - K7FPV 7d437e2cb8 bug fix: run sysupgrade forked off from uhttpd, kill un-necessary processes and flush page cache during firmware upgrade 2016-03-08 20:29:35 -07:00
Conrad Lara - KG6JEI fad8a43974 cleanup: Resolve "used once" warning. 2016-03-06 23:38:00 -08:00
Conrad Lara - KG6JEI 5fa47d6f93 bugfix: ar71xx: airrouter: Use "Globe" LED to indicate mesh connection 2016-01-17 20:09:11 -08:00
AE6XE 6d619b6757 Merge: bugfix: snrlog fix for out-of-range noise floor values returned by iw 2016-01-16 17:23:28 -08:00
AE6XE f02d4abd33 bugfix: snrlog fix for out-of-range noise floor values returned by iw 2016-01-16 17:21:55 -08:00
AE6XE 31032615a7 merge: bugfix: rssi_monitor increase tolerance on test one notch 2016-01-09 21:02:55 -08:00
AE6XE 97d48c2b84 bugfix: rssi_monitor increase tolerance on test one notch 2016-01-09 21:00:09 -08:00
Conrad Lara - KG6JEI bb10ca7faf Merge branch 'FirewallIncludes' into develop 2016-01-09 19:48:18 -08:00
Conrad Lara - KG6JEI e8b2ffd7ea feature: FirewallIncludes: Migrate tunnel firewal rules to new include format.
These rules setup chains that may be needed by other firewall rules as such we need to set them up early to be sure includes work.
2016-01-09 16:24:54 -08:00
Conrad Lara - KG6JEI 477a20d55a feature: FirewallIncludes: Add program that will auto include firewall rules that are in a set directory.
This is the basis for allowing packages to contain firewall rules that can be just dropped in a folder at install time.
2016-01-09 16:24:45 -08:00
Conrad Lara - KG6JEI 5c87a894c9 license: Add license header to vtun_up file 2016-01-09 15:10:58 -08:00
Trevor Paskett - K7FPV 3359c44ca7 feature: add jsoninfo to olsr and open firewall ports 9090 2016-01-05 11:00:22 -07:00
AE6XE 38209b0af2 bugfix: snrlog better handle neighbor references from mac to ip to hostname 2015-12-30 17:57:49 -08:00
Conrad Lara - KG6JEI 2dfc911df7 Merge branch 'release-3.15.1.0' into develop
Conflicts:
	files/www/cgi-bin/mesh
2015-12-22 08:45:09 -08:00
AE6XE 265d2eb196 feature: enhance snrlog to squareLine, local TZ, fix test condition 2015-12-15 22:45:29 -08:00
AE6XE d33726e893 bugfix: resolved rssi shift condition that needed a noise floor calibration 2015-12-14 21:44:08 -08:00
AE6XE ad856844bf feature: enhance snrlog to handle neigbors dropping in and out and leaving mesh 2015-12-14 20:55:07 -08:00
AE6XE 6903476f02 feature: snrlog updates to handle host name change and lack of hostname or ip info 2015-12-11 10:25:38 -08:00
Darryl Quinn 62ba6daf75 bugfix: display correct month 2015-12-11 01:04:34 -06:00
Darryl Quinn 43565d714e updated snrlog for multi devices 2015-12-10 11:17:03 -06:00
Darryl Quinn 833dedd8fa changed the filename that snrlog cron job creates 2015-12-09 17:20:16 -06:00
AE6XE 8c3c436cb7 bugfix: rssi_monitor fails if node goes deaf in first 12 min after startup, trigger on abnormal increases. 2015-12-08 22:06:55 -08:00
Conrad Lara - KG6JEI a489928fc6 bugfix: sortable wscan was removed during previous merge.
During a previous merge the sortable code for wscan was accidentally removed.
2015-11-23 19:58:37 -08:00
Conrad Lara - KG6JEI c5a1f21d77 bugfix: dnsmasq not updating hostnames ( dnsmasq pid file has moved ) 2015-11-23 19:17:38 -08:00
Conrad Lara - KG6JEI 48cb37bd05 Merge branch 'release-3.15.1.0' into develop
Merging in latest release-3.15.1.0 changes into develop to provide a foundation with recent release fixes for the develop branch.

This should be 3.15.1.0b03 code.

Conflicts:
	files/etc/crontabs/root
	files/usr/local/bin/wscan
	files/www/cgi-bin/sysinfo.json
2015-11-15 19:28:56 -08:00
Conrad Lara - KG6JEI 854a536629 bugfix: Settings set to 0(off/disabled) are not copied over during OTA.
Some settings would not copy correctly and would fall back to the config default due to faulty if checks logic when the value was set to 0 ending up in if(0) checks.
2015-11-15 10:59:17 -08:00
AE6XE 79bf05f7d9 bugfix: rssi_monitor log file size trim calculation error 2015-11-02 22:15:22 -08:00
AE6XE 8cd8e07885 bugfix: deaf chain workaround 2015-11-01 18:33:05 -08:00
Conrad Lara - KG6JEI a200f49a37 bugfix: Better handle AP detection.
All devices that respond to an iw scan will be AP's or ADHOCS.

All adhoc devices need to have the adhoc designator so if we don't see this we know its an AP.
2015-09-04 22:19:53 -07:00
Conrad Lara - KG6JEI c7bde9712a bugfix: station listing includes nodes that have not been seen for some time
Also resolves the "0" signal strength as nodes that have not been seen in long time show up as a 0 for signal.

This is a regression of the issues seen on the iw scan but in this case applies to station dump which we have not used before.
2015-09-04 22:11:00 -07:00
Conrad Lara - KG6JEI ba3f3b9b16 bugfix: initialize lastseen variable before first use. 2015-09-04 21:38:44 -07:00
Conrad Lara - KG6JEI 0f8b82e074 bugfix: regression: Networks not seen in long time show up in scan
commit d0bbeae66b introduced a regression previously fixed in commit 9aec7e019b

Resolves regression
2015-09-04 20:48:17 -07:00
AE6XE d0bbeae66b bugfix: wscan - show 3ghz freq instead of channels, fix blank mode fields 2015-08-28 19:44:54 -07:00
Darryl Quinn b9ce490a3c changed maxlines to capture 2days worth of data 2015-08-10 18:25:55 -05:00
Darryl Quinn 3cd84b3dfc bugfix: wrong syntax for iw 2015-08-05 13:40:45 -05:00
Darryl Quinn 9b2e95238c fixed realtime charts 2015-07-28 16:16:01 -05:00
Darryl Quinn 3ae86c67ec feature: signal charts 2015-07-26 23:09:34 -05:00
Conrad Lara - KG6JEI 108e05088b bugfix: Add max power level tracking control for per channel power on devices
Mainly relates to TP-Link devices which have a roving power level programmed into the hardware.

The datasheets for the hardware may say higher power but the chip has been programmed to not go above these values.
2015-07-20 23:30:49 -07:00
Conrad Lara - KG6JEI 9aec7e019b bugfix: regression: Networks that have not been seen in long time still show up in wifi scan.
Regression of changeset:e34b7fcee49c3e2b7eb35aa4fb44b6abdc78b3ad/aredn_ar71xx

Having moved to iw for iwinfo we have a regression previous commit.

Restore fix that if not seen after 10 seconds signal drops from display.
2015-07-19 23:34:06 -07:00
Conrad Lara - KG6JEI 661dc23e18 bugfix: wscan does not show channels sometimes.
We should of used the freq: field, not sure why I did not use it to begin with.

Corrected and added a small function to convert from frequency to channel.
2015-07-19 23:22:45 -07:00
AE6XE 2613a8507c bugfix: wscan bogus hostname lookup when multiple entries in arp table 2015-07-19 18:53:50 -07:00
AE6XE 9294e790eb bugfix: AREDN->ticket:132 show AREDN networks on other channels fixed 2015-07-15 19:27:06 -07:00
Conrad Lara - KG6JEI 3576a2c00b Merge branch 'RemoveIWINFOCalls' into release-3.15.1.0
Move from iwinfo to iw where possible

Discovered while discussing another issue about ssid's

ref AREDN->ticket:132
2015-07-09 21:05:14 -07:00
Conrad Lara - KG6JEI 51272c37df bugfix: migrate wscan from iwinfo to iw due to new rf channels and iwinfo issues 2015-07-09 20:58:32 -07:00
Darryl Quinn 3872261893 Revert "bugfix: define tun hostname for olsrd"
This reverts commit d4f6aea68e.
2015-07-07 21:31:24 -05:00
Conrad Lara - KG6JEI f96dd0d49d Merge branch 'release-3.15.1.0' into develop
Early merge of 3.15.1.0 into develop due to a large number of code changes in the release branch.

Will merge again in the future when the branch is closed but want to pull in changes now from release.
2015-07-06 11:19:17 -07:00
Darryl Quinn d4f6aea68e bugfix: define tun hostname for olsrd 2015-06-29 20:07:01 -05:00
Conrad Lara - KG6JEI ee90c366aa bugfix: The 'hack' we have been using to set RF chain has been discontinued.
Trying to registry over-write the antenna setting has never been a good idea in the first place.

The  hardware fully handles antenna selection without forcing it already.

ref AREDN->ticket:120
2015-06-18 18:57:04 -07:00
AE6XE 177f831e14 bugfix: tunnel firewall rules update for Barrier Breaker chain rename 2015-06-15 22:10:21 -07:00
AE6XE 3429462627 fixes AREDN->ticket:112 wifi scan improperly sorted by signal strength 2015-06-09 21:51:52 -07:00
Darryl Quinn 0472e30333 feature: sortable columns in wifi scan 2015-06-09 23:39:10 -05:00
AE6XE f610c58b82 BUGFIX: tunnel firewall to behave same as dtdlink part 2 2015-05-24 15:57:44 -07:00
AE6XE 15f8792001 BUGFIX: tunnel firewall to work same as dtdlink 2015-05-24 15:55:27 -07:00
Conrad Lara - KG6JEI fbb98d0539 bugfix: firewall rules not being written by node-setup
When calling uci commit the file gets overwritten and as such the additional file lines are discarded because the active /etc/config/firewall is diffrent than the open file.

Use the uci commit further down in node setup.
2015-05-24 11:36:15 -07:00
Conrad Lara - KG6JEI 994c4948d1 bugfix: get_boardid : echo should be a cat 2015-05-09 23:04:54 -07:00
Darryl Quinn c26b5fd992 Merge branch 'tunnel_mainline' into develop 2015-05-07 19:25:14 -05:00
Darryl Quinn f9f046f111 dynamic integration of tun interfaces with olsrd 2015-05-06 23:46:25 -05:00
Conrad Lara - KG6JEI 2af1e3e0c3 ar71xx: Copy get_model to get_boardid and modify to return a boardid
When model exiss that has a boardid in EEPROM it will return from there, otherwise it returns the model as chosen by ar71xx
2015-05-05 16:18:24 -07:00
Conrad Lara - KG6JEI a1ce01044d feature: Add Disable Default Route checkbox to Lan box
Allows users to disable publishing 0.0.0.0/0 (all/internet) route via DHCP.
2015-04-29 23:18:09 -07:00
Darryl Quinn dec3eeeb47 Merge commit '88037845309b311901a590ca2a2b91adbd79bfc0' into tunnel_mainline 2015-04-15 21:09:32 -05:00
Conrad Lara - KG6JEI 2917bb0f4b Prep work for switching to procd olsrd-config will be called for both IPv4 and IPv6 executions.
Since we are not writing for IPv6 yet we exit early in the process.
2015-04-12 20:27:55 -07:00
Darryl Quinn 7695dcdc4c Merge branch 'develop' into tunnel_mainline 2015-04-10 17:42:21 -05:00
AE6XE 56749d19ff Merge branch 'wscan' into develop 2015-04-09 20:43:04 -07:00
AE6XE f2507f869f Bugfix: Typo in wscan text output resolved 2015-04-09 20:41:54 -07:00
Darryl Quinn cb3867d0f7 feature: vpn page reads from uci, uci lib updates, aredn.css update 2015-04-08 19:04:43 -05:00
Darryl Quinn e6d08f5606 merged from develop 2015-04-07 10:36:42 -05:00
Conrad Lara - KG6JEI f6f3aaef9e Merge branch 'TPLinkCPE' into develop 2015-04-06 21:14:39 -07:00
Conrad Lara - KG6JEI b6805ca15f bugfix: CPE510: LINK1 LED doesn't illuminiate with neigbors in range
LINK1 LED was based on Ubiquiti file names, changed to determine base on file name instead.

This should open up more device support long term as well as solve the initial issue.
2015-04-06 11:57:37 -07:00
Conrad Lara - KG6JEI 5629ce93b7 bugfix: CPE510: Does not set nodecall or other mac based settings on boot
Change the location lookup to looup based on the radio0.path setting to obtain the mac address.
2015-04-06 11:27:50 -07:00
Conrad Lara - KG6JEI 08600fd4e8 hardware: Update get_model to use the ar71xx board detect routines
Returns the same data for devices as CPUInfo would of returned for previous devices and for new devices like the CPE510 causes the system to list the exact model instead of of the family.
2015-04-05 21:58:03 -07:00
AE6XE 8b9ac8639a Enhancement: wscan vendor column replaced with mode 2015-04-04 22:27:51 -07:00
AE6XE 2dd866b7a0 Fix for wscan to accept AREDN and custom SSID formats 2015-04-02 22:13:23 -07:00
AE6XE 0ab44e4731 wscan update to show neighbor mesh node signals 2015-04-01 21:49:07 -07:00