fw4: recognize `option log` and `option counter` in `config nat` sections
authorJo-Philipp Wich <jo@mein.io>
Thu, 8 Sep 2022 20:52:09 +0000 (22:52 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 8 Sep 2022 20:52:09 +0000 (22:52 +0200)
Sections of type `nat` didn't honour the `log` and `counter` options so
far, add them in order to make those options avaialble to NAT rules as well.

Ref: https://forum.openwrt.org/t/x/136274/10
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/ucode/fw4.uc

index a7837ed4088e977eea96c841951733b91c30c821..29ae0534afbd50612d621db021c1d42602a7e940 100644 (file)
@@ -2973,6 +2973,9 @@ return {
 
                        mark: [ "mark" ],
 
+                       counter: [ "bool", "1" ],
+                       log: [ "string" ],
+
                        target: [ "target", "masquerade" ]
                });