480 Commits

Author SHA1 Message Date
Rob White
2bbb216550 Release v7.0.1
Signed-off-by: Rob White <rob@blue-wave.net>
2020-11-07 13:05:43 +00:00
Rob White
3e12d349d2 Fix compiler warning
Remove unused variable

Signed-off-by: Rob White <rob@blue-wave.net>
2020-11-06 21:11:10 +00:00
Rob White
13ee9a8a10 Bump to version 7.0.0
Signed-off-by: Rob White <rob@blue-wave.net>
2020-11-05 19:05:43 +00:00
Rob White
580628c1a5 Add: Support for Custom Parameters
This enhancement allows custom parameters to be defined in the config file.

This enhancement is added primarily to support remote configuration operations
using tools such as opensync, but can also be of general use.

Custom Parameters are options defined in the configuration file
and have fixed values once set.

Note: Custom Variables are very different and are defined in the FAS,
with values determined by the FAS/Client dialogue script.

Signed-off-by: Rob White <rob@blue-wave.net>
2020-11-04 10:55:33 +00:00
Rob White
aae65aefcb main.c: Add LOG_NOTICE for login option mode
Signed-off-by: Rob White <rob@blue-wave.net>
2020-11-01 14:08:19 +00:00
Rob White
67e6b46407 Deprecate legacy splash.html and disable it.
Use login.sh with config select of "continue" or username/email login.
Allow reneabling with allow_legacy_splash config option.

Signed-off-by: Rob White <rob@blue-wave.net>
2020-10-31 07:03:31 +00:00
Rob White
108c3fb0b3 Add gatewaymac to the encrypted query string
gatewaymac can be useful for identifying the gateway on the remote FAS.

gatewayname is intended to be used for this purpose,
but in the case of a rollout of a standard build, gatewaymac could
also be useful.

The variable $gatewaymac has been added to the remote FAS example files,
fas-aes.php and fas-aes-https.php.

This variable is only passed for fas_secure_enabled levels 2 and 3

Note: The value gatewaymac is the mac address of the gateway interface
and is not guaranteed to be the mac address displayed on the label.

Signed-off-by: Rob White <rob@blue-wave.net>
2020-10-31 07:03:31 +00:00
Rob White
1f836d8c2b Remove support for RedirectURL
As (most) client CPD processes close immediately on authentication,
RedirectURL no longer works.
Similar but reliable functionality can be achieved by using FAS,
displaying the required URL BEFORE authenticating.

Signed-off-by: Rob White <rob@blue-wave.net>
2020-10-31 07:03:31 +00:00
Rob White
3a7ded7407 Walled Garden: autonomous operation
Signed-off-by: Rob White <rob@blue-wave.net>
2020-10-28 21:15:20 +00:00
Rob White
fad66e6a99 Walled Garden: Configuration
Signed-off-by: Rob White <rob@blue-wave.net>
2020-10-28 21:15:20 +00:00
Rob White
3105c89a3d Version: Bump to 7.0.0beta
Some changes can be incompatible with configs for previous versions.
So bump major version.

Signed-off-by: Rob White <rob@blue-wave.net>
2020-10-13 08:20:03 +01:00
Rob White
00e4e9dfa7 conf.h: add struct for walled garden config
Signed-off-by: Rob White <rob@blue-wave.net>
2020-10-13 08:14:06 +01:00
Rob White
bb1f34b834 ndsctl json: Add quota and rate reporting. Format output and fix syntax errors
Signed-off-by: Rob White <rob@blue-wave.net>
2020-10-10 21:42:31 +01:00
Rob White
81c83bebe1 ndsctl status: Reorder quota outputs to match ndsctl auth
Signed-off-by: Rob White <rob@blue-wave.net>
2020-10-06 08:25:00 +01:00
Rob White
cf90ec0510 ndsctl status: restore accidentally dropped connection state
Signed-off-by: Rob White <rob@blue-wave.net>
2020-10-06 07:06:56 +01:00
Rob White
5506b6ae10 ndsctl status: show client quotas
Signed-off-by: Rob White <rob@blue-wave.net>
2020-10-05 22:27:57 +01:00
Rob White
54cab1eabe ndsctl status: Report Rate Check Window
Signed-off-by: Rob White <rob@blue-wave.net>
2020-10-05 20:37:21 +01:00
Rob White
fb6a58abbe get_iface_ip: Improve ip address detection on switch interfaces
ndsctl: Improve quota reporting

Signed-off-by: Rob White <rob@blue-wave.net>
2020-10-04 13:38:33 +01:00
Rob White
2c9cb55a48 Output global quota values in ndsctl status
Signed-off-by: Rob White <rob@blue-wave.net>
2020-09-30 14:02:06 +01:00
Rob White
1ac9ce1c8b Add global quotas to output of ndsctl status
Signed-off-by: Rob White <rob@blue-wave.net>
2020-09-28 23:03:10 +01:00
Rob White
d17dfd0951 Bump to version 6.1.0beta
Signed-off-by: Rob White <rob@blue-wave.net>
2020-09-28 23:00:58 +01:00
Rob White
7716a4fa63 Deprecate ndsctl clients option
Signed-off-by: Rob White <rob@blue-wave.net>
2020-09-28 16:15:54 +01:00
Rob White
4b6bb4310d Add missing client identifire argument in ndsctl help text
Signed-off-by: Rob White <rob@blue-wave.net>
2020-09-28 16:06:49 +01:00
Rob White
567a319bb3 Fix get_iface_ip in case of interface is vif or multihomed
Signed-off-by: Rob White <rob@blue-wave.net>
2020-08-28 10:01:46 +01:00
Rob White
8997ef614b Bump to 6.0.1beta
Signed-off-by: Rob White <rob@blue-wave.net>
2020-08-24 17:54:51 +01:00
Rob White
39ddb86c3b Udate version number to 6.0.0
Signed-off-by: Rob White <rob@blue-wave.net>
2020-08-21 21:04:06 +01:00
Rob White
c8ec9cdd50 Fix pointer type
Signed-off-by: Rob White <rob@blue-wave.net>
2020-08-21 20:21:12 +01:00
Rob White
38cf39763b Updates for release 6.0.0
Changelog updates for 6.0.0
Set MHD version check to >= 0.9.71
Clean up Preauth "Already authenticated" page
Update config files for v6.0.0
Add description for binauth output and input arguments
Tidy function do_binauth
Add preauth multifield login script with css update
Clarify custom string options
    Hidden or client entered custom string

Signed-off-by: Rob White <rob@blue-wave.net>
2020-08-21 18:55:47 +01:00
Rob White
7771482e24 Clarify error messages about MHD versions
Signed-off-by: Rob White <rob@blue-wave.net>
2020-08-15 22:42:36 +01:00
Rob White
0fb79e0aea Set use outdated MHD enabled for Openwrt 19.7 backport and checks for MHD version
Signed-off-by: Rob White <rob@blue-wave.net>
2020-08-12 18:09:02 +01:00
Rob White
08d7f51d55 Revert to old MHD API for OpenWrt 19.7 backport
Signed-off-by: Rob White <rob@blue-wave.net>
2020-08-12 15:41:08 +01:00
Rob White
b321f4eac1 Use new MHD API, fix MHD failure on Debian Variants.
Signed-off-by: Rob White <rob@blue-wave.net>
2020-08-11 19:01:48 +01:00
Rob White
0adaad3a5b Fix typo and possible buffer truncation
Signed-off-by: Rob White <rob@blue-wave.net>
2020-08-11 19:01:48 +01:00
Rob White
635caf9075 Bump to version 5.1.1beta
Signed-off-by: Rob White <rob@blue-wave.net>
2020-07-20 08:51:40 +01:00
Rob White
67b123845c Updates for release of version 5.1.0
Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-24 22:12:40 +01:00
Rob White
ea7c8452d7 Bump to v5.1.0beta
Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-12 23:13:53 +01:00
Rob White
893714f853 Implement Rate Quotas
Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-12 23:13:53 +01:00
Rob White
c1613d443f Fix check if idle preauthenticated
Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-12 23:13:53 +01:00
Rob White
fa9524594b Add support for rate quotas
Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-12 23:13:53 +01:00
Rob White
d0ac5b32a5 Correctly compare client counters and clean up debugleve messages.
Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-12 23:13:53 +01:00
Rob White
b459f59ab8 Implement upload/download quotas
Update fas-aes-https to support quotas

Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-12 23:13:53 +01:00
Rob White
75cb14af64 Add custom data string to ndsctl auth
Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-12 23:13:52 +01:00
Rob White
967a3ea1eb Send custom data field to BinAuth via auth_client method
Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-12 23:13:52 +01:00
Rob White
83d0d474a3 Add upload/download quota and rate configuration values
Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-12 23:13:52 +01:00
Rob White
4174976385 Send client token to binauth
Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-12 23:13:52 +01:00
Rob White
864b9319cc Rename upload_limit and download_limit to upload_rate and download_rate
Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-12 23:13:52 +01:00
Rob White
52ab429ced Pass correct session end time to binauth
Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-12 23:13:52 +01:00
Rob White
08b8bec3c9 Add some debuglevel 3 messages
Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-12 23:13:52 +01:00
Rob White
847f67fa0c Add sessionlength to ndsctl auth
Example:
ndsctl auth 10.168.1.200 120
This authenticates client 10.168.1.200 for 120 minutes.
Upload and download parameters can also be added but currently
have no effect and are reserved for future enhancement.
syntax:
ndsctl auth [ip|mac|token] [sessionlength] [upload] [download]

Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-12 23:13:52 +01:00
Rob White
a6c324c0f6 Fix: Page fault when ndsctl auth is called and client not found
Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-12 23:13:52 +01:00