585 Commits

Author SHA1 Message Date
Rob White
986c4de468 Pre release updates for v9.1.1
Signed-off-by: Rob White <rob@blue-wave.net>
2021-07-05 15:56:47 +01:00
Rob White
03434e0d6c Fix - compiler warnings and error
Signed-off-by: Rob White <rob@blue-wave.net>
2021-07-04 22:09:58 +01:00
rob
f89c9a9962 Add - option statuspath
This option allows an alternative client status page script to be used

Signed-off-by: rob <rob@blue-wave.net>
2021-06-30 16:07:16 +01:00
rob
f5c591fe91 Fix - unnecessary ndsctl syslog messages
Signed-off-by: rob <rob@blue-wave.net>
2021-06-26 09:06:18 +01:00
rob
dd296b6399 Fix - some compiler warnings
Signed-off-by: rob <rob@blue-wave.net>
2021-06-26 08:51:04 +01:00
rob
a5c739586b Fix - inadvertent editing errors preventing ndsctl_unlock() from working.
Signed-off-by: rob <rob@blue-wave.net>
2021-06-24 21:11:18 +01:00
rob
8d8cd35775 Fix - BinAuth set missing default custom data string to "na"
Signed-off-by: rob <rob@blue-wave.net>
2021-06-24 15:11:54 +01:00
rob
838f16a6b2 Add - ndsctl lockf() file locking
Mitigates various race conditions and possible deadlocks

Signed-off-by: rob <rob@blue-wave.net>
2021-06-24 14:48:20 +01:00
rob
4b76843450 Add - b64encode to ndsctl
A useful API tool

Signed-off-by: rob <rob@blue-wave.net>
2021-06-21 22:05:41 +01:00
rob
b764513f6b Remove deprecated IFB config
Signed-off-by: rob <rob@blue-wave.net>
2021-06-21 21:30:57 +01:00
rob
5a25b52846 Add - option max_page_size for MHD
This sets the maximum number of bytes that will be served per page
by the MHD web server

Setting this option is useful:
1. To reduce memory requirements on a resource constrained router
2. To allow large pages to be served where memory usage is not a concern

Signed-off-by: rob <rob@blue-wave.net>
2021-06-21 14:06:02 +01:00
rob
68f1af65b8 Add - option remotes_refresh_interval
The interval in minutes after which remote images and files
are refreshed from their origin server.

Signed-off-by: rob <rob@blue-wave.net>
2021-06-21 09:47:41 +01:00
rob
b50c37f1d4 Add - Pre-download remote files in background after startup
This results in a faster display of login page sequence
for the first user after startup.
Provision provided for shceduled download refresh

Signed-off-by: rob <rob@blue-wave.net>
2021-06-19 07:26:28 +01:00
rob
cd9e71d0da Fix - ndsctl, send return codes
ndsctl always returned 0, now returns:

    0 - ok
    1 - failed
    2 - abnormal reply
    3 - error reading socket
    4 - ndsctl is locked by another process


Signed-off-by: rob <rob@blue-wave.net>
2021-06-18 08:27:48 +01:00
rob
794f90abb5 Add - client id data files created by openNDS on client connect
This eliminates b64decode callbacks,
resulting in a significant performance increase
particularly on systems with low power cpu.

Signed-off-by: rob <rob@blue-wave.net>
2021-06-17 11:11:52 +01:00
rob
7eb447fe0a Bump to v0.9.1.0
Signed-off-by: rob <rob@blue-wave.net>
2021-06-07 09:46:16 +01:00
rob
52abc3baa2 Add - check routing is configured and up
Signed-off-by: rob <rob@blue-wave.net>
2021-06-06 07:23:18 +01:00
rob
4d6921f1ea Add - support for Preemptive Authentication for connected client devices.
Devices that cannot or have not entered preauthenticated state can now
be authenticated using the ndsctl auth command.
This is useful for devices that do not have CPD.
It can also be used by a FAS to support inter-portal roaming by accessing
a remote database of client verifications.

Signed-off-by: rob <rob@blue-wave.net>
2021-06-04 22:31:38 +01:00
rob
1e6bd8d44f Add - Gateway interface watchdog
Ensures the gateway interface mac address is reported correctly,
even when mac randomisation is activated on the device.

Note: gatewaymac should not be used for gateway identification,
instead use gatewayname.

Signed-off-by: rob <rob@blue-wave.net>
2021-06-01 10:26:34 +01:00
rob
ac7d49cc9e Improve MHD watchdog
Signed-off-by: rob <rob@blue-wave.net>
2021-05-27 21:47:02 +01:00
rob
80b394ed80 Fix - update legacy code in ndsctl_thread
Signed-off-by: rob <rob@blue-wave.net>
2021-05-25 21:51:36 +01:00
rob
d2b81aaf57 Fix - edge case where MHD returns (null) as host value
This would cause a crash - probably a bug in MHD.
MHD should never return (null) as the host value.

Signed-off-by: rob <rob@blue-wave.net>
2021-05-20 19:51:01 +01:00
rob
d7486784df Bump to v9.0.1beta
Signed-off-by: rob <rob@blue-wave.net>
2021-05-12 14:33:39 +01:00
rob
7e0eeb6d76 Tidy up a debug message
Signed-off-by: rob <rob@blue-wave.net>
2021-05-11 12:08:36 +01:00
rob
b64901feb8 Fix- remove unnecessary debug message
Signed-off-by: rob <rob@blue-wave.net>
2021-05-10 07:53:11 +01:00
rob
01a9472f1e Add - Pause and retry popen on failure
Signed-off-by: rob <rob@blue-wave.net>
2021-05-10 07:52:22 +01:00
rob
20d20f3519 Add - MHD Watchdog - restart MHD if required
Signed-off-by: rob <rob@blue-wave.net>
2021-05-09 22:09:00 +01:00
rob
f3e97b860d Fix - setting of gatewayport, caused by typo in conf.c
Signed-off-by: rob <rob@blue-wave.net>
2021-05-08 16:15:54 +01:00
rob
ed4d2e6b47 Add - functions start_mhd() and stop_mhd()
Signed-off-by: rob <rob@blue-wave.net>
2021-05-08 16:14:22 +01:00
rob
670f1ac396 Fix - ndsctl auth, ensure if session timeout = 0 then use global value
Signed-off-by: rob <rob@blue-wave.net>
2021-05-05 16:26:54 +01:00
rob
547ae3ea65 Fix - numerous compiler errors and Bash comatiblity issues
Signed-off-by: rob <rob@blue-wave.net>
2021-05-03 23:42:00 +01:00
rob
e8ac24a5fd Fix - suppress BinAuth syslog notice message
Signed-off-by: rob <rob@blue-wave.net>
2021-05-02 16:20:08 +01:00
rob
3a4a12eedc Remove deprecated traffic control code
Signed-off-by: rob <rob@blue-wave.net>
2021-05-02 15:56:54 +01:00
rob
4a6de4ca30 Add - packet rate limiting for upload/download rate quotas
Signed-off-by: rob <rob@blue-wave.net>
2021-05-02 15:04:50 +01:00
rob
91b2b1cce7 Add - allow disable gatewayfqdn
This disables the Error_511/client_status page and
allows access to local port 80 services eg Luci WebUI

Signed-off-by: rob <rob@blue-wave.net>
2021-05-02 14:59:41 +01:00
rob
ae51efeddd Clean up syslog messages at ifo level (2)
Signed-off-by: rob <rob@blue-wave.net>
2021-04-28 21:25:29 +01:00
rob
7f7eee6bb0 Some cosmetics
Signed-off-by: rob <rob@blue-wave.net>
2021-04-28 18:02:03 +01:00
rob
44a6e591f7 Fix Check ndsctl lock to prevent calling from Binauth
Signed-off-by: rob <rob@blue-wave.net>
2021-04-28 15:33:49 +01:00
rob
649856894c Update version number prior to release
Signed-off-by: rob <rob@blue-wave.net>
2021-04-27 20:28:25 +01:00
rob
df5a717e2b Adjust config defaults to good real world values
Signed-off-by: rob <rob@blue-wave.net>
2021-04-27 18:46:48 +01:00
rob
c873d002cd Set DEFAULT_GATEWAYINTERFACE "br-lan"
Signed-off-by: rob <rob@blue-wave.net>
2021-04-27 15:11:12 +01:00
rob
fbea40753e Remove redirect to legacy splashpage
Signed-off-by: rob <rob@blue-wave.net>
2021-04-27 09:31:01 +01:00
rob
376e114cf3 Remove references to deprecated splashpage and statuspage
Signed-off-by: rob <rob@blue-wave.net>
2021-04-27 09:24:10 +01:00
rob
ed3db687cc Improve some syslog messages
Signed-off-by: rob <rob@blue-wave.net>
2021-04-27 09:09:05 +01:00
rob
cb8226b321 Fix ndsctl - typo and missing arguments
Signed-off-by: rob <rob@blue-wave.net>
2021-04-27 08:04:35 +01:00
rob
31876a72a4 Add Autoconfiguration of ndsctl socket file to use tmpfs mountpoint.
Setting option ndsctlsocket will override this.

Signed-off-by: rob <rob@blue-wave.net>
2021-04-26 21:14:06 +01:00
rob
5168d1737c Fix ndsctl -s option
The -s option caused the command line options to be incorrectly parsed

Signed-off-by: rob <rob@blue-wave.net>
2021-04-26 15:22:16 +01:00
rob
8777cdd547 Remove deprecated ndsctl clients
Signed-off-by: rob <rob@blue-wave.net>
2021-04-25 22:23:24 +01:00
rob
a1945250e5 Remove deprecated legacy splash page support
Signed-off-by: rob <rob@blue-wave.net>
2021-04-25 21:58:58 +01:00
rob
0994e5d6b1 Add fas_custom_files_list and update Makefiles
Signed-off-by: rob <rob@blue-wave.net>
2021-04-25 13:40:27 +01:00