-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Known devices #403
base: master
Are you sure you want to change the base?
Known devices #403
Commits on Nov 27, 2015
-
Remove UCIContainer.listOptions
The code has been simplified by replacing the use of UCIContain.listOptions with checks to see if (UCIContainer.value instanceof Array). Also bugs identified and fixed. Background. While implementing new functionality to store uci list values, problems were encountered. While UCIContainer.set() accomodated for uci list values using UCIContainer.listOptions, UCIContainer.getScriptCommands() did not refer to UCIContainer.listOptions and did not return the correct commands to set uci list values. While investigating and correcting this problem, various other corrections and simplifications were undertaken. UCIContainer.set() is recoded UCIContainer.listOptions is replaced with instanceof Array checks UCIContainer.values is declared as an Object rather than an Array UCIContainer.clone() corrected clone of Array values
Configuration menu - View commit details
-
Copy full SHA for fe38cc7 - Browse repository at this point
Copy the full SHA fe38cc7View commit details
Commits on Nov 28, 2015
-
Configuration menu - View commit details
-
Copy full SHA for a129734 - Browse repository at this point
Copy the full SHA a129734View commit details
Commits on Nov 29, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 7df3c0c - Browse repository at this point
Copy the full SHA 7df3c0cView commit details
Commits on Nov 30, 2015
-
The code has been made more simple and robust by removing the need to maintain keys separately. The use of keys[] has been replaced by tests on values.hasOwnProperty(key) as recommended at: http://stackoverflow.com/questions/11040472/check-if-object-property- exists-using-a-variable#11040508
Configuration menu - View commit details
-
Copy full SHA for 92a0def - Browse repository at this point
Copy the full SHA 92a0defView commit details
Commits on Dec 1, 2015
-
The code has been made more simple and robust by removing the need to maintain keys separately. The use of keys[] has been replaced by tests on values.hasOwnProperty(key) as recommended at: http://stackoverflow.com/questions/11040472/check-if-object-property- exists-using-a-variable#11040508
Configuration menu - View commit details
-
Copy full SHA for c41a186 - Browse repository at this point
Copy the full SHA c41a186View commit details
Commits on Dec 2, 2015
-
Rough-cut Device Group implementation
device.sh is implemented to enable DeviceNames to be associated with one or more MACs, and to enable DeviceNames to be assigned to Device Groups.
Configuration menu - View commit details
-
Copy full SHA for 30aaad8 - Browse repository at this point
Copy the full SHA 30aaad8View commit details -
completed the initial i18n implementation in devices.sh
Configuration menu - View commit details
-
Copy full SHA for 66952b8 - Browse repository at this point
Copy the full SHA 66952b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00e00fb - Browse repository at this point
Copy the full SHA 00e00fbView commit details -
Implement SaveChanges & validate GroupName
rename SelectMAC validate GroupName implement Save Changes to uci
Configuration menu - View commit details
-
Copy full SHA for 2333052 - Browse repository at this point
Copy the full SHA 2333052View commit details -
would have been nice if a extra } at the end of .js would generate a warning!
Configuration menu - View commit details
-
Copy full SHA for b67a125 - Browse repository at this point
Copy the full SHA b67a125View commit details -
Configuration menu - View commit details
-
Copy full SHA for efae785 - Browse repository at this point
Copy the full SHA efae785View commit details
Commits on Dec 3, 2015
-
Configuration menu - View commit details
-
Copy full SHA for f1829c4 - Browse repository at this point
Copy the full SHA f1829c4View commit details -
Merge branch 'known-devices' of http://github.com/nworbnhoj/gargoyle …
…into known-devices
Configuration menu - View commit details
-
Copy full SHA for a3ae34c - Browse repository at this point
Copy the full SHA a3ae34cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad9eda6 - Browse repository at this point
Copy the full SHA ad9eda6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99a10fe - Browse repository at this point
Copy the full SHA 99a10feView commit details
Commits on Dec 4, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 45eb832 - Browse repository at this point
Copy the full SHA 45eb832View commit details -
Configuration menu - View commit details
-
Copy full SHA for 403d641 - Browse repository at this point
Copy the full SHA 403d641View commit details -
- various js tidy-up and bug fix - correct device lable - css layout for device & group table columns
Configuration menu - View commit details
-
Copy full SHA for 5ef607b - Browse repository at this point
Copy the full SHA 5ef607bView commit details
Commits on Dec 5, 2015
-
Implement Edit & Remove Buttons
The Edit Button is done a little differently than std Gargoyle. In std Gargoyle the Edit Button pops up and populates a form for editing. Here, the Edited Row is Removed and the fields in the ADD form are populated with the existing info so that the user can adjust and re-add. This approach seems intuitive for the User and makes the JS code simpler and smaller. If editing a really large table then the User may be confused when the row dissapears while not being able to see the Add Row at the top?
Configuration menu - View commit details
-
Copy full SHA for 7469eb6 - Browse repository at this point
Copy the full SHA 7469eb6View commit details
Commits on Dec 6, 2015
-
Integrate Device Groups into Quotas page
The Gagoyle admin can use a Device Group to define a Quota by selecting "Only the following Host(s) and providing an IP, or IP range, or a Device Group. The Group can be selected or entered manually and it is validated an saved thru the existing processes. The Device Group MACs are included in the validation to avoid quota overlaps involving MACs. To integrate the MACs validation, the groupsValid parameter was added to the function addAddressStringToTable() and this cascaded small adjustments to other JavaScript files which called this function.
Configuration menu - View commit details
-
Copy full SHA for 434387a - Browse repository at this point
Copy the full SHA 434387aView commit details
Commits on Dec 10, 2015
-
Configuration menu - View commit details
-
Copy full SHA for b523cba - Browse repository at this point
Copy the full SHA b523cbaView commit details -
Implement ipsets for Device Groups
Each Device Group is reflected by an ipset of the same name. The ipset is utilised in iptables to implement quota policy for a Device Group. IP addresses are added and deleted from ipsets when a new dhcp lease is assigned by setting dhcp.dnsmasq.dhcp_script
Configuration menu - View commit details
-
Copy full SHA for 5bf6f4a - Browse repository at this point
Copy the full SHA 5bf6f4aView commit details -
The dnsmasq dhcp-script is not available thru OpenWRT uci but it is possible to suppliment the uci settings with /etc/dnsmasq.conf https://wiki.openwrt.org/doc/uci/dhcp?&#using_plain_dnsmasqconf
Configuration menu - View commit details
-
Copy full SHA for 4b6fb90 - Browse repository at this point
Copy the full SHA 4b6fb90View commit details -
Configuration menu - View commit details
-
Copy full SHA for 03a93d9 - Browse repository at this point
Copy the full SHA 03a93d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ed0a79 - Browse repository at this point
Copy the full SHA 3ed0a79View commit details -
Improve refresh of Tables & Selects
- Reset all tables & selects after Save - Add new Devices & Groups to Select Options while editing
Configuration menu - View commit details
-
Copy full SHA for 67ac871 - Browse repository at this point
Copy the full SHA 67ac871View commit details
Commits on Dec 11, 2015
-
Configuration menu - View commit details
-
Copy full SHA for e97058a - Browse repository at this point
Copy the full SHA e97058aView commit details
Commits on Dec 15, 2015
-
Configuration menu - View commit details
-
Copy full SHA for c53e308 - Browse repository at this point
Copy the full SHA c53e308View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5adb55 - Browse repository at this point
Copy the full SHA b5adb55View commit details
Commits on Dec 16, 2015
-
Only first Quota assigned to a Device Group was being translated into iptable rules. Fixed
Configuration menu - View commit details
-
Copy full SHA for 20a6974 - Browse repository at this point
Copy the full SHA 20a6974View commit details -
Merge branch 'known-devices' of http://github.com/nworbnhoj/gargoyle …
…into known-devices
Configuration menu - View commit details
-
Copy full SHA for a476848 - Browse repository at this point
Copy the full SHA a476848View commit details -
Configuration menu - View commit details
-
Copy full SHA for 376063d - Browse repository at this point
Copy the full SHA 376063dView commit details
Commits on Dec 18, 2015
-
Implement Device Groups into Firewall Restrictions
Gargoyle Firewall Access Restrictions & Whitelist can now accept Device Groups A number of functions were broken out from restore_quotas.c into a new file uci-util.c to make them available to make_iptable_rules.c. This also required a change to the Makefile and uci_util.h The uci_context was introduced as a parameter to a number of functions in make_iptable_rules.c to ensure only a single call to uci_alloc_context(). function resetGroupsOptions() was moved from quotas.js to common.js to make it readily available across Gargoyle GUI.
Configuration menu - View commit details
-
Copy full SHA for 6bc349a - Browse repository at this point
Copy the full SHA 6bc349aView commit details -
Duplicate (or improved) versions of these functions exist in common.js
Configuration menu - View commit details
-
Copy full SHA for bd5fddc - Browse repository at this point
Copy the full SHA bd5fddcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a94a5f - Browse repository at this point
Copy the full SHA 2a94a5fView commit details
Commits on Dec 19, 2015
-
Implement Device Groups for QoS
Gargoyle QoS Classification rules can now accept Device Groups
Configuration menu - View commit details
-
Copy full SHA for fb0b5c9 - Browse repository at this point
Copy the full SHA fb0b5c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3745514 - Browse repository at this point
Copy the full SHA 3745514View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b866da - Browse repository at this point
Copy the full SHA 5b866daView commit details -
Merge branch 'master' of https://github.com/ericpaulbishop/gargoyle i…
…nto known-devices
Configuration menu - View commit details
-
Copy full SHA for ae08937 - Browse repository at this point
Copy the full SHA ae08937View commit details
Commits on Jan 1, 2016
-
Merge branch 'master' of https://github.com/ericpaulbishop/gargoyle i…
…nto known-devices
Configuration menu - View commit details
-
Copy full SHA for 1d6f1bc - Browse repository at this point
Copy the full SHA 1d6f1bcView commit details
Commits on Jan 7, 2016
-
Merge branch 'known-devices' of https://github.com/nworbnhoj/gargoyle …
…into known-devices
Configuration menu - View commit details
-
Copy full SHA for be62450 - Browse repository at this point
Copy the full SHA be62450View commit details
Commits on Jan 10, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 1c21f95 - Browse repository at this point
Copy the full SHA 1c21f95View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9540eaa - Browse repository at this point
Copy the full SHA 9540eaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 35718cd - Browse repository at this point
Copy the full SHA 35718cdView commit details -
Merge branch 'master' of https://github.com/ericpaulbishop/gargoyle i…
…nto known-devices
Configuration menu - View commit details
-
Copy full SHA for 74237e7 - Browse repository at this point
Copy the full SHA 74237e7View commit details
Commits on Jan 14, 2016
-
Replace StaticIP fieldset with Known Devices Fieldset
The Known Devices fieldset can associate a host name with a MAC address and optionally assign a static IP address
Configuration menu - View commit details
-
Copy full SHA for 710d575 - Browse repository at this point
Copy the full SHA 710d575View commit details -
Configuration menu - View commit details
-
Copy full SHA for 44d6498 - Browse repository at this point
Copy the full SHA 44d6498View commit details
Commits on Jan 15, 2016
-
Remove redundant entries from hosts and ethers
The Known Devices table is populated with entries from uci and from /etc/ethers & /etc/hosts. When the user Saves Changes then all devices are saved into uci and /etc/ethers & /etc/hosts are recreated without redundant entries.
Configuration menu - View commit details
-
Copy full SHA for 6747567 - Browse repository at this point
Copy the full SHA 6747567View commit details
Commits on Jan 20, 2016
-
Add a UCI dnsmasq networkid for each Device Group
An OpenWRT patch is backported to "Allow UCI dhcp classifier to accept a list of MAC" https://patchwork.ozlabs.org/patch/569678/ Recording each Device Group additionally as a uci dhcp mac classifier enables the utilization of the dnsmasq --dhcp-option and makes 3 functions in common.js redundant. https://wiki.openwrt.org/doc/uci/dhcp#classifying_clients_and_assigning_individual_options http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html
Configuration menu - View commit details
-
Copy full SHA for 5f5f543 - Browse repository at this point
Copy the full SHA 5f5f543View commit details
Commits on Jan 22, 2016
-
Retrieve WOL candidates from uci
Potential Wake On Lan hosts are now drawn from the uci system first before drawing from arp, dhcp.leases and ethers
Configuration menu - View commit details
-
Copy full SHA for 4327503 - Browse repository at this point
Copy the full SHA 4327503View commit details
Commits on Jan 23, 2016
-
Merge branch 'master' of https://github.com/ericpaulbishop/gargoyle i…
…nto known-devices resolved conflicts: package/gargoyle/files/www/js/dhcp.js
Configuration menu - View commit details
-
Copy full SHA for dbe7b60 - Browse repository at this point
Copy the full SHA dbe7b60View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cfc235 - Browse repository at this point
Copy the full SHA 8cfc235View commit details
Commits on Jan 24, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 2e8c85b - Browse repository at this point
Copy the full SHA 2e8c85bView commit details
Commits on Jan 26, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 96a1399 - Browse repository at this point
Copy the full SHA 96a1399View commit details
Commits on Feb 8, 2016
-
Show valid characters for Device and Group names
The restiction on the Device and Group names are different (based on uci and ipset respectively) and a little confusing so it is important to guide the user.
Configuration menu - View commit details
-
Copy full SHA for eb8d437 - Browse repository at this point
Copy the full SHA eb8d437View commit details
Commits on Feb 11, 2016
-
Simplified Chinese Translations for Known Devices & Groups
thank you ericwong
Configuration menu - View commit details
-
Copy full SHA for 256923f - Browse repository at this point
Copy the full SHA 256923fView commit details
Commits on Feb 28, 2016
-
Merge branch 'master' of https://github.com/ericpaulbishop/gargoyle i…
…nto known-devices Resolved Conflicts: package/plugin-gargoyle-i18n-English-EN/files/www/i18n/English- EN/strings.js
Configuration menu - View commit details
-
Copy full SHA for c215bf4 - Browse repository at this point
Copy the full SHA c215bf4View commit details
Commits on Mar 2, 2016
-
Merge branch 'master' of https://github.com/ericpaulbishop/gargoyle i…
…nto known-devices Resolved Conflicts: package/gargoyle/files/www/dhcp.sh package/gargoyle/files/www/js/common.js package/gargoyle/files/www/js/dhcp.js package/gargoyle/files/www/js/qos.js package/gargoyle/files/www/js/quotas.js package/gargoyle/files/www/quotas.sh
Configuration menu - View commit details
-
Copy full SHA for e930b3d - Browse repository at this point
Copy the full SHA e930b3dView commit details
Commits on Mar 5, 2016
-
Bugfix save known device group
Corrected and strengthened saveChanges() to handle whitespace properly and reject unknown host names
Configuration menu - View commit details
-
Copy full SHA for 6e1bb82 - Browse repository at this point
Copy the full SHA 6e1bb82View commit details
Commits on May 18, 2016
-
Merge branch 'master' of https://github.com/ericpaulbishop/gargoyle i…
…nto known-devices
Configuration menu - View commit details
-
Copy full SHA for 3233e46 - Browse repository at this point
Copy the full SHA 3233e46View commit details