firewall: fix syntax of icmp v4 rule
This commit is contained in:
parent
d9723aeb87
commit
ee683f2202
@ -72,7 +72,7 @@ let
|
|||||||
local n = output(s, "ifname");
|
local n = output(s, "ifname");
|
||||||
local bw = output(s, "bandwidth");
|
local bw = output(s, "bandwidth");
|
||||||
if n and bw then
|
if n and bw then
|
||||||
return "icmp iifname ".. n .. " limit rate over " .. (math.floor (tonumber(bw) / 8 / 20)) .. " bytes/second drop"
|
return "meta l4proto icmp iifname ".. n .. " limit rate over " .. (math.floor (tonumber(bw) / 8 / 20)) .. " bytes/second drop"
|
||||||
else
|
else
|
||||||
return "# " .. (n or "not n") .. " " .. (bw or "not bw")
|
return "# " .. (n or "not n") .. " " .. (bw or "not bw")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user