Version 1.3.2
set firewall name WAN_LOCAL rule 60 recent time minute
I have tried minute, second or hour in configure and got same error:
“minute” is not a valid value of type “u32”
Value validation failed
Set failed
If I force it in configure
rule 60 {
action drop
destination {
port 22
}
protocol tcp
recent {
count 4
time minute
}
state {
new enable
}
}
I will get this error
[ firewall name WAN_LOCAL ]
iptables v1.8.2 (nf_tables): recent: bad value for option "--seconds", or out of range (1-4294967295).
Try `iptables -h' or 'iptables --help' for more information.
Use of uninitialized value $rule_strs[2] in join or string at /opt/vyatta/sbin/vyatta-firewall.pl line 742.
Use of uninitialized value $rule_strs[3] in join or string at /opt/vyatta/sbin/vyatta-firewall.pl line 742.
Use of uninitialized value $rule_strs[4] in join or string at /opt/vyatta/sbin/vyatta-firewall.pl line 742.
Use of uninitialized value $rule_strs[5] in join or string at /opt/vyatta/sbin/vyatta-firewall.pl line 742.
iptables error: No such file or directory - -m comment --comment "WAN_LOCAL-60" -p tcp -m state --state NEW --dport 22 -m recent --update --seconds minute --hitcount 4 --name WAN_LOCAL-60 -j DROP -m comment --comment "WAN_LOCAL-60" -p tcp -m state --state NEW --dport 22 -m recent --set --name WAN_LOCAL-60 at /opt/vyatta/sbin/vyatta-firewall.pl line 742.
[[firewall name WAN_LOCAL]] failed
Commit failed