openwrt-routing/opennds/Makefile

89 lines
4.2 KiB
Makefile
Raw Normal View History

#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=opennds
opennds: Release v9.10.0 Maintainer: Rob White rob@blue-wave.net Compile tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, x86-64 Run tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, x86-64; on snapshot, 22.03 opennds (9.10.0) * This version adds new functionality, and fixes some issues * Fix - unable to read client upload traffic volume on some versions of iptables-nft (generic Linux) [bluewavenet] * Fix - compatibility with bash shell on generic Linux [bluewavenet] * Fix - compiler warning, unused variable [bluewavenet] * Fix - silently continue if fw4 table is not found [bluewavenet] * Add - Start daemon earlier on boot [bluewavenet] * Fix - compatibility with legacy iptables packages [bluewavenet] * Add - call to delete nft chains [bluewavenet] * Fix - stop using legacy INPUT and FORWARD chains [bluewavenet] * Add - watchdog restart if openNDS nftables ruleset is missing [bluewavenet] * Add - automated rule setting/deleting for users_to_router [bluewavenet] * Add - Change fwhook to add users to router rule to fw4 on OpenWrt [bluewavenet] * Add - Set allow or passthrough mode for users_to_router rules [bluewavenet] * Fix - set fwhook default to disabled to prevent restart on hotplug event [bluewavenet] * Fix - fas-aes-https description comments [bluewavenet] * Fix - icon overspill on splash pages [bluewavenet] * Fix - missing config option in community script [bluewavenet] * Fix - urlencode handling of "$" character and add htmlentity encode/decode library call [bluewavenet] Signed-off-by: Rob White <rob@blue-wave.net>
2023-01-23 17:45:31 +01:00
PKG_VERSION:=9.10.0
opennds: Release v9.8.0 Maintainer: Rob White rob@blue-wave.net Compile tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, x86-64 Run tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, x86-64; on snapshot, 22.03 * This version adds new functionality, and fixes some issues * Fix - suppress stderr in client_params in generic linux [bluewavenet] * Fix - client_params on generic linux, remote logo not supported yet [bluewavenet] * Fix - compiler warning [bluewavenet] * Fix - set voucher script as executable [bluewavenet] * Update OpenWrt Makefile [bluewavenet] * Add - format footer in Themespec scripts [bluewavenet] * Update footer on all scripts [bluewavenet] * Update - Community Voucher Themespec [bluewavenet] * Add - Check on startup for Y2.038K bug (32 bit time) [bluewavenet] * Fix - Remove deprecated Debian specific files [bluewavenet] * Add - More css updates [bluewavenet] * Add - user friendly RFC8910 page511 text and remove refresh button [bluewavenet] * Fix - MHD becomes unresponsive serving page 511 for rfc8910 clients [bluewavenet] * Add - extra startup settings - ignore_sigpipe and write nds info [bluewavenet] * Add - set MHD connection limit to 100, set MHD listen backlog size to 128, set MHD_HTTP_HEADER_CONNECTION "close" [bluewavenet] * Fix - Add missing LOG_CRIT in debug [bluewavenet] * Add - some useful diagnostic output in authmon [bluewavenet] * Fix - Move testing to community [bluewavenet] * Fix - Community - Use tmpfs by default for vouchers.txt file [bluewavenet] * Add - README with use instructions and notice about flash wearout [fservida] * Fix - Refactor folder structure for community themespec [fservida] * Add - Create vouchers.txt [fservida] * Add - Create theme_voucher.sh [fservida] * Update - README.md [bluewavenet] * Add - image download info message [bluewavenet] * Add - css updates [dianariyanto] * Add - allow downloaded remotes refresh for all modes [bluewavenet] * Add - download_resources.sh to installed files [bluewavenet] * Add - support for download of custom images and files in the status.client page [bluewavenet] * Remove - Debian man page support [bluewavenet] * Fix - Add missing mkdir command in Makefile [dzatoah] * Fix - typos in src/{conf, main}.c [dzatoah] Signed-off-by: Rob White <rob@blue-wave.net>
2022-08-07 22:01:50 +02:00
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/opennds/opennds/tar.gz/v$(PKG_VERSION)?
opennds: Release v9.10.0 Maintainer: Rob White rob@blue-wave.net Compile tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, x86-64 Run tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, x86-64; on snapshot, 22.03 opennds (9.10.0) * This version adds new functionality, and fixes some issues * Fix - unable to read client upload traffic volume on some versions of iptables-nft (generic Linux) [bluewavenet] * Fix - compatibility with bash shell on generic Linux [bluewavenet] * Fix - compiler warning, unused variable [bluewavenet] * Fix - silently continue if fw4 table is not found [bluewavenet] * Add - Start daemon earlier on boot [bluewavenet] * Fix - compatibility with legacy iptables packages [bluewavenet] * Add - call to delete nft chains [bluewavenet] * Fix - stop using legacy INPUT and FORWARD chains [bluewavenet] * Add - watchdog restart if openNDS nftables ruleset is missing [bluewavenet] * Add - automated rule setting/deleting for users_to_router [bluewavenet] * Add - Change fwhook to add users to router rule to fw4 on OpenWrt [bluewavenet] * Add - Set allow or passthrough mode for users_to_router rules [bluewavenet] * Fix - set fwhook default to disabled to prevent restart on hotplug event [bluewavenet] * Fix - fas-aes-https description comments [bluewavenet] * Fix - icon overspill on splash pages [bluewavenet] * Fix - missing config option in community script [bluewavenet] * Fix - urlencode handling of "$" character and add htmlentity encode/decode library call [bluewavenet] Signed-off-by: Rob White <rob@blue-wave.net>
2023-01-23 17:45:31 +01:00
PKG_HASH:=0508a52ea6b2a18365ae071c623f923680bb926605f7b0678f14ea58bbfb2aba
PKG_BUILD_DIR:=$(BUILD_DIR)/openNDS-$(PKG_VERSION)
PKG_MAINTAINER:=Rob White <rob@blue-wave.net>
PKG_LICENSE:=GPL-2.0-or-later
PKG_LICENSE_FILES:=COPYING
PKG_FIXUP:=autoreconf
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/opennds
SUBMENU:=Captive Portals
SECTION:=net
CATEGORY:=Network
DEPENDS:=+iptables-nft +kmod-ipt-conntrack +kmod-ipt-nat +libmicrohttpd-no-ssl
TITLE:=Open public network gateway daemon
URL:=https://github.com/opennds/opennds
opennds: Release v9.8.0 Maintainer: Rob White rob@blue-wave.net Compile tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, x86-64 Run tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, x86-64; on snapshot, 22.03 * This version adds new functionality, and fixes some issues * Fix - suppress stderr in client_params in generic linux [bluewavenet] * Fix - client_params on generic linux, remote logo not supported yet [bluewavenet] * Fix - compiler warning [bluewavenet] * Fix - set voucher script as executable [bluewavenet] * Update OpenWrt Makefile [bluewavenet] * Add - format footer in Themespec scripts [bluewavenet] * Update footer on all scripts [bluewavenet] * Update - Community Voucher Themespec [bluewavenet] * Add - Check on startup for Y2.038K bug (32 bit time) [bluewavenet] * Fix - Remove deprecated Debian specific files [bluewavenet] * Add - More css updates [bluewavenet] * Add - user friendly RFC8910 page511 text and remove refresh button [bluewavenet] * Fix - MHD becomes unresponsive serving page 511 for rfc8910 clients [bluewavenet] * Add - extra startup settings - ignore_sigpipe and write nds info [bluewavenet] * Add - set MHD connection limit to 100, set MHD listen backlog size to 128, set MHD_HTTP_HEADER_CONNECTION "close" [bluewavenet] * Fix - Add missing LOG_CRIT in debug [bluewavenet] * Add - some useful diagnostic output in authmon [bluewavenet] * Fix - Move testing to community [bluewavenet] * Fix - Community - Use tmpfs by default for vouchers.txt file [bluewavenet] * Add - README with use instructions and notice about flash wearout [fservida] * Fix - Refactor folder structure for community themespec [fservida] * Add - Create vouchers.txt [fservida] * Add - Create theme_voucher.sh [fservida] * Update - README.md [bluewavenet] * Add - image download info message [bluewavenet] * Add - css updates [dianariyanto] * Add - allow downloaded remotes refresh for all modes [bluewavenet] * Add - download_resources.sh to installed files [bluewavenet] * Add - support for download of custom images and files in the status.client page [bluewavenet] * Remove - Debian man page support [bluewavenet] * Fix - Add missing mkdir command in Makefile [dzatoah] * Fix - typos in src/{conf, main}.c [dzatoah] Signed-off-by: Rob White <rob@blue-wave.net>
2022-08-07 22:01:50 +02:00
CONFLICTS:=nodogsplash
endef
define Package/opennds/description
opennds: Release v9.9.0 Maintainer: Rob White rob@blue-wave.net Compile tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, x86-64 Run tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, x86-64; on snapshot, 22.03 opennds (9.9.0) * This version adds new functionality, and fixes some issues * Add - Community ThemeSpec to support legacy splash.html [bluewavenet] * Fix - ensure nat_traversal_poll_interval defaults to 10 seconds [bluewavenet] * Add - process send_to_fas_deauthed and send_to_fas_custom in fas-aes-https [bluewavenet] * Add - support for send_to_fas_deauthed library call in binauth_log.sh [bluewavenet] * Add - heartbeat file containing timestamp [bluewavenet] * Add - send_to_fas_deauthed and send_to_fas_custom library calls [bluewavenet] * Add - Save authmon daemon startup arguments for libopennds [bluewavenet] * Fix - potential divide by zero errors [bluewavenet] * Add - option nat_traversal_poll_interval [bluewavenet] * Add - Library calls for urlencode and urldecode[bluewavenet] * Fix - Don't download remotes if ThemeSpec not configured [bluewavenet] * Add - Error report in syslog if dhcp database is not found [bluewavenet] * Add - library calls, deauth and daemon_deauth [bluewavenet] * Fix - change WTERMSIG log from WARNING to NOTICE [bluewavenet] * Add - Set minimum bucket size to 5 regardless of configured bucket ratio [bluewavenet] * Fix - safe_vasprint return value [bluewavenet] * Add - test if safe_calloc failed and serve error 503 [bluewavenet] * Add - use calloc instead of malloc[bluewavenet] * fix - safe functions to return error rather than exit [bluewavenet] * Add - b64decode custom string received by binauth script [bluewavenet] Signed-off-by: Rob White <rob@blue-wave.net>
2022-10-09 14:32:45 +02:00
openNDS (open Network Demarcation Service) is a high performance, small footprint, Captive Portal.
It provides a border control gateway between a public local area network and the Internet.
It supports all scenarios ranging from small stand alone venues through to large mesh networks with multiple portal entry points.
Both the client driven Captive Portal Detection method (CPD) and gateway driven Captive Portal Identification method (CPI - RFC 8910 and RFC 8908) are supported.
This version requires iptables-nft.
endef
define Package/opennds/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/opennds $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ndsctl $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc/opennds/htdocs/images
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_DIR) $(1)/usr/lib/opennds
$(CP) $(PKG_BUILD_DIR)/resources/splash.css $(1)/etc/opennds/htdocs/
$(CP) $(PKG_BUILD_DIR)/resources/splash.jpg $(1)/etc/opennds/htdocs/images/
opennds: Release 8.0.0 This version introduces major new functionality and some major changes * Rationalisation of support for multiple Linux distributions [bluewavenet] * Refactor login.sh script introducing base64 encoding and hashed token (hid) support [bluewavenet] * Refactor fas-hid script introducing base64 encoding and simplifying customisation of the script [bluewavenet] * Refactor binauth_log.sh and log BinAuth custom data as url encoded [bluewavenet] * Refactor fas-aes, simplifying customisation of the script [bluewavenet] * Refactor fas-aes-https, simplifying customisation of the script [bluewavenet] * Change - Use hid instead of tok when fas_secure_enabled >= 1 [bluewavenet] * Add - base64 encoding to fas_secure_enabled level 1 [bluewavenet] * Add - gatewyname, clientif, session_start, session_end and last_active to ndsctl json [bluewavenet] * Add - support for RFC6585 Status Code 511 - Network Authentication Required [bluewavenet] * Add - Client Status Page UI with Logout [bluewavenet] * Add - GatewayFQDN option [bluewavenet] * Add - client interface to status page query string [bluewavenet] * Add - support using base 64 encoded custom string for BinAuth and replace tok with hid [bluewavenet] * Add - base 64 decode option to ndsctl [bluewavenet] * Add - b64 encoding of querystring for level 1 [bluewavenet] * Add - Improved performance/user-experience on congested/slow systems using php FAS scripts [bluewavenet] * Add - support for ndsctl auth by hid in client_list [bluewavenet] * Add - Ensure faskey is set to default value (always enabled) [bluewavenet] * Add - Display error page on login failure in login.sh [bluewavenet] * Add - splash.html, add deprecation notice [bluewavenet] * Add - authmon, improved lock checking and introduce smaller loopinterval [bluewavenet] * Add - client_params, wait for ndsctl if it is busy [bluewavenet] * Add - fas-aes-https, allow progressive output to improve user experience on slow links [bluewavenet] * Fix - Block access to /opennds_preauth/ if PreAuth not enabled [bluewavenet] * Fix - On startup, call iptables_fw_destroy before doing any other setup [bluewavenet] * Fix - missing final redirect to originurl in fas-hid [bluewavenet] * Fix - ensure gatewayname is always urlencoded [bluewavenet] * Fix - client session end not set by binauth [bluewavenet] * Fix - Session timeout, if client setting is 0, default to global value [bluewavenet] * Fix - missing trailing separator on query and fix some compiler errors [bluewavenet] * Fix - ensure authmon daemon is killed if left running from previous crash [bluewavenet] * Fix - add missing query separator for custom FAS parameters [bluewavenet] * Fix - ndsctl auth, do not set quotas if client is already authenticated [bluewavenet] * Fix - client_params, show "Unlimited" when "null" is received from ndsctl json [bluewavenet] * Update configuration files [bluewavenet] * update documentation [bluewavenet] Signed-off-by: Rob White <rob@blue-wave.net>
2021-01-08 22:01:24 +01:00
$(CP) $(PKG_BUILD_DIR)/linux_openwrt/opennds/files/etc/config/opennds $(1)/etc/config/
$(CP) $(PKG_BUILD_DIR)/linux_openwrt/opennds/files/etc/config/opennds $(1)/etc/opennds/config.uci
opennds: Release 8.0.0 This version introduces major new functionality and some major changes * Rationalisation of support for multiple Linux distributions [bluewavenet] * Refactor login.sh script introducing base64 encoding and hashed token (hid) support [bluewavenet] * Refactor fas-hid script introducing base64 encoding and simplifying customisation of the script [bluewavenet] * Refactor binauth_log.sh and log BinAuth custom data as url encoded [bluewavenet] * Refactor fas-aes, simplifying customisation of the script [bluewavenet] * Refactor fas-aes-https, simplifying customisation of the script [bluewavenet] * Change - Use hid instead of tok when fas_secure_enabled >= 1 [bluewavenet] * Add - base64 encoding to fas_secure_enabled level 1 [bluewavenet] * Add - gatewyname, clientif, session_start, session_end and last_active to ndsctl json [bluewavenet] * Add - support for RFC6585 Status Code 511 - Network Authentication Required [bluewavenet] * Add - Client Status Page UI with Logout [bluewavenet] * Add - GatewayFQDN option [bluewavenet] * Add - client interface to status page query string [bluewavenet] * Add - support using base 64 encoded custom string for BinAuth and replace tok with hid [bluewavenet] * Add - base 64 decode option to ndsctl [bluewavenet] * Add - b64 encoding of querystring for level 1 [bluewavenet] * Add - Improved performance/user-experience on congested/slow systems using php FAS scripts [bluewavenet] * Add - support for ndsctl auth by hid in client_list [bluewavenet] * Add - Ensure faskey is set to default value (always enabled) [bluewavenet] * Add - Display error page on login failure in login.sh [bluewavenet] * Add - splash.html, add deprecation notice [bluewavenet] * Add - authmon, improved lock checking and introduce smaller loopinterval [bluewavenet] * Add - client_params, wait for ndsctl if it is busy [bluewavenet] * Add - fas-aes-https, allow progressive output to improve user experience on slow links [bluewavenet] * Fix - Block access to /opennds_preauth/ if PreAuth not enabled [bluewavenet] * Fix - On startup, call iptables_fw_destroy before doing any other setup [bluewavenet] * Fix - missing final redirect to originurl in fas-hid [bluewavenet] * Fix - ensure gatewayname is always urlencoded [bluewavenet] * Fix - client session end not set by binauth [bluewavenet] * Fix - Session timeout, if client setting is 0, default to global value [bluewavenet] * Fix - missing trailing separator on query and fix some compiler errors [bluewavenet] * Fix - ensure authmon daemon is killed if left running from previous crash [bluewavenet] * Fix - add missing query separator for custom FAS parameters [bluewavenet] * Fix - ndsctl auth, do not set quotas if client is already authenticated [bluewavenet] * Fix - client_params, show "Unlimited" when "null" is received from ndsctl json [bluewavenet] * Update configuration files [bluewavenet] * update documentation [bluewavenet] Signed-off-by: Rob White <rob@blue-wave.net>
2021-01-08 22:01:24 +01:00
$(CP) $(PKG_BUILD_DIR)/linux_openwrt/opennds/files/etc/init.d/opennds $(1)/etc/init.d/
$(CP) $(PKG_BUILD_DIR)/linux_openwrt/opennds/files/etc/uci-defaults/40_opennds $(1)/etc/uci-defaults/
$(CP) $(PKG_BUILD_DIR)/linux_openwrt/opennds/files/usr/lib/opennds/restart.sh $(1)/usr/lib/opennds/
opennds: Release v5.1.0 Maintainer: Rob White <rob@blue-wave.net> Compiled and tested using snapshot SDK for mipsel_24kc, mips_24kc and arm_cortex-a7_neon-vfpv4 OpenNDS v5.1.0 release This release adds major functionality and provides numerous fixes: Data Rate and Data Volume Quotas are implemented. BinAuth / fas_secure_enabled level 3 compatibility is implemented. Page fault and crash when ndsctl auth is called and client not found has been fixed. From the ChangeLog: * Add - Generic Linux - install opennds.service [bluewavenet] * Add - Documentation updates [bluewavenet] * Add - config file updates [bluewavenet] * Add - Install sitewide username/password splash support files [bluewavenet] * Add - quotas to binauth_sitewide [bluewavenet] * Add - Splash page updates [bluewavenet] * Add - Implement Rate Quotas [bluewavenet] * Fix - check if idle preauthenticated [bluewavenet] * Add - support for rate quotas [bluewavenet] * Fix - Correctly compare client counters and clean up debuglevel messages [bluewavenet] * Add - Implement upload/download quotas Update fas-aes-https to support quotas [bluewavenet] * Add - Rename demo-preauth scripts and install all scripts [bluewavenet] * Add - fas-aes-https layout update [bluewavenet] * Add - Set some defaults in fas-aes-https [bluewavenet] * Add - custom data string to ndsctl auth [bluewavenet] * Add - custom data string to fas-hid.php [bluewavenet] * Add - Send custom data field to BinAuth via auth_client method [bluewavenet] * Fix - missing token value in auth_client [bluewavenet] * Add - upload/download quota and rate configuration values [bluewavenet] * Add - Send client token to binauth [bluewavenet] * Add - Rename upload_limit and download_limit to upload_rate and download_rate [bluewavenet] * Fix - Pass correct session end time to binauth [bluewavenet] * Add - some debuglevel 3 messages [bluewavenet] * Add - description of the favicon and page footer images [bluewavenet] * Add - Authmon collect authentication parameters from fas-aes-https [bluewavenet] * Add - sessionlength to ndsctl auth [bluewavenet] * Fix - Page fault when ndsctl auth is called and client not found [bluewavenet] * Add - Enable BinAuth / fas_secure_enabled level 3 compatibility [bluewavenet] * Fix - Correctly set BinAuth session_end [bluewavenet] * Add - Updates to Templated Splash pages [bluewavenet] * Add - Community Testing files [bluewavenet] * Fix - BinAuth error passing client session times [bluewavenet] * Fix - PHP notice - undefined constant [bluewavenet] * Fix - OpenWrt CONFLICTS variable in Makefile [bluewavenet] Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-25 21:31:06 +02:00
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/binauth/binauth_log.sh $(1)/usr/lib/opennds/
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/libopennds.sh $(1)/usr/lib/opennds/
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/PreAuth/theme_click-to-continue-basic.sh $(1)/usr/lib/opennds/
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/PreAuth/theme_click-to-continue-custom-placeholders.sh $(1)/usr/lib/opennds/
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/PreAuth/theme_user-email-login-basic.sh $(1)/usr/lib/opennds/
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/PreAuth/theme_user-email-login-custom-placeholders.sh $(1)/usr/lib/opennds/
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/get_client_interface.sh $(1)/usr/lib/opennds/
opennds: Release 8.0.0 This version introduces major new functionality and some major changes * Rationalisation of support for multiple Linux distributions [bluewavenet] * Refactor login.sh script introducing base64 encoding and hashed token (hid) support [bluewavenet] * Refactor fas-hid script introducing base64 encoding and simplifying customisation of the script [bluewavenet] * Refactor binauth_log.sh and log BinAuth custom data as url encoded [bluewavenet] * Refactor fas-aes, simplifying customisation of the script [bluewavenet] * Refactor fas-aes-https, simplifying customisation of the script [bluewavenet] * Change - Use hid instead of tok when fas_secure_enabled >= 1 [bluewavenet] * Add - base64 encoding to fas_secure_enabled level 1 [bluewavenet] * Add - gatewyname, clientif, session_start, session_end and last_active to ndsctl json [bluewavenet] * Add - support for RFC6585 Status Code 511 - Network Authentication Required [bluewavenet] * Add - Client Status Page UI with Logout [bluewavenet] * Add - GatewayFQDN option [bluewavenet] * Add - client interface to status page query string [bluewavenet] * Add - support using base 64 encoded custom string for BinAuth and replace tok with hid [bluewavenet] * Add - base 64 decode option to ndsctl [bluewavenet] * Add - b64 encoding of querystring for level 1 [bluewavenet] * Add - Improved performance/user-experience on congested/slow systems using php FAS scripts [bluewavenet] * Add - support for ndsctl auth by hid in client_list [bluewavenet] * Add - Ensure faskey is set to default value (always enabled) [bluewavenet] * Add - Display error page on login failure in login.sh [bluewavenet] * Add - splash.html, add deprecation notice [bluewavenet] * Add - authmon, improved lock checking and introduce smaller loopinterval [bluewavenet] * Add - client_params, wait for ndsctl if it is busy [bluewavenet] * Add - fas-aes-https, allow progressive output to improve user experience on slow links [bluewavenet] * Fix - Block access to /opennds_preauth/ if PreAuth not enabled [bluewavenet] * Fix - On startup, call iptables_fw_destroy before doing any other setup [bluewavenet] * Fix - missing final redirect to originurl in fas-hid [bluewavenet] * Fix - ensure gatewayname is always urlencoded [bluewavenet] * Fix - client session end not set by binauth [bluewavenet] * Fix - Session timeout, if client setting is 0, default to global value [bluewavenet] * Fix - missing trailing separator on query and fix some compiler errors [bluewavenet] * Fix - ensure authmon daemon is killed if left running from previous crash [bluewavenet] * Fix - add missing query separator for custom FAS parameters [bluewavenet] * Fix - ndsctl auth, do not set quotas if client is already authenticated [bluewavenet] * Fix - client_params, show "Unlimited" when "null" is received from ndsctl json [bluewavenet] * Update configuration files [bluewavenet] * update documentation [bluewavenet] Signed-off-by: Rob White <rob@blue-wave.net>
2021-01-08 22:01:24 +01:00
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/client_params.sh $(1)/usr/lib/opennds/
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/unescape.sh $(1)/usr/lib/opennds/
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/authmon.sh $(1)/usr/lib/opennds/
opennds: Release 8.0.0 This version introduces major new functionality and some major changes * Rationalisation of support for multiple Linux distributions [bluewavenet] * Refactor login.sh script introducing base64 encoding and hashed token (hid) support [bluewavenet] * Refactor fas-hid script introducing base64 encoding and simplifying customisation of the script [bluewavenet] * Refactor binauth_log.sh and log BinAuth custom data as url encoded [bluewavenet] * Refactor fas-aes, simplifying customisation of the script [bluewavenet] * Refactor fas-aes-https, simplifying customisation of the script [bluewavenet] * Change - Use hid instead of tok when fas_secure_enabled >= 1 [bluewavenet] * Add - base64 encoding to fas_secure_enabled level 1 [bluewavenet] * Add - gatewyname, clientif, session_start, session_end and last_active to ndsctl json [bluewavenet] * Add - support for RFC6585 Status Code 511 - Network Authentication Required [bluewavenet] * Add - Client Status Page UI with Logout [bluewavenet] * Add - GatewayFQDN option [bluewavenet] * Add - client interface to status page query string [bluewavenet] * Add - support using base 64 encoded custom string for BinAuth and replace tok with hid [bluewavenet] * Add - base 64 decode option to ndsctl [bluewavenet] * Add - b64 encoding of querystring for level 1 [bluewavenet] * Add - Improved performance/user-experience on congested/slow systems using php FAS scripts [bluewavenet] * Add - support for ndsctl auth by hid in client_list [bluewavenet] * Add - Ensure faskey is set to default value (always enabled) [bluewavenet] * Add - Display error page on login failure in login.sh [bluewavenet] * Add - splash.html, add deprecation notice [bluewavenet] * Add - authmon, improved lock checking and introduce smaller loopinterval [bluewavenet] * Add - client_params, wait for ndsctl if it is busy [bluewavenet] * Add - fas-aes-https, allow progressive output to improve user experience on slow links [bluewavenet] * Fix - Block access to /opennds_preauth/ if PreAuth not enabled [bluewavenet] * Fix - On startup, call iptables_fw_destroy before doing any other setup [bluewavenet] * Fix - missing final redirect to originurl in fas-hid [bluewavenet] * Fix - ensure gatewayname is always urlencoded [bluewavenet] * Fix - client session end not set by binauth [bluewavenet] * Fix - Session timeout, if client setting is 0, default to global value [bluewavenet] * Fix - missing trailing separator on query and fix some compiler errors [bluewavenet] * Fix - ensure authmon daemon is killed if left running from previous crash [bluewavenet] * Fix - add missing query separator for custom FAS parameters [bluewavenet] * Fix - ndsctl auth, do not set quotas if client is already authenticated [bluewavenet] * Fix - client_params, show "Unlimited" when "null" is received from ndsctl json [bluewavenet] * Update configuration files [bluewavenet] * update documentation [bluewavenet] Signed-off-by: Rob White <rob@blue-wave.net>
2021-01-08 22:01:24 +01:00
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/dnsconfig.sh $(1)/usr/lib/opennds/
opennds: Release v9.8.0 Maintainer: Rob White rob@blue-wave.net Compile tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, x86-64 Run tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, x86-64; on snapshot, 22.03 * This version adds new functionality, and fixes some issues * Fix - suppress stderr in client_params in generic linux [bluewavenet] * Fix - client_params on generic linux, remote logo not supported yet [bluewavenet] * Fix - compiler warning [bluewavenet] * Fix - set voucher script as executable [bluewavenet] * Update OpenWrt Makefile [bluewavenet] * Add - format footer in Themespec scripts [bluewavenet] * Update footer on all scripts [bluewavenet] * Update - Community Voucher Themespec [bluewavenet] * Add - Check on startup for Y2.038K bug (32 bit time) [bluewavenet] * Fix - Remove deprecated Debian specific files [bluewavenet] * Add - More css updates [bluewavenet] * Add - user friendly RFC8910 page511 text and remove refresh button [bluewavenet] * Fix - MHD becomes unresponsive serving page 511 for rfc8910 clients [bluewavenet] * Add - extra startup settings - ignore_sigpipe and write nds info [bluewavenet] * Add - set MHD connection limit to 100, set MHD listen backlog size to 128, set MHD_HTTP_HEADER_CONNECTION "close" [bluewavenet] * Fix - Add missing LOG_CRIT in debug [bluewavenet] * Add - some useful diagnostic output in authmon [bluewavenet] * Fix - Move testing to community [bluewavenet] * Fix - Community - Use tmpfs by default for vouchers.txt file [bluewavenet] * Add - README with use instructions and notice about flash wearout [fservida] * Fix - Refactor folder structure for community themespec [fservida] * Add - Create vouchers.txt [fservida] * Add - Create theme_voucher.sh [fservida] * Update - README.md [bluewavenet] * Add - image download info message [bluewavenet] * Add - css updates [dianariyanto] * Add - allow downloaded remotes refresh for all modes [bluewavenet] * Add - download_resources.sh to installed files [bluewavenet] * Add - support for download of custom images and files in the status.client page [bluewavenet] * Remove - Debian man page support [bluewavenet] * Fix - Add missing mkdir command in Makefile [dzatoah] * Fix - typos in src/{conf, main}.c [dzatoah] Signed-off-by: Rob White <rob@blue-wave.net>
2022-08-07 22:01:50 +02:00
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/download_resources.sh $(1)/usr/lib/opennds/
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/post-request.php $(1)/usr/lib/opennds/
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/fas-aes/fas-aes.php $(1)/etc/opennds/
opennds: Release v5.1.0 Maintainer: Rob White <rob@blue-wave.net> Compiled and tested using snapshot SDK for mipsel_24kc, mips_24kc and arm_cortex-a7_neon-vfpv4 OpenNDS v5.1.0 release This release adds major functionality and provides numerous fixes: Data Rate and Data Volume Quotas are implemented. BinAuth / fas_secure_enabled level 3 compatibility is implemented. Page fault and crash when ndsctl auth is called and client not found has been fixed. From the ChangeLog: * Add - Generic Linux - install opennds.service [bluewavenet] * Add - Documentation updates [bluewavenet] * Add - config file updates [bluewavenet] * Add - Install sitewide username/password splash support files [bluewavenet] * Add - quotas to binauth_sitewide [bluewavenet] * Add - Splash page updates [bluewavenet] * Add - Implement Rate Quotas [bluewavenet] * Fix - check if idle preauthenticated [bluewavenet] * Add - support for rate quotas [bluewavenet] * Fix - Correctly compare client counters and clean up debuglevel messages [bluewavenet] * Add - Implement upload/download quotas Update fas-aes-https to support quotas [bluewavenet] * Add - Rename demo-preauth scripts and install all scripts [bluewavenet] * Add - fas-aes-https layout update [bluewavenet] * Add - Set some defaults in fas-aes-https [bluewavenet] * Add - custom data string to ndsctl auth [bluewavenet] * Add - custom data string to fas-hid.php [bluewavenet] * Add - Send custom data field to BinAuth via auth_client method [bluewavenet] * Fix - missing token value in auth_client [bluewavenet] * Add - upload/download quota and rate configuration values [bluewavenet] * Add - Send client token to binauth [bluewavenet] * Add - Rename upload_limit and download_limit to upload_rate and download_rate [bluewavenet] * Fix - Pass correct session end time to binauth [bluewavenet] * Add - some debuglevel 3 messages [bluewavenet] * Add - description of the favicon and page footer images [bluewavenet] * Add - Authmon collect authentication parameters from fas-aes-https [bluewavenet] * Add - sessionlength to ndsctl auth [bluewavenet] * Fix - Page fault when ndsctl auth is called and client not found [bluewavenet] * Add - Enable BinAuth / fas_secure_enabled level 3 compatibility [bluewavenet] * Fix - Correctly set BinAuth session_end [bluewavenet] * Add - Updates to Templated Splash pages [bluewavenet] * Add - Community Testing files [bluewavenet] * Fix - BinAuth error passing client session times [bluewavenet] * Fix - PHP notice - undefined constant [bluewavenet] * Fix - OpenWrt CONFLICTS variable in Makefile [bluewavenet] Signed-off-by: Rob White <rob@blue-wave.net>
2020-06-25 21:31:06 +02:00
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/fas-hid/fas-hid.php $(1)/etc/opennds/
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/fas-aes/fas-aes-https.php $(1)/etc/opennds/
endef
define Package/opennds/postrm
#!/bin/sh
uci delete firewall.opennds
uci commit firewall
endef
define Package/opennds/conffiles
/etc/config/opennds
endef
$(eval $(call BuildPackage,opennds))