Skip to contentSkip to conversation

increasing ip_list_tot in net/netfilter/xt_recent.c for a non-modular kernel

PATCH Toralf Förster 2 participants 5 messages Feb 22, 2021 – Feb 23, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I'm curious if there's a better solution than local patching like:

net/netfilter/xt_recent.c +1 -1
index 0446307516cd..e482d4a3fadf 100644
@@ -40,7 +40,7 @@ MODULE_LICENSE("GPL");
 MODULE_ALIAS("ipt_recent");
 MODULE_ALIAS("ip6t_recent");
 
-static unsigned int ip_list_tot __read_mostly = 100;
+static unsigned int ip_list_tot __read_mostly = 10000;
 static unsigned int ip_list_hash_size __read_mostly;
 static unsigned int ip_list_perms __read_mostly = 0644;
 static unsigned int ip_list_uid __read_mostly;

here under a hardened Gentoo Linux using iptables ?

--
Toralf

#2 lore raw
Quoted 8 lines · Jozsef Kadlecsik
Quoted 1 line · Toralf Förster

I'm curious if there's a better solution than local patching like:

See "modinfo xt_recent": you can tune it via a module parameter.

Best regards,
Jozsef

It is a non-modular kernel.

--
Toralf

#3 lore raw
Quoted 5 lines · Toralf Förster
Quoted 3 lines
Quoted 1 line

I'm curious if there's a better solution than local patching like:

See "modinfo xt_recent": you can tune it via a module parameter.

It is a non-modular kernel.

Then you can specify it as a kernel boot parameter:
xt_recent.ip_list_tot=N

Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : https://wigner.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics

          H-1525 Budapest 114, POB. 49, Hungary
#4 lore raw
Quoted 10 lines · Jozsef Kadlecsik
Quoted 3 lines · Toralf Förster
Quoted 2 lines
Quoted 1 line

I'm curious if there's a better solution than local patching like:

See "modinfo xt_recent": you can tune it via a module parameter.

It is a non-modular kernel.

Then you can specify it as a kernel boot parameter:
xt_recent.ip_list_tot=N

Best regards,
Jozsef

Ah - good advice, thx !

--
Toralf