703 Commits

Author SHA1 Message Date
Rob White
c24cb6df51 Fix - correctly display return buffer in syslog
Signed-off-by: Rob White <rob@blue-wave.net>
2022-02-18 18:51:20 +00:00
Rob White
640aeb240b Add - use heap allocation for library call return buffer
Signed-off-by: Rob White <rob@blue-wave.net>
2022-02-18 17:07:05 +00:00
Rob White
ed8698574b Add - OpenWrt: revert uncommitted uci updates at startup and shutdown
Signed-off-by: Rob White <rob@blue-wave.net>
2022-02-18 17:07:04 +00:00
Rob White
c209d06918 Bump to v9.6.0
Signed-off-by: Rob White <rob@blue-wave.net>
2022-02-13 17:43:24 +00:00
Rob White
9ed15a774e Remove blank line
Signed-off-by: Rob White <rob@blue-wave.net>
2022-02-13 09:36:49 +00:00
Rob White
9e5f6a0696 Fix - ensure rate limiting is disabled if rate thresholds are set to zero
Signed-off-by: Rob White <rob@blue-wave.net>
2022-02-10 08:19:49 +00:00
Rob White
b896a8cd10 Add - querystring support for client status page
Signed-off-by: Rob White <rob@blue-wave.net>
2022-02-07 21:24:06 +00:00
Rob White
ee3122d5f8 Add - set default session timeout to 24 hours
Signed-off-by: Rob White <rob@blue-wave.net>
2022-02-06 07:38:12 +00:00
Rob White
df503161c6 Fix - potential buffer overflow
Signed-off-by: Rob White <rob@blue-wave.net>
2022-02-04 15:49:37 +00:00
Rob White
8e56836e8d Fix - Restrict max packet limit to iptables maximum
Signed-off-by: Rob White <rob@blue-wave.net>
2022-02-04 09:27:23 +00:00
Rob White
47565c5f79 Fix - descriptive labels on ndsctl status output
Signed-off-by: Rob White <rob@blue-wave.net>
2022-02-04 09:27:23 +00:00
Rob White
e1c8652ec2 Update Copyright notices
Signed-off-by: Rob White <rob@blue-wave.net>
2022-02-03 11:12:37 +00:00
Rob White
05f04af065 Bump to v9.6.0beta for pre release
Signed-off-by: Rob White <rob@blue-wave.net>
2022-02-03 08:40:27 +00:00
Rob White
c21edc3641 Add - Default checkinterval set to 15 seconds
Signed-off-by: Rob White <rob@blue-wave.net>
2022-02-02 17:06:21 +00:00
Rob White
f400a1cb45 Fix - incoming and outgoing counters when unlimited bursting is enabled
Signed-off-by: Rob White <rob@blue-wave.net>
2022-02-02 17:03:13 +00:00
Rob White
6a8896597c Add - maximum bucket size configuration.
This enables control over download and upload rate limiting packet loss at the expense of increased latency
Default 250 packets.

Signed-off-by: Rob White <rob@blue-wave.net>
2022-02-02 10:03:33 +00:00
Rob White
8a0aa0a381 Add - calculate moving average packet size for rate limiting
Signed-off-by: Rob White <rob@blue-wave.net>
2022-01-27 22:01:52 +00:00
Rob White
91a1f2a3c1 Add - some operational default values
Signed-off-by: Rob White <rob@blue-wave.net>
2022-01-27 10:54:52 +00:00
Rob White
c710e63eef Add - initial rate limits when unrestricted bursting is disabled
Signed-off-by: Rob White <rob@blue-wave.net>
2022-01-26 17:12:11 +00:00
Rob White
c969213d89 Add - Require clients to be in the dhcp database
Signed-off-by: Rob White <rob@blue-wave.net>
2022-01-24 10:31:08 +00:00
Rob White
c17fbb66dc Fix - Segfault when FAS fails to Return customstring
Reported by [dorkone]

Signed-off-by: Rob White <rob@blue-wave.net>
2022-01-21 16:48:59 +00:00
Rob White
93fbf9ffed Add - Enable/Disable unrestricted bursting
Signed-off-by: Rob White <rob@blue-wave.net>
2022-01-21 16:45:41 +00:00
Rob White
1d7fd5e755 Add - gatewayurl to querystring and use in place of originurl in FAS
Signed-off-by: Rob White <rob@blue-wave.net>
2022-01-16 17:02:25 +00:00
Rob White
82bd3feb05 Fix - more accurate debug message
Signed-off-by: Rob White <rob@blue-wave.net>
2022-01-16 16:03:27 +00:00
Rob White
8b5e768cc2 Add - Report Packet Rate and Bucket Size in ndsctl status and json and status client page
Signed-off-by: Rob White <rob@blue-wave.net>
2022-01-15 15:00:42 +00:00
Rob White
1c565634ec Add - rate limit refresh to client limit rules
Signed-off-by: Rob White <rob@blue-wave.net>
2022-01-09 14:14:36 +00:00
Rob White
79536c747c Fix - code readability
Signed-off-by: Rob White <rob@blue-wave.net>
2022-01-09 14:11:53 +00:00
Rob White
66ced77577 Add - Show unrestricted burst intervals in ndsctl status
Signed-off-by: Rob White <rob@blue-wave.net>
2022-01-03 11:16:33 +00:00
Rob White
25fe968e13 Add - Set default bucket ratios to 10
Signed-off-by: Rob White <rob@blue-wave.net>
2022-01-03 11:15:08 +00:00
Rob White
b556713fbb Bump to v9.5.2beta
Signed-off-by: Rob White <rob@blue-wave.net>
2021-12-20 11:45:00 +00:00
Rob White
2eaba2e169 Bump to v9.5.1 for release
Signed-off-by: Rob White <rob@blue-wave.net>
2021-12-17 08:19:50 +00:00
Rob White
cb7495d633 Fix - ThemeSpec file downloads when mwan3 is running.
When two or more upstream interfaces are controlled by mwan3,
ensure online status is detected correctly.

Signed-off-by: Rob White <rob@blue-wave.net>
2021-12-16 15:51:58 +00:00
Rob White
0e61687b20 Fix - Preemptive auth failure after previous deauth.
When a client was deauthed, it was not removed from the client list,
instead its firewall state was changed from authenticated to preauthenticated.
With the introduction of preemptive authentication, this is no longer sufficient.

If a client had been deauthed for any reason, then was pre-emptively re-authed
(within the configured preauthidletimeout period),
it would inherit its previous details including its previous ip address
as far as openNDS is concerned.
If the dhcp allocated ip address was the same as before then there was no problem.

But if that previous ip address had been leased to some other client then
the preemptive authentication would fail and the other client would be locked out.

This fix deletes the client from the client list and does more in depth
checking for the presence of the client before preemtive auth is allowed.

Signed-off-by: Rob White <rob@blue-wave.net>
2021-12-15 16:39:18 +00:00
Rob White
3c3378c4b2 Bump to v9.5.1beta
Signed-off-by: Rob White <rob@blue-wave.net>
2021-12-12 20:04:19 +00:00
Rob White
4813401b22 Fix - some compiler warnings
Signed-off-by: Rob White <rob@blue-wave.net>
2021-12-12 09:34:35 +00:00
Rob White
3e89317829 Pre Release Updates
Signed-off-by: Rob White <rob@blue-wave.net>
2021-12-12 08:08:17 +00:00
Rob White
8dfac494fe Add - use average packet size instead of MTU when implementing rate limiting
Signed-off-by: Rob White <rob@blue-wave.net>
2021-12-06 19:34:30 +00:00
Rob White
74213164b0 Fix - typo in iptables command and remove a redundant command
Signed-off-by: Rob White <rob@blue-wave.net>
2021-12-05 14:57:32 +00:00
Rob White
cfce23d4b5 Add - startdaemon() and stopdaemon() utility functions
Signed-off-by: Rob White <rob@blue-wave.net>
2021-12-05 09:57:55 +00:00
Rob White
6e6fe48da0 Add - combined interface/ipaddress external gateway status monitoring
Signed-off-by: Rob White <rob@blue-wave.net>
2021-12-05 09:56:18 +00:00
Rob White
a8c87b9be1 Fix - correctly reset upload and download rate rules
Signed-off-by: Rob White <rob@blue-wave.net>
2021-12-02 20:29:51 +00:00
Rob White
2d0830878c Fix - Potential NULL pointer segfault in http_microhttpd on calling autenticated()
Signed-off-by: Rob White <rob@blue-wave.net>
2021-11-25 13:23:56 +00:00
Rob White
7a3507986e Merge pull request #267 from dddaniel/segfault-fix
Fix - NULL pointer segfault in microhttpd on preauth
2021-11-25 13:00:05 +00:00
Rob White
9dd6b7cf92 Add - Calculate Bucket size based on achieved burst rate
This gives finer rate limit resolution with smoother performance.
The temporary 50Kb/s lower limit is now removed.

Signed-off-by: Rob White <rob@blue-wave.net>
2021-11-25 12:52:01 +00:00
Rob White
9cfa8b8096 Add - disable rate quotas by setting bucket ratio to zero
Signed-off-by: Rob White <rob@blue-wave.net>
2021-11-25 12:52:01 +00:00
Rob White
c1a9fd5e71 Fix - suppress some debug messages
Signed-off-by: Rob White <rob@blue-wave.net>
2021-11-25 12:52:01 +00:00
Rob White
1db2f5df65 Fix - Increase buffer length for longer interface names [koivunen]
Signed-off-by: Rob White <rob@blue-wave.net>
2021-11-25 12:52:01 +00:00
Rob White
fea66248ff Add - enforce minimum data rates in ndsctl auth
Signed-off-by: Rob White <rob@blue-wave.net>
2021-11-25 12:52:01 +00:00
Daniel Danzberger
e6a9bcd0d2 Fix - NULL pointer segfault in microhttpd on preauth
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2021-11-23 21:59:27 +01:00
Rob White
48b1b954a3 Add - upload and download bucket ratio config values
Allows tuning of bucket size (queue length) for rate quotas

Signed-off-by: Rob White <rob@blue-wave.net>
2021-11-07 14:16:46 +00:00