diff --git a/doc/changelog.txt b/doc/changelog.txt index dc96fa5..494818a 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -4,6 +4,8 @@ - added reworked xt_pknock module Changes from pknock v0.5: - pknock: "strict" and "checkip" flags were not displayed in `iptables -L` + - pknock: the GC expire time's lower bound is now the default gc time + (65000 msec) to avoid rendering anti-spoof protection in SPA mode useless Xtables-addons 1.18 (September 09 2009) diff --git a/extensions/xt_pknock.c b/extensions/xt_pknock.c index f805925..97ccec3 100644 --- a/extensions/xt_pknock.c +++ b/extensions/xt_pknock.c @@ -1104,6 +1104,8 @@ static struct xt_match xt_pknock_mt_reg __read_mostly = { static int __init xt_pknock_mt_init(void) { + if (gc_expir_time < DEFAULT_GC_EXPIRATION_TIME) + gc_expir_time = DEFAULT_GC_EXPIRATION_TIME; #ifdef PK_CRYPTO if (request_module(crypto.algo) < 0) { printk(KERN_ERR PKNOCK "request_module('%s') error.\n",