From be077c5ae0d510c4d7c03ad8210e124693457af3 Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 15 Nov 2022 11:04:02 +0300 Subject: [PATCH] nft: flow offload test counter --- common/nft.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/common/nft.sh b/common/nft.sh index aa7c8ab..fe13d6b 100644 --- a/common/nft.sh +++ b/common/nft.sh @@ -246,6 +246,7 @@ nft_apply_flow_offloading() { # ft can be absent nft_add_rule flow_offload meta l4proto "{ tcp, udp }" flow add @ft 2>/dev/null && { + nft_add_rule flow_offload meta l4proto "{ tcp, udp }" counter comment \"if offload works here must not be too much traffic\" # allow only outgoing packets to initiate flow offload nft_add_rule forward oifname @wanif jump flow_offload nft_add_rule forward oifname @wanif6 jump flow_offload