How an I change the parameterip_pkt_list_tot of iptables?
I want to use the module recent of iptables and I need to change the parameter ippktlist_tot.
I am using debian with kernal Latest 3.0 (3.0.4-linode36).
I can't find the file /etc/modprobe.conf,so I created one and added
options iptrecent iplisttot=1000 ippktlisttot=60
but it can't work…
And I tried this.
modprobe iptrecent ippktlisttot=50
FATAL: Module ipt_recent not found.
I've tried looking up info but frankly couldn't find any real information.
Thanks.
4 Replies
run a non-Linode kernel
I do have an /etc/modprobe.conf file, but adding these options to it doesn't change anything. Doing a 'cat /sys/module/xtrecent/parameters/iplist_tot' still shows the old value.
A poster in this thread suggested modifying these parameters at runtime - how could I do this? Running 'modprobe iptrecent' or 'modprobe xtrecent' gives errors.
apparently possible
# change xt_recent module parameters for iptables
chmod 644 /sys/module/xt_recent/parameters/*
echo 300 > /sys/module/xt_recent/parameters/ip_list_tot
echo 60 > /sys/module/xt_recent/parameters/ip_pkt_list_tot
Seems to work so far. I'll post back if I have any problems with it.