Skip to content

Commit

Permalink
counter
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 committed Jun 26, 2023
1 parent d088fd2 commit 82dc142
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/nftables/nftables.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ table inet firewall {
{{- if gt (len .VrfIDs) 0 }}
# create a flowtable for all interfaces
flowtable f {
hook ingress priority 1; devices = { {{ StringsJoin .VrfIDs ", " }} };
hook ingress priority 1; devices = { {{ StringsJoin .VrfIDs ", " }} }; counter;
}
{{- end }}

Expand Down
2 changes: 1 addition & 1 deletion pkg/nftables/test_data/flowtable.nftable.v4
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ table inet firewall {
counter drop_ratelimit { }
# create a flowtable for all interfaces
flowtable f {
hook ingress priority 1; devices = { vlan60, vrf60, vlan90, vrf90, vlan104009, vrf104009 };
hook ingress priority 1; devices = { vlan60, vrf60, vlan90, vrf90, vlan104009, vrf104009 }; counter;
}

chain forward {
Expand Down

0 comments on commit 82dc142

Please sign in to comment.