ruleset: dispatch ct states using verdict map
[project/firewall4.git] / tests / 03_rules / 09_time
index 7a7471b8f8373f0f25739ff733ab9be6dd6a80d3..cba19145cfe5b1efd487d6364c6ad3db38523b8f 100644 (file)
@@ -139,13 +139,13 @@ table inet fw4 {
 
                iifname "lo" accept comment "!fw4: Accept traffic from loopback"
 
-               ct state established,related accept comment "!fw4: Allow inbound established and related flows"
+               ct state vmap { established : accept, related : accept } comment "!fw4: Handle inbound flows"
        }
 
        chain forward {
                type filter hook forward priority filter; policy drop;
 
-               ct state established,related accept comment "!fw4: Allow forwarded established and related flows"
+               ct state vmap { established : accept, related : accept } comment "!fw4: Handle forwarded flows"
        }
 
        chain output {
@@ -153,7 +153,7 @@ table inet fw4 {
 
                oifname "lo" accept comment "!fw4: Accept traffic towards loopback"
 
-               ct state established,related accept comment "!fw4: Allow outbound established and related flows"
+               ct state vmap { established : accept, related : accept } comment "!fw4: Handle outbound flows"
                meta time >= "2022-05-30 21:51:23" counter accept comment "!fw4: Time rule #1"
                meta time >= "2022-05-30 21:51:00" counter accept comment "!fw4: Time rule #2"
                meta time >= "2022-05-30 21:00:00" counter accept comment "!fw4: Time rule #3"