summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich2022-09-08 20:52:09 +0000
committerJo-Philipp Wich2022-09-08 20:52:09 +0000
commit145e1591a3ca7cc4f92f9f80ef7bdfe393ac0229 (patch)
treeef8a4161a145b5321da3d1868bacdb6c9e31c330
parentce050a87781e6747c21d7e16f51d6017a1fbeca6 (diff)
downloadfirewall4-145e1591a3ca7cc4f92f9f80ef7bdfe393ac0229.tar.gz
fw4: recognize `option log` and `option counter` in `config nat` sections
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>
-rw-r--r--root/usr/share/ucode/fw4.uc3
1 files changed, 3 insertions, 0 deletions
diff --git a/root/usr/share/ucode/fw4.uc b/root/usr/share/ucode/fw4.uc
index a7837ed..29ae053 100644
--- a/root/usr/share/ucode/fw4.uc
+++ b/root/usr/share/ucode/fw4.uc
@@ -2973,6 +2973,9 @@ return {
mark: [ "mark" ],
+ counter: [ "bool", "1" ],
+ log: [ "string" ],
+
target: [ "target", "masquerade" ]
});