Commit Graph

336 Commits (arm-master)

Author SHA1 Message Date
pedro 1219e070dc others: mwwatchdog: tune cktracert() a little
- thanks @rs232
2 years ago
pedro 13a816ddfb others: cosmetic 2 years ago
pedro 0f18dc0ca3 others: rename watchdog script to mwwatchdog to avoid confusion with the busybox applet 2 years ago
pedro b57abd0233 switch4g: clean-up and cosmetic 2 years ago
pedro 56f8008e20 switch4g: move cdc_ether module to the end of the list
- avoid problems when removing modules (modprobe: can't unload module 'cdc_ether': Resource temporarily unavailable)
2 years ago
pedro 106f724686 watchdog: clean-up and cosmetic 2 years ago
pedro 0cf42edd7c watchdog: remove forgotten debug informations causing arithmetic syntax error in some cases 2 years ago
pedro aec790a15f Revert "Revert "others: use shorter /dev/null redirection""
This reverts commit 388403387c.
2 years ago
pedro 388403387c Revert "others: use shorter /dev/null redirection"
This reverts commit bb73987ebf.

It was a bad idea
2 years ago
pedro bb73987ebf others: use shorter /dev/null redirection 2 years ago
pedro 62bcfc211d watchdog: fix commit f5db83b 2 years ago
pedro f5db83b53d watchdog: traceroute: declare the minimum number of bytes indicating a working WAN (mwan_diff in nvram)
- to disable it (as it was before) just enter 'nvram set mwan_diff=0 && nvram commit'
- to eliminate false negatives, increase this value (100 in one try)
- to eliminate false positives, decrease this value (see above)
2 years ago
pedro dd7a230e6e switch4g: more fixes for QMI modems + cosmetic 2 years ago
pedro 79d4bbf9ce GUI: Status: Overview: add current operator to WWAN Modem Status also for QMI modems 2 years ago
pedro eaf185ff21 others: switch4g: fix listing TTYs in QMI mode (resolves #289) 2 years ago
pedro 834f963c82 others: wwansignal: start querying the modem only if the DIAGS file exists (it means that modem is detected with diags and probably already connected) 2 years ago
pedro 0659af7500 WWAN: improve display of SINR values for QMI modems 2 years ago
pedro 88605f57d4 others: switch4g: extend waiting time for modem switching and its redetection 2 years ago
pedro e3799f9cb4 adblock v2: update to 2.72b 2 years ago
pedro 3f12129c75 others: mymotd: do not use full paths to call programs/scripts - not needed anymore; cosmetic 3 years ago
pedro f9a20fd73b adblock v2: update to 2.72
Changelog:
- corrected Byte/KByte output in status output
- correction to checkRam() logic
- changed swift-run terminology into quick-run
- source the optional adblock.extra if present where default variables could be overwritten
- some corrections/simplifications to the shell status command
- introduced $hold variable to define hold time (defaults to 30 min)
- added sleep 1 to dnsrestart logi to facilitate the logging
- decrease maximum pidfile age from 90 to a more appropriate 30 min
- modify dnsrestart not to use system command "time" (fixes compatibility with MIPS builds)

Thanks @rs232
3 years ago
pedro c535520dc7 adblock v2: update to 2.71u
Changes:

- different approach to calculate execution time and make it hopefully compatible with a reboot
- added missing </b> in status-gui
- some greptimisation
- fixed handling of quoted lines in blacklist custom and whitelist and mapped files
- ignoring leading spaces (if any) from blacklist custom and whitelist and mapped files
- extend the leading spaces pruning to variables populated from NVRAM
- statically map grep and set to the version under /bin to avoid conflict with entware
- introduced "upgrade" function
- introduced "upgrade" silent function (no question asked)
- logw warning message when Custom path = /jffs
- match, log and skip Easylist format as part of the parsefile()
- extend the parsefile analisis to the first 500 unquoted lines
- minor tweak to the alias "domain"
- handle quoted text when this starts from the middle of the line
- shaffles code around for the parsing routing, removing comments first then checking the first 50 lines
- removed leftover <br> from the status-gui
- automatic removal of leftover list/headers from perm storage when not used and 15days+ old
- increase top of the list analysis from 50 to 500 lines on all the elif conditions
- reporting efficiency now uses lines and not bytes, also reports with double decimal e.g.: 0.78% and total line pruned e.g. 1033 lines
- corrected "- gt" typo to "-gt"
- removed the auto-pruning and it came with a "find" issue also it was not compatible with list-of-lists
- increase top of the list analysis from 50 to 500 lines (helps with lists that start with extensive comments)
- renamed "Adblock file" to "Blockfile" in GUI and command line status
- corrected some typos
- exclude blank lines custom/white when fetching content from nvram
- reclassified few messages from debug to info
- CheckRam() "would not fit" messages are now logged as errors
- configuration check for black_custom/whitelist are now excluding any quoted-line/extra-space from the comparison
- Black_custom & Whitelist procedures are run conditionally, e.g. skipped if empty
- automatically prune *.list/*.headers from custom path when they are not enabled and the file date is older than 14 days

Thanks @rs232
3 years ago
pedro c8b98377f5 others: entware-install-MIPS.sh: use the full path when calling programs 3 years ago
rs232 469df9f978 wwansignal - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 77be122906 webmon_bkp - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 bf36ed27c7 watchdog - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 a44e4671f3 vpnrouting.sh - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 d937b81260 updown-client.sh - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 bbc0017c6b cru - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 ffcf0285c9 ethstate - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 23c38f1609 groups - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 6a7c8a9272 linkagg - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 939e2cd280 mymotd - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 4d54da3900 ntp2ip - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 60efbe9c3b ttb-simple - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 2d43181b8a ttb - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 dabcca5da4 tomatoanon - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 015503e1fe sysinfo-helper - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 c51831223d sysinfo - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 0cf47b3749 switch4g - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 48ee7d9cea switch3g - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 9b4f8c492f stealthMode - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 b0bdcb6473 optware-install.sh - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 038833c875 gencert.sh - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 ccf2b7f015 entware-install-ARM.sh - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 4e530aa55c discovery.sh - added local $PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 8ab1f7e4bc added PATH directive to avoid conflicts with entware/optware 3 years ago
rs232 524178a958 Added missing <br> from status-gui 3 years ago
rs232 f67c0d410b Adblock v2.71e
- Introduced new test routine
- Aligned the help output from command line to reflect the above
- Allow for URLs to have leading spaces (reduces unwanted errors)
- Added warning icon on the GUI when last run errors is greater than 0
- Tweaked command line colors
- Removed <li> references from the GUI and cleared up HTML warnings
3 years ago
pedro 34f1648543 Adblock v2: update to 2.71d
- Thanks to @rs232
3 years ago
rs232 08ba385785 Adblock v2.71
- Split script messages into correct syslog level (debug/info/notification/error)
- Enhanced logging for better troubleshooting
- General optimization/speedup and code enhancement
- Introduced three routines to try to control memory usage and prevent issues: checkList(), checkRam() and safeDnsmasqRestart()
- New status/help command line function
- New reset/clear/snapshot/trace/enable/disable  functions
- Handles whitelisted subdomains when its parent domain is blacklisted
- Strict whitelisted domain: no auto child resolution. Domains needs to be defined with a prefix '%' e.g. "%test.example.com"
- Custom-blacklist forced pruning. Domains defined with prepending + will force any defined subdomain to be pruned from the blockfile
- Handles user defined files with Windows/Unix EOL and missing EOL's CR
- New Snapshot and trace function facilitate the debugging
- Enhanced command line operation: 'adblock help' is your friend
- GUI integration
- Maximum filesize user definable from the GUI
- Custom path can be defined to operate the script e.g. on USB leaving RAM headroom for dnsmasq (and much larger domain lists)
- Custom path will also prevent unnecessary downloads if the source list hasn't been updated since the last download
- Quick recover of blocklist after a reboot
- Change in the script logic, when path is defined an attempt to update will result into a check first and the actual update is performed only when needed (e.g. one of the lists was updated or the relevant nvram variables have changed)
- Supports multiple lists format and is able to extract domains from any part of an unquoted line. Easylist format is tolerated but will lead to a number of false positives.
- Allow feeding of custom-blacklist and whitelists from local file (reduce nvram usage). Just define /path/file in the relevant GUI field -
- Adblock is automatically run in debug (a.k.a. trace mode) when loglevel=7 and putput found under /tmp/adblock.debug...
- Imposed hold-time of 30min betwen updates to prevent false calls
- Removed the now-unneccessary other hold-times found in v1
- lists are now populated with --local attribute instead of --address (15% RAM saving)

This version if fully backward compatible with v1 this means the user is not expected to change amy settings to make this working even in case of dirty firmware upgrade.

* A big thank you to @PetervdM for the support and testing
3 years ago
pedro cc21f5b0d8 others: Makefile: also add ntp2ip script when image is built with dnscrypt-proxy but without stubby 3 years ago
pedro 5d78876aa8 httpd: switch self-signed certificate from RSA to ECC
- will be less CPU-intensive, particularly for slower models

Ref: cbf95d8d2c
3 years ago
M_ars 30156fe2c2 build: add Asus RT-AC88U support (only 4 LAN + 1 WAN port)
Note: no support for RTL8365MB switch (Lan port 5-8) / tbd. maybe later
3 years ago
Michał Obrembski 6c4d764a77 GUI: Status: Overview: add current operator to WWAN Modem Status 3 years ago
pedro f273106196 rc: mysql: rewrite, to get rid of shell scripts
- rewrite watchdog
- use logmsg()
- many other changes and fixes
3 years ago
pedro 069770f5e3 rc: transmission.c: rewrite transmission FW rules and watchdog script
- avoid problems while starting/stopping in the GUI (and also in other cases)
- use chain_in_accept as ACCEPT string (for log, if enabled)
- remove FW rules if start of transmission daemon failed
- some other fixes
3 years ago
M_ars 98fd95a4c3 ARM-Master branch: prepare for merge (SDK6 + SDK7 + SDK714) 3 years ago
pedro 1385bf0453 adblock: CHK_FILE is already deleted 3 years ago
pedro 5115473d24 rc: do not (re)start services during upgrade/reboot 3 years ago
pedro 308559fd3b others: adblock: move last forgotten file to adblock subdir 3 years ago
pedro b0ce41c09b others: vpnrouting.sh: cosmetic/clean-up; correct chmod of routing script to 700 3 years ago
pedro 49a2146640 others: btcheck/mysql: cosmetics 3 years ago
pedro a9b8e1d71d build: only include adblock when image is built with TCONFIG_HTTPS
- all (or most) servers from the adblock list are now redirecting to https, so wget can't download them without OpenSSL
3 years ago
pedro f8a5dcaf93 others: remove now unneeded reference to localhost 3 years ago
pedro 5f9172f39f others: switch4g: small fixes 3 years ago
pedro 53e34f1dc1 others: linkagg: fix warning messages, cosmetic 3 years ago
pedro 57eba561b3 GUI: VPN Tunneling: OpenVPN Client: also allow range of IP addresses as a source IP 3 years ago
M_ars ad5e98f1f4 build: add Netgear R7900 support (almost the same like R8000)
Note: add support based on the work of snowman58 - THX
3 years ago
pedro 6cc5a0d4c8 watchdog: fix regex which trigger dhcpFix
- thanks to @rs232
3 years ago
pedro 6d0646ed30 others: switch4g: only use nvram commit if it's needed 4 years ago
pedro ebce86e6fa rc: use nvram variables instead of globals to skip some steps during upgrade/reboot procedure; also include watchdog in that process 4 years ago
pedro d7622289b5 others: watchdog: remove redundant variable 4 years ago
pedro d2be156303 others: watchdog: fix for LTE proto 4 years ago
pedro b2b90184fd others: watchdog: simplify regex 4 years ago
pedro 7ca95be0e3 others: watchdog: fix regex for checking if orphaned connect-on-demand listen process is up (it never worked...) 4 years ago
pedro 695a73be18 others: wwansignal: simplify regex for checking if uqmi is up 4 years ago
pedro a522191e08 others: switch4g: simplify regex for checking if uqmi is up 4 years ago
pedro 8009dbee8b others: mycheck: simplify regex for checking if mysqld is up 4 years ago
pedro 8711d56897 others: btcheck: fix regex for checking if transmission-daemon is up (it never worked...) 4 years ago
pedro c6cf950201 others: watchdog: simplify regex and fix how mwanroute is called (detach)
Thanks @rs232
4 years ago
pedro 14027c87b3 shared: defaults.c: remove unnecessary variable wanX_modem_if 4 years ago
pedro d2598bea2c multiwan/watchdog: fix even more issues including lack of default route when all WANs are down - now in such cases, default route is added to the WAN with the heighest weight
- avoid using nslookup if targets are already defined as IP
- WAN DNS servers manually defined are excluded from the IPLIST
- use one Target at the time, stop at the first successful test e.g. don't run them all
- optimised all the watchdog parameters (traceroute/ping/curl) to be quicker
- add control to force DHCP refresh for DHCP interfaces with no IP and not to perform a test if we still don't get an IP
- some minor fixes/changes

Thanks to @rs232
4 years ago
pedro a2cdaf9804 log: watchdog/mwan: stick to our new naming convention for WANs PREFIX; additionally add some minor fixes in mwan.c 4 years ago
pedro 4000153d4b adblock: filter also ipv6 addresses (resolves #200) 4 years ago
M_ars 76a51c0832 build: add Linksys EA6350v2 support
Note: needs to be tested; EA6350v1 upgrade to dual-core ==> EA6350v2

Detection Infos:
boardflags2=0x00000000
boardflags=0x00000110
boardnum=20150309
boardrev=0x1200
boardtype=0xE646
4 years ago
M_ars 8d04e6a26a GUI: status-overview - improve ethstate if WAN port is moved to primary LAN (part 2) 4 years ago
pedro a5d2f0e132 router: others: one version for ARM and MIPS branch; clean-up 4 years ago
pedro ba7850e50c others: vpnrouting.sh: one version for ARM and MIPS branch 4 years ago
pedro a5e9cfac03 build: move gencert.sh to others subdir 4 years ago
pedro 506949f341 build: others: Makefile: stay as close as possible to MIPS branch 4 years ago
pedro 26562e36c6 build: use --no-check-certificate for wget in scripts only when CA cert is not installed 4 years ago
pedro 6e1ef2f0cf use '--no-check-certificate' for wget in scripts 4 years ago
M_ars aaba5b7f3a GUI: status-overview - improve ethstate if WAN port is moved to primary LAN
See report:
https://www.linksysinfo.org/index.php?threads/bug-since-2021-1-till-now.76930/

tested with Asus RT-N18U, look good now :)
4 years ago
pedro 9e0d7aa52d GUI: fix the display of SMS and signal level (RSSI) in some cases 4 years ago
pedro 4e3c345223 GUI: Status: Overview: add MultiWAN Status and button to force watchdog check manually (closes #105) 4 years ago
pedro 8a1ce0f01f watchdog/multiwan: fix a whole bunch of problems
- rc: misc.c: check_wanup(): add checking for content of WAN state file; fix fopen/fclose; sprintf -> snprintf
- others: watchdog: fix hanging at nslookup in some cases
- www: basic-network.asp: add possibility to disable watchdog for given WAN if needed
4 years ago
pedro e27fecfd6d mymotd: comma -> dot in WL frequency 4 years ago
pedro fea31f293b TTB: v3.02 change default URLs and add URL redundancy/randomisation
- thanks to @rs232
4 years ago
pedro b64feaa0c2 others: mymotd: code improvements, thanks to @WildFireSG 4 years ago