98 Commits

Author SHA1 Message Date
Rob White
b5f403977b opennds.conf:Fix typos
Signed-off-by: Rob White <rob@blue-wave.net>
2021-01-05 13:28:27 +00:00
Rob White
4c199f34a4 Updates to config files
Signed-off-by: Rob White <rob@blue-wave.net>
2021-01-04 21:50:58 +00:00
Rob White
5b89c9ba9b opennds.conf - Generic Linux, default to GatewayInterface = wlan0
Signed-off-by: Rob White <rob@blue-wave.net>
2021-01-04 12:35:32 +00:00
Rob White
7a9e82344e Fix typo in opennds.conf
Signed-off-by: Rob White <rob@blue-wave.net>
2021-01-03 22:24:16 +00:00
Rob White
ae4921af9d Update config files
Signed-off-by: Rob White <rob@blue-wave.net>
2021-01-02 10:46:15 +00:00
Rob White
e39ace8199 Bump to version 8.0.0 and update copyright notices
Signed-off-by: Rob White <rob@blue-wave.net>
2021-01-02 09:17:34 +00:00
Rob White
5a8ff373dd splash.html: fix typo
Signed-off-by: Rob White <rob@blue-wave.net>
2020-12-27 21:10:45 +00:00
Rob White
e1eb1ab74c splash.html: Add deprication notice
Signed-off-by: Rob White <rob@blue-wave.net>
2020-12-27 20:41:39 +00:00
Rob White
48b823cf3b opennds.conf: Add GatewayFQDN option
Signed-off-by: Rob White <rob@blue-wave.net>
2020-12-01 16:36:32 +00:00
Rob White
511148d017 Remove RedirectURL from opennds.conf
Signed-off-by: Rob White <rob@blue-wave.net>
2020-11-06 21:52:54 +00:00
Rob White
ab2cc7278e Update comments in configuration files.
Signed-off-by: Rob White <rob@blue-wave.net>
2020-11-06 21:43:01 +00:00
Rob White
155035230b Update config files
Signed-off-by: Rob White <rob@blue-wave.net>
2020-11-05 19:38:17 +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
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
2642ab42d9 Set MHD version for Travis
Signed-off-by: Rob White <rob@blue-wave.net>
2020-08-21 19:04:50 +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
5c6d161f18 Add Walled Garden / IPSET info to config files
Signed-off-by: Rob White <rob@blue-wave.net>
2020-08-16 22:46:10 +01:00
Rob White
44d2f00bd4 Add/improve Walled Garden comments on config files
Signed-off-by: Rob White <rob@blue-wave.net>
2020-08-15 22:43:28 +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
24de5b827f MHD 0.9.71 or higher is mandatory.
Signed-off-by: Rob White <rob@blue-wave.net>
2020-08-11 19:15:28 +01:00
Rob White
576efcacd3 Generic Linux - install opennds.service
Move opennds.service to resources folder

Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-23 12:24:43 +01:00
Rob White
68d3a5a17e Update config files
Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-19 19:49:12 +01:00
Rob White
9b573a7f94 Splash page updates
Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-19 19:49:12 +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
733ee09172 Config file updates
Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-12 23:13:53 +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
5b27074ac5 Updates to Templated Splash pages.
Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-12 23:13:52 +01:00
Rob White
3d1033d39e More renaming, new splash image.
Signed-off-by: Rob White <rob@blue-wave.net>
2020-04-05 16:53:33 +01:00
Rob White
b78536aea1 Intial clone from nodogsplash master
Signed-off-by: Rob White <rob@blue-wave.net>
2020-04-05 08:21:01 +01:00
Rob White
aa54541fca Fix comments in config files
Signed-off-by: Rob White <rob@blue-wave.net>
2020-02-17 00:12:38 +00:00
Rob White
2a2b3693cc Fix: Allow use of "#" and "'" (single quote/asterisk) in gatewayname
See issue #516

"#" is used as a comment indicator in nodogsplash.conf
This fix allows the character to be present as part of an option value.
If the character occurs at the beginning of the line,
the line will be considered as a comment.

"'" (single quote/asterisk) is used as a uci delimiter.
If this character is required in gatewayname then use the
htmlentity &#39; instead.
The default config files have been updated to reflect this.

The demo preauth scripts have been modified to ensure
gatewayname is properly escaped.


Signed-off-by: Rob White <rob@blue-wave.net>
2020-02-15 15:59:48 +00:00
Rob White
15ba5ea4c8 Add option use_outdated_mhd
See issue #515

MHD_get_version is used to determine the installed (runtime) version of
libmicrohttpd (MHD).
If the version is earlier than 0.9.69, then by default, NDS will terminate.

However, if option use_outdated_mhd is set to 1, NDS starts normally
but logs an error.

Signed-off-by: Rob White <rob@blue-wave.net>
2020-02-10 20:58:40 +00:00
Rob White
9fb70f3ce2 Add option: option unescape_callback_enabled
Disabled is 0 (default)
Enabled is 1

This allows custom unescape  in MHD.

MHD needs to unescape characters sent in query strings by browsers.
When this option is disabled, MHD uses its builtin unescape.
When enabled, MHD uses /usr/lib/nodogsplash/unescape.sh

The unescape.sh library is safe as all incoming queries are escaped
by the client browser and the argument containing string to be unescaped
is quoted by NDS.

Signed-off-by: Rob White <rob@blue-wave.net>
2020-02-05 19:41:50 +00:00
Rob White
494d6e4deb Update copyright dates
Signed-off-by: Rob White <rob@blue-wave.net>
2020-01-09 09:34:26 +00:00
Rob White
f52f70300e Update config file
Signed-off-by: Rob White <rob@blue-wave.net>
2020-01-05 21:31:17 +00:00
Rob White
15d551053e Preauth: update login and demo-preauth scripts to display client zone
Signed-off-by: Rob White <rob@blue-wave.net>
2020-01-02 21:39:40 +00:00
Rob White
36f94f4972 Implement unescape callback for MHD (libmicrohttpd)
This is a fix to allow "+" and "&" characters in user data passed to MHD in get requests.
Reported in issue #476, this effected PreAuth and Binauth.
"+" and "&" characters can now be used in form data, eg passwords etc.

Signed-off-by: Rob White <rob@blue-wave.net>
2020-01-01 15:57:45 +00:00
Rob White
389f845061 Create option login_option_enabled
Allows simple switch between templated splash page and preauth login script.
Disabled:
option login_option_enabled '0'
use config options for FAS if set, or Templated Splash

Enabled:
option login_option_enabled '1'
use preauth login script providing username/email login with access log

Signed-off-by: Rob White <rob@blue-wave.net>
2019-10-06 16:27:24 +01:00
Rob White
8fbeee7261 BinAuth: Send redir variable to the binauth script
This enhancement allows custom variables generated by FAS
to be sent to Binauth.

FAS can embed custom variables into redir, allowing
local post authentication processing to take place.

Two example scripts are provided.

The first provides sitewide username/password login for two user groups,
Staff and Guest in the example.
Staff has unlimited access, Guest is limited to 10 minutes per session.

The second provides local logging of NDS logins, even with a remote FAS.

The documentation is fully updated.

Signed-off-by: Rob White <rob@blue-wave.net>
2019-09-02 12:29:05 +01:00
Rob White
6af872bffd Deprecate RedirectURL
redirectURL is now redundant as most CPD implementations immediately close the "splash" page
as soon as NDS authenticates, thus redirectURL will not be shown.
This functionality, ie displaying a particular web page as a final "Landing Page"
can be achieved reliably using FAS, with NDS calling the previous "redirectURL" as the FAS page.

Signed-off-by: Rob White <rob@blue-wave.net>
2019-08-23 15:10:56 +01:00
Rob White
567fc92645 PreAuth Override FAS settings, update DOCS, configs and css
Signed-off-by: Rob White <rob@blue-wave.net>
2019-08-13 13:17:04 +01:00
Rob White
02cd44feba Bump to Version 4.0.1
Signed-off-by: Rob White <rob@blue-wave.net>
2019-07-29 20:57:39 +01:00
Moritz Warning
cdb941d024 config: udpate debuglevel in config files 2019-07-28 20:26:25 +02:00
Rob White
664f986ce2 Add fasremotefqdn, faskey.
Simple configuration of fas running on remote shared hosting server.
Encrypt the query string sent to remote FAS.
Documentation Updates.
Bumping to v4.0.0

Signed-off-by: Rob White <rob@blue-wave.net>
2019-07-07 14:26:27 +01:00
Moritz Warning
28541e787c remove unused pagesdir and imagesdir (#378) 2019-07-02 11:12:34 +02:00
Moritz Warning
4f53bf9b58 add documentation of webroot setting 2019-07-01 16:43:44 +02:00
Rob White
14ebbd1b3f Update Config Files.
Add examples for faspath and fasremoteip

Signed-off-by: Rob White <rob@blue-wave.net>
2019-04-21 23:59:53 +01:00
Rob White
87f12e7bf9 Improve splash.css and tidy up splash/status.html and Preauth demo script.
Signed-off-by: Rob White <rob@blue-wave.net>
2019-04-07 18:55:05 +01:00