fw4: enable flowtable counters
authorFelix Fietkau <nbd@nbd.name>
Thu, 23 Mar 2023 21:01:12 +0000 (22:01 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 23 Mar 2023 21:01:13 +0000 (22:01 +0100)
This ensures that conntrack stats are updated for offloaded flows

Signed-off-by: Felix Fietkau <nbd@nbd.name>
root/usr/share/firewall4/templates/ruleset.uc

index 9537ba2879603c5a52a2d23d79f667759a03fdb7..7bd930937600f67488c4543cd1bfb6493e23b018 100644 (file)
@@ -20,6 +20,7 @@ table inet fw4 {
        flowtable ft {
                hook ingress priority 0;
                devices = {{ fw4.set(flowtable_devices, true) }};
+               counter;
 {% if (fw4.default_option("flow_offloading_hw")): %}
                flags offload;
 {% endif %}