Opened 4 years ago

Last modified 4 years ago

#17289 new defect

resetting firewall counters in luci only resets filter table

Reported by: gtz23 Owned by:
Priority: normal Milestone: Chaos Calmer 15.05
Component: luci Version: Trunk
Keywords: Cc:


I'm using 'OpenWrt Barrier Breaker r41824 / LuCI Trunk (svn-r10459)' on an 'NETGEAR NDR3700v2'.

When I click on Status -> Firewall -> 'Reset Counters' it only resets the counters for the 'filter' table.

This patches adds the 'nat'/'mangle'/'raw' tables for IPv4, and 'mangle'/'raw' for IPv6

--- /tmp/status.lua	2014-07-27 17:25:46.534850660 +0200
+++ /usr/lib/lua/luci/controller/admin/status.lua	2014-07-27 17:10:13.000000000 +0200
@@ -57,6 +57,11 @@
 			luci.util.exec("ip6tables -Z")
+			luci.util.exec("iptables -Z -t mangle")
+			luci.util.exec("iptables -Z -t raw")
 			luci.util.exec("iptables -Z")
+			luci.util.exec("iptables -Z -t nat")
+			luci.util.exec("iptables -Z -t mangle")
+			luci.util.exec("iptables -Z -t raw")
 			luci.dispatcher.build_url("admin", "status", "iptables")

I've only testes the IPv4 case.

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by duvi

The patch seems to be missing 6s from the ipv6 side ("ip6tables" instead of "iptables" as command).

Add Comment

Modify Ticket

as new .

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.