As flow offloading is a popular feature, it makes sense to cover it in
the tests. This would have caught the issue fixed in
b68cf6701945
("main.uc: fix device gathering").
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Reviewed-by: Jo-Philipp Wich <jo@mein.io>
flush table inet fw4
table inet fw4 {
+ #
+ # Flowtable
+ #
+
+ flowtable ft {
+ hook ingress priority 0;
+ devices = { "br-lan", "wan" };
+ flags offload;
+ }
+
#
# Set definitions
#
chain forward {
type filter hook forward priority filter; policy drop;
+ meta l4proto { tcp, udp } flow offload @ft;
ct state established,related accept comment "!fw4: Allow forwarded established and related flows"
iifname "br-lan" jump forward_lan comment "!fw4: Handle lan IPv4/IPv6 forward traffic"
iifname "wan" jump forward_wan comment "!fw4: Handle wan IPv4/IPv6 forward traffic"
{
"defaults": {
+ "flow_offloading": "1",
+ "flow_offloading_hw": "1",
"forward": "REJECT",
"input": "ACCEPT",
"output": "ACCEPT",