From b06bc2c9ef2bd30271afe80a28197a352d15a93f Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Mon, 21 Dec 2020 19:54:38 +0200 Subject: luci-app-noddos: remove The 'noddos' package itself was removed with commit https://github.com/openwrt/packages/commit/eb9d5bbf39e89909283c431ae981feac39b02d95 Remove also the corresponding LuCI app. Signed-off-by: Hannu Nyman --- .../luci-app-noddos/luasrc/model/cbi/noddos.lua | 46 --------- .../luci-app-noddos/luasrc/view/noddos/clients.htm | 111 --------------------- 2 files changed, 157 deletions(-) delete mode 100644 applications/luci-app-noddos/luasrc/model/cbi/noddos.lua delete mode 100644 applications/luci-app-noddos/luasrc/view/noddos/clients.htm (limited to 'applications/luci-app-noddos/luasrc') diff --git a/applications/luci-app-noddos/luasrc/model/cbi/noddos.lua b/applications/luci-app-noddos/luasrc/model/cbi/noddos.lua deleted file mode 100644 index 3abb73bc66..0000000000 --- a/applications/luci-app-noddos/luasrc/model/cbi/noddos.lua +++ /dev/null @@ -1,46 +0,0 @@ --- Copyright 2017 Steven Hessing (steven.hessing@gmail.com) --- This is free software, licensed under the GNU General Public License v3. --- /usr/lib/lua/luci/model/cbi/noddos.lua - -m = Map("noddos", translate("Client Firewall"), - translate("Noddos controls traffic from the clients on your network to the Internet. " .. - "This helps protect your network, the bandwidth on your Internet connection and " .. - "the Internet")) - -s = m:section(TypedSection, "noddos", translate("Server Settings")) -s.anonymous = true -s.addremove = false - -s:option(Flag, "rfc1918", - translate("Private networks"), - translate("Report traffic to private networks (10/8, 172.16/12, 192.168/16, fd75:6b5d:352c:ed05::/64)")).default=false - -s:option(Flag, "upload", - translate("Upload anonimized traffic stats"), - translate("Uploading your statistics helps improving device recognition " .. - "and discovering hacked devices & botnets")) - -o = s:option(DynamicList, "whitelistipv4", - translate("Excluded IPv4 addresses"), - translate("Don't monitor these IPv4 addresses")) -o.optional = true -o.placeholder = "127.0.0.1 192.168.1.1" -o.delimiter = " " -o.datatype="list(ip4addr)" - -o = s:option(DynamicList, "whitelistipv6", - translate("Excluded IPv6 addresses"), - translate("Don't monitor these IPv6 addresses")) -o.optional = true -o.delimiter = " " -o.datatype="list(ip6addr)" - -o = s:option(DynamicList, "whitelistmac", - translate("Excluded MAC addresses"), - translate("Don't monitor these MAC addresses")) -o.optional = true -o.delimiter = " " -o.datatype="list(macaddr)" - -return m - diff --git a/applications/luci-app-noddos/luasrc/view/noddos/clients.htm b/applications/luci-app-noddos/luasrc/view/noddos/clients.htm deleted file mode 100644 index 171a5e9aab..0000000000 --- a/applications/luci-app-noddos/luasrc/view/noddos/clients.htm +++ /dev/null @@ -1,111 +0,0 @@ -<%# - Copyright (C) 2017 Steven Hessing - This is free software, licensed under the GNU General Public License v3. - /usr/lib/lua/luci/view/clients.htm --%> - -<%- - - require "nixio.fs" - require "os" - - local last_modified = "" - local style = true - local v - local devdump - - if nixio.fs.access("/var/lib/noddos/DeviceDump.json") then - last_modified = os.date("%c", nixio.fs.stat("/var/lib/noddos/DeviceDump.json")['mtime']) - io.input("/var/lib/noddos/DeviceDump.json") - t = io.read("*all") - devdump = luci.jsonc.parse(t) - io.input("/var/lib/noddos/DeviceProfiles.json") - t = io.read("*all") - temp = luci.jsonc.parse(t) - devicevalues = {} - for i, v in ipairs(temp) do - devicevalues[v.DeviceProfileUuid] = v - end - end --%> - -<%+header%> - -
-

<%:Clients%>

-
<%:The following clients have been discovered on the network. The last discovery was completed at %><%=last_modified%>
- -
- <%:Recognized Clients%> -
-
-
-
<%:Hostname%>
-
<%:IPv4%>
-
<%:MAC%>
-
<%:Manufacturer%>
-
<%:Model%>
-
<%:Class%>
-
- - <% - for i,v in ipairs(devdump) do - if v.DeviceProfileUuid ~= "" then - %> -
-
<%=v.Hostname%>
-
<%=v.Ipv4Address%>
- -
<%=devicevalues[v.DeviceProfileUuid].Manufacturer%>
-
<%=devicevalues[v.DeviceProfileUuid].Model%>
-
<%=devicevalues[v.DeviceProfileUuid].ThingClass%>
-
- <% - style=false - end - end - %> -
-
-
-
-
- <%:Unrecognized Clients%> -
-
-
-
<%:Hostname%>
-
<%:IPv4%>
-
<%:MAC%>
-
<%:Manufacturer%>
-
<%:Model%>
-
<%:DHCP Vendor%>
-
<%:DHCP Hostname%>
-
- - <% - for i,v in ipairs(devdump) do - if v.DeviceProfileUuid == "" then - %> -
-
<%=v.Hostname%>
-
<%=v.Ipv4Address%>
- -
<%=v.SsdpManufacturer%>
-
<%=v.SsdpModelName%>
-
<%=v.DhcpVendor1%>
-
<%=v.DhcpHostname%>
-
- <% - style=false - end - end - %> -
-
-
- -
- -<%+footer%> - -- cgit v1.2.3