ruleset.uc: consolidate ip and ip6 offload
authorStijn Tintel <stijn@linux-ipv6.be>
Fri, 7 Jan 2022 08:24:54 +0000 (10:24 +0200)
committerStijn Tintel <stijn@linux-ipv6.be>
Sun, 9 Jan 2022 13:21:58 +0000 (15:21 +0200)
Remove the space before the comma while at it.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Reviewed-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/firewall4/templates/ruleset.uc

index 6b87a4910cd0493b13b3d48dad76e82f4d053dbc..bb792051bba860a86fd94772fa5410a0a6967aed 100644 (file)
@@ -89,8 +89,7 @@ table inet fw4 {
                type filter hook forward priority filter; policy {{ fw4.forward_policy(true) }};
 
 {% if (fw4.default_option("flow_offloading") && length(devices) > 0): %}
-               ip protocol { tcp , udp } flow offload @ft;
-               ip6 nexthdr { tcp , udp } flow offload @ft;
+               meta l4proto { tcp, udp } flow offload @ft;
 {% endif %}
                ct state established,related accept comment "!fw4: Allow forwarded established and related flows"
 {% if (fw4.default_option("drop_invalid")): %}