diff options
Diffstat (limited to 'iptables-details-html.lsp')
-rw-r--r-- | iptables-details-html.lsp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/iptables-details-html.lsp b/iptables-details-html.lsp new file mode 100644 index 0000000..bbdbd9a --- /dev/null +++ b/iptables-details-html.lsp @@ -0,0 +1,21 @@ +<% local data, viewlibrary = ... +require("viewfunctions") +--[[ DEBUG INFORMATION +io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>") +io.write(html.cfe_unpack(data)) +io.write("</span>") +--]] +%> + +<% viewlibrary.dispatch_component("status") %> + +<H2><%= data.label %></H2> +<DL> +<% for i,tab in ipairs({"filter", "nat", "mangle"}) do %> + <H3><%= tab %></H3> + <TABLE> + <TR><%= data.value[tab].chains %> Chains</TR> + <TR><%= data.value[tab].rules %> Rules</TR> + </TABLE> +<% end %> +</DL> |