Linux Netfilter discussions
 help / color / mirror / Atom feed
* bug in iptables-restore and "recent" module
@ 2015-02-15 12:31 richard lucassen
  2015-02-15 23:08 ` Pascal Hambourg
  0 siblings, 1 reply; 8+ messages in thread
From: richard lucassen @ 2015-02-15 12:31 UTC (permalink / raw)
  To: netfilter

When using the "recent" module and when the hitcount max (defaults to
20) is violated, "iptables-restore" is testing the file OK, but fails
on loading the filter table:

The file "iptables.save" contains the rule (note: "--hitcount 21"
exceeds the default max of 20):

-A INPUT  -m state --state NEW -p tcp --dport 443 -m recent --update
--name https --seconds 50 --hitcount 21 -j REJECT

The -t option (test file) shows an OK:

# iptables-restore -t < iptables.save
# echo $?
0

But:

# iptables-restore < iptables.save
iptables-restore: line 180 failed

On line 180 there is the "COMMIT" of the filter table.

Distro: Debian testing
# iptables --version
iptables v1.4.21

R.

-- 
___________________________________________________________________
It is better to remain silent and be thought a fool, than to speak
aloud and remove all doubt.

+------------------------------------------------------------------+
| Richard Lucassen, Utrecht                                        |
+------------------------------------------------------------------+

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-03-02  7:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-15 12:31 bug in iptables-restore and "recent" module richard lucassen
2015-02-15 23:08 ` Pascal Hambourg
2015-02-16 22:53   ` richard lucassen
2015-02-17  8:52     ` Pascal Hambourg
2015-02-17 11:12       ` Dennis Jacobfeuerborn
2015-03-02  7:52         ` richard lucassen
2015-02-20 21:05       ` richard lucassen
2015-02-20 21:22         ` Neal Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox