Commit Graph

57 Commits

Author SHA1 Message Date
Moritz Warning 2a725e7cbe nodogsplash: explicit file copy
Signed-off-by: Moritz Warning <moritzwarning@web.de>
2023-10-23 09:28:01 +02:00
Moritz Warning fe1c67fb3d nodogsplash: update to version 5.0.2
Fix a buffer overflow in case the
query string is too long.

Signed-off-by: Moritz Warning <moritzwarning@web.de>
2023-10-10 12:26:28 +02:00
Moritz Warning 967dde509b nodogsplash: remove opennds from conflicts
OpenNDS lists nodogsplash a conflict as well.
This causes a circular reference that is not allowed.

Signed-off-by: Moritz Warning <moritzwarning@web.de>
2023-07-29 19:00:42 +02:00
Moritz Warning 91e07907fa nodogsplash: update to 5.0.1
Signed-off-by: Moritz Warning <moritzwarning@web.de>
2023-07-23 21:53:27 +02:00
Josef Schlehofer c64e02c5b5 nodogsplash: fix SPDX License Identifier and reordering
- Add PKG_LICENSE_FILES
- Use two spaces instead of tabs

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-03-03 08:55:53 +01:00
Alexander Couzens 4ae3c3f280
nodogsplash: update to 5.0.0 2020-07-08 15:54:08 +02:00
Rob White 13f4c0d909 nodogsplash: Version 4.4.0 release (#540)
Maintainer: Moritz Warning <moritzwarning@web.de>

Compiled and tested on snapshot SDK mips_24kc and arm_cortex-a7_neon-vfpv4

This release adds significant new functionality yet is compatible with the previous version.

From the changelog:
  * Add Client Network Zone detection supporting local interfaces and 802.11s mesh [bluewavenet]
  * Add client zone and user agent to FAS/PreAuth logs [bluewavenet]
  * Add requirements for retrieving https remote image for login page [bluewavenet]
  * Add htmlentity encode and decode to preauth scripts [bluewavenet]
  * Implement unescape callback for MHD allowing url special characters to be used in login forms [bluewavenet]
  * Create get_client_interface library utility [bluewavenet]
  * Create unescape library utility [bluewavenet]
  * Update demo-preauth, login-option and fas scripts [bluewavenet]
  * Update fwhook restart - do not use ndsctl to check if nds is running [bluewavenet]
  * Update config files [bluewavenet]
  * Fix - allow comma space to be used in PreAuth variables [bluewavenet]
  * Fix - final redirect for fas-aes [bluewavenet]
  * Fix - ignore trusted mac if invalid [bluewavenet]
  * Documentation updates [bluewavenet]

Signed-off-by: Rob White <rob@blue-wave.net>
2020-01-09 21:31:46 +01:00
Rob White face529e09 nodogsplash: Version 4.3.3 release (#517)
Maintainer: Moritz Warning <moritzwarning@web.de>

Compiled and tested on snapshot SDK mips_24kc and arm_cortex-a7_neon-vfpv4

This version fixes two issues that can cause NDS to lock or crash, one, a coding error that leads to memory corruption and two, deadlocks in iptables and ndsctl. Both of these issues occur at high loads and/or at high CPD detection rates.

In addition, in some circumstances, a deauthenticated client running a vpn may have suffered from querystring truncation causing vpn failure.

Some minor updates are also included.

Extract from changelog:

 * Fix Memory corruption at high loads [bluewavenet]
 * Prevent iptables and ndsctl deadlocks [lynxis]
 * Prevent query string truncation for deauthenticated client when client is using some types of vpn software [bluewavenet]
 * Add debuglevel logging in the case of a firewall restart in OpenWrt [bluewavenet]
 * Return error 403(forbidden) when client attempts to use a forbidden http method [bluewavenet]

Signed-off-by: Rob White <rob@blue-wave.net>
2019-10-20 14:32:24 +02:00
Rob White 08ba5e50aa nodogsplash: Version 4.3.0 (#515)
Maintainer: Moritz Warning <moritzwarning@web.de>

Compiled and tested on snapshot SDK mips_24kc and arm_cortex-a7_neon-vfpv4

This release has major new functionality in the form of token hashing,
(extension to fas_secure level 1) mitigating the problems with remote FAS
where access to the local ndsctl would be otherwise required.
Although not as flexible as level 2, this extension has much smaller
memory and storage requirements so is ideal for implementation on
legacy hardware.

There are also numerous enhancements, updates and fixes.

All changes are compatible with the previous release.

Latest changelog:

 * Create switch option to select preinstalled templated splash or preauth login [bluewavenet]
 * Limit PreAuth and BinAuth log size in example scripts [bluewavenet]
 * Reduce memory requirements and autoselect logfile location [bluewavenet]
 * Create fas-hid example script [bluewavenet]
 * Update FAS, PreAuth and BinAuth example scripts [bluewavenet]
 * Hash client token (hid) for remote FAS enabling secure FAS for legacy/low-flash/low-ram hardware [bluewavenet]
 * Fix NDS Uptime if NTP client is enabled [bluewavenet]
 * Documentation updates for this release [bluewavenet]
 * Fix numerous compiler warnings [mwarning]
 * Fix openwrt fw_mark option type [mwarning]

Signed-off-by: Rob White rob@blue-wave.net
2019-10-08 22:10:04 +02:00
Rob White def3cd50d8 nodogsplash: Release 4.2.0 (#513)
Maintainer: Moritz Warning <moritzwarning@web.de>

Compiled and tested on snapshot SDK mips_24kc and arm_cortex-a7_neon-vfpv4

This release adds significant functionality in the form of capturing the client User-Agent string and passing to both PreAuth and BinAuth scripts. Compatibility is maintained with previous versions.

Changelog since last OpenWrt release:

 * BinAuth - Send User Agent string and client-ip to the binauth script [bluewavenet]
 * BinAuth - Update the two example BinAuth scripts showing use of passed arguments [bluewavenet]
 * Documentation - Update BinAuth section [bluewavenet]
 * PreAuth - Send User Agent string to the preauth script [bluewavenet]
 * PreAuth - Update the example PreAuth script showing use of passed arguments [bluewavenet]
 * Documentation - Update PreAuth section [bluewavenet]
 * BinAuth - Send redir variable to the binauth script, allow passing of custom variable payload [bluewavenet]
 * BinAuth - Provide two example BinAuth scripts [bluewavenet]
 * Documentation - Rework Binauth section plus numerous minor updates [bluewavenet]
 * Deprecate RedirectURL config option as it is rendered obsolete by many CPD implementations, use FAS instead [bluewavenet]
 * Numerous minor updates to html, css and script files [bluewavenet]
 * Fix bug - faskey, exit gracefully if not set and fas_secure_enabled = 2 [bluewavenet]
 * Fix bug - Systemd, Do not set debug level in nodogsplash.service [bluewavenet]
 * Fix bug - ndsctl, delete lock file if NDS is not started [bluewavenet]

Signed-off-by: Rob White <rob@blue-wave.net>
2019-09-14 22:21:11 +02:00
Rob White 5d7f4af534 nodogsplash: Release 4.0.2 (#500)
Maintainer: Moritz Warning <moritzwarning@web.de>

Compiled and tested on snapshot SDK mips_24kc

This release has numerous bug fixes and enhancements:

  * Fix bug - fas_remotefqdn not supported with option fas_secure_enabled 0 [bluewavenet]
  * Fix bug - prevent deadlock causing ndsctl to hang and NDS to become unresponsive [bluewavenet]
  * PreAuth - Override FAS settings making configuration foolproof [bluewavenet]
  * ndsctl - make json parsing consistent for all client variables [bluewavenet]
  * Fix memory leak in template generation [lynxis]
  * When executing the ndsctl stop command, cleanup all structures [lynxis]
  * Check for positive errno in thread_ndsctl [lynxis]

Signed-off-by: Rob White <rob@blue-wave.net>
2019-08-16 01:45:52 +02:00
Rob White c953099d06 nodogsplash: Release 4.0.1 (#492)
Maintainer: Moritz Warning <moritzwarning@web.de>

Compiled and tested on snapshot SDK mips_24kc

  * Make debuglevel platform independent [mwarning]
  * Add/move/reword some debug output lines [mwarning]
  * Numerous code cleanups [mwarning]
  * Put fas code into block [mwarning]
  * Fix coding error in fas-aes.php incorrectly passing redir back to NDS [bluewavenet]
  * Numerous documentation updates [bluewavenet]

Signed-off-by: Rob White <rob@blue-wave.net>
2019-07-30 17:22:39 +02:00
Rob White c46019e7ad nodogsplash: Release 4.0.0 (#484)
Maintainer: Moritz Warning <moritzwarning@web.de>

Compiled and tested on snapshot SDK mips_24kc and arm_cortex-a5_neon-vfpv4/

  * Introduce aes encryption of the query string passed to remote FAS, allowing authdir and client token to be transferred securely. Uses php-cli and php-openssl. These are required if encryption is enabled but are not dependencies [bluewavenet]
  * Introduce fasremotefqdn, specifying the FQDN of the remote FAS. This facilitates simplified support for FAS operation on shared hosting systems [bluewavenet]
  * Add a FAS php script supporting aes encrypted query string sent from NDS [bluewavenet]
  * Numerous Documentation updates [bluewavenet]
  * Remove unused pagesdir and imagesdir [mwarning]
  * Add Preauth script that displays images from remote servers [bluewavenet]
  * Use elegant check for valid ip addresses [mwarning]
  * openwrt initscript - add missing macmechanism in the config file [lynxis]

Signed-off-by: Rob White <rob@blue-wave.net>
2019-07-15 14:23:31 +02:00
Rob White 040b8e8750 nodogsplash: Release v3.3.2-1 (#468)
Maintainer: Moritz Warning <moritzwarning@web.de>

Compiled and tested on snapshot SDK mips_24kc and arm_cortex-a5_neon-vfpv4/

  * Fix Issue introduced in v3.3.0 with the addition of Improvements towards usable IPv6 support, that caused CPD on client devices to fail with "Too Many Redirects" error. NDS now terminates gracefully with a console error if fasremoteip is set AND fasport=80  [bluewavenet]
  * Validate fasremoteip to ensure that if it is set, then it is a valid dotted format IPv4 address  [bluewavenet]
  * Numerous Documentation updates  [bluewavenet]
  * Fix to Known Issue on OpenWrt >18.x.x with v3.3.1. This was caused by misconfigured Makefile for libmicrohttpd; this has been fixed there [bluewavenet]

Signed-off-by: Rob White <rob@blue-wave.net>
2019-05-07 22:38:40 +02:00
Rob White f049dfde5b nodogsplash: Add missing install directories (#460)
Add missing install directories in revised Makefile

Signed-off-by: Rob White rob@blue-wave.net
2019-03-25 18:03:29 +01:00
Rob White b01e4b0e7c nodogsplash: Bump to v3.3.0-1 (#457)
Signed-off-by: Rob White <rob@blue-wave.net>
2019-03-25 14:28:02 +01:00
Moritz Warning 1cca73b59f
nodogsplash: fix invalid pointer bug when clock is turned back (#456)
Signed-off-by: Moritz Warning <moritzwarning@web.de>
2019-03-14 18:23:32 +01:00
Daniel Engberg be91e9d6dc
nodogsplash: libmicrohttpd-no-ssl -> libmicrohttpd
Due to rearrangements of the libmicrohttpd the non
ssl variant is now called libmicrohttpd.

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2019-01-31 15:50:56 +01:00
Moritz Warning 372ed0da13 nodogsplash: fix download hash
The tagging of the release was wrong, as a result, the hash of the downloaded files is different from the usual download package.
The content has been verified to be the same.

Signed-off-by: Moritz Warning <moritzwarning@web.de>
2018-09-28 15:29:16 +02:00
Rob White 4bfb63f25b nodogsplash: Version 3.2.1 release (#416)
nodogsplash: Release 3.2.1

Signed-off-by: Rob White <rob@blue-wave.net>
2018-09-27 14:59:33 +02:00
Rob White 00a6bef40b nodogsplash: add missing config options
sessiontimeout (minutes) until client is forced out
checkinterval (seconds) interval at which nodogsplash checks client timeout status

Add real world useful values to timeout options.

Signed-off-by: Rob White <rob@blue-wave.net>
2018-09-13 15:05:26 +01:00
Rob White 9d7a3f6428 nodogsplash: Release 3.2.0
Signed-off-by: Rob White <rob@blue-wave.net>
2018-09-02 22:30:22 +01:00
Rob White 0b21cb77d9 nodogsplash: Release 3.1.0
Signed-off-by: Rob White <rob@blue-wave.net>
2018-08-26 22:57:12 +01:00
Moritz Warning 02966f80c1 nodogsplash: fix minor package issues
- package now conflicts with nodogsplash2
- properly close heredoc block
- quiet uci when removing previous firewall hook

Signed-off-by: Moritz Warning <moritzwarning@web.de>
2018-08-17 19:23:00 +02:00
Moritz Warning 1a27c9a34d nodogsplash: update to release 3.0.0
Signed-off-by: Moritz Warning <moritzwarning@web.de>
2018-08-16 15:03:29 +02:00
Daniel Engberg 43449bcbbd treewide: Basic cleanup and alignment to package guidelines (#383)
This is a very basic cleanup, several packages needs more work
but this at least drops git for https and removes the use of
PKG_MD5SUM and some minor fixes.

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2018-07-12 16:50:47 +02:00
Moritz Warning 93468c3f5f nodogsplash: idletimeout => clientidletimeout (fixes #292)
Signed-off-by: Moritz Warning <moritzwarning@web.de>
2017-05-16 00:25:23 +02:00
Moritz Warning 79ab503131 nodogsplash: update to version 1.0.2
Signed-off-by: Moritz Warning <moritzwarning@web.de>
2017-05-16 00:01:57 +02:00
Moritz Warning 893890ae2b nodogsplash: wait for interface to appear 2016-11-01 02:13:49 +01:00
Moritz Warning eb80008326 nodogsplash: bump version to 1.0.1 2016-08-10 22:33:04 +02:00
Moritz Warning 53b70069c2 nodogsplash: extend configuration help text 2016-07-28 23:57:42 +02:00
Moritz Warning f3f344e949 nodogsplash: remove duplicate options, fixes #135 2016-06-05 11:52:52 +02:00
Moritz Warning 0830aa6442 nodogplash: 1.0.0 release 2016-05-28 13:03:11 +02:00
Moritz Warning 5f75450365 nodogplash: change section name 2016-05-28 13:02:49 +02:00
Moritz Warning 82c882a300 nodogsplash: change comments 2016-05-28 13:01:12 +02:00
Moritz Warning 341dfdab99 nodogsplash: add $ to variable 2016-05-12 18:18:54 +02:00
Moritz Warning 822d7cd8a8 fix check for config existence 2016-05-09 20:29:52 +02:00
Moritz Warning ee3db2964f nodogsplash: fix enable PasswordAuthentication 2016-04-18 22:09:33 +02:00
Moritz Warning f6f76e1541 nodogsplash: fix enable UsernameAuthentication 2016-04-18 22:07:32 +02:00
Jo-Philipp Wich d6715b0be2 nodogsplash: fix musl compatiblity
- Replace nonstandard `sys/unistd.h` includes with `unistd.h` ones
 - Add missing `fcntl.h` include to `libhttpd/protocol.c` in order to
   provide declarations for `open()`, `O_RDONLY` etc.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-26 17:35:39 +02:00
Alexander Couzens 7a233607af nodogsplash: simplify append_config_option
Drop arguement config_counterpart from append_config_option(). append_config_option
took an additional argument named config_counterpart which represents the
configuration name in configfile.This is needed for configuration variable names isn't the same
as in uci. Nodogsplash ignores the case of configuration variables and makes this feature optional.
Introduce new func append_config_option_map() which does the old behaviour.
2015-03-05 18:01:05 +01:00
Alexander Couzens dfa1e090fb nodogsplash: fix uci configuration by fixing append_config_option
append_config_option doesn't wrote anything to nodogsplash.conf.
2015-03-05 18:00:52 +01:00
Alexander Couzens 375378d4de nodogsplash: make missing config options available through uci 2015-03-05 12:47:15 +01:00
Moritz Warning 80711295dd nodogsplash: remove option ExternalInterface as there is no implementation behind it 2015-02-10 13:31:39 +01:00
Moritz Warning 5f49ef1192 nodogsplash: code cleanup, add option gatewayinterface, allow uci and manual configration in parallel 2015-01-26 15:13:56 +01:00
Alexander Couzens 98699f47d7 nodogsplash: migrate to uci based configuration
Use /etc/config/nodogsplash for configuration.
Old setups will migrate using config option to use old
file base configuration.
2015-01-07 10:42:30 +01:00
Moritz Warning 33fe963242 nodogsplash: upgrade to 0.9_beta9.9.9 2014-11-29 08:11:36 +01:00
Steven Barth 69f203d5c3 Add SPDX license tags
Signed-off-by: Steven Barth <steven@midlink.org>
2014-11-03 13:17:00 +01:00
Moritz Warning c866e0c9e3 use procd for nodogsplash, thanks @lynxis 2014-05-19 00:07:17 +02:00
Gui Iribarren 0c2656c402 nodogsplash: recognize yes, true or 1 as valid TrafficControl values 2013-12-15 08:47:17 -03:00