* iptables-save does not save correcly rateest bps parameter
@ 2011-04-20 18:32 Emilio Lazo Zaia
2011-05-18 21:10 ` Jan Engelhardt
0 siblings, 1 reply; 2+ messages in thread
From: Emilio Lazo Zaia @ 2011-04-20 18:32 UTC (permalink / raw)
To: netfilter
I have found something that may be a bug in iptables-save or in kernel
'rateest' code.
# iptables -t mangle -A Balance -m conntrack --ctstate NEW -m rateest
--rateest1 wan1meter --rateest-bps 1000kbit --rateest-bps1 1000kbit
--rateest-gt --rateest2 wan2meter --rateest-delta -j CONNMARK --set-mark
1
its corresponding line in iptables -L is:
CONNMARK all -- anywhere anywhere ctstate NEW
rateest match wan1meter delta bps 1000Kbit gt wan2meter delta bps
1000Kbit CONNMARK set 0x1
so it seems to be right, but this line in iptables-save is:
-A Balance -m conntrack --ctstate NEW -m rateest --rateest1 wan1meter
--rateest-bps --rateest-gt --rateest2 wan2meter -j CONNMARK --set-xmark
0x1/0xffffffff
There is neither bps value nor delta parameter, so after
iptables-restore with the generated file, this iptables rule becames:
CONNMARK all -- anywhere anywhere ctstate NEW
rateest match wan1meter bps gt wan2meter bps CONNMARK set 0x1
I guess the bug is in iptables-save and not in the kernel but really I
don't know if the kernel honours these parameters.
(iptables version 1.4.10, Debian kernel 2.6.38-2-amd64)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: iptables-save does not save correcly rateest bps parameter
2011-04-20 18:32 iptables-save does not save correcly rateest bps parameter Emilio Lazo Zaia
@ 2011-05-18 21:10 ` Jan Engelhardt
0 siblings, 0 replies; 2+ messages in thread
From: Jan Engelhardt @ 2011-05-18 21:10 UTC (permalink / raw)
To: Emilio Lazo Zaia; +Cc: netfilter
On Wednesday 2011-04-20 20:32, Emilio Lazo Zaia wrote:
>I have found something that may be a bug in iptables-save or in kernel
>'rateest' code.
Oh yeah I stumbled across this too while trying to add the new option
parser. I will take care of it..
>so it seems to be right, but this line in iptables-save is:
>
>-A Balance -m conntrack --ctstate NEW -m rateest --rateest1 wan1meter
>--rateest-bps --rateest-gt --rateest2 wan2meter -j CONNMARK --set-xmark
>0x1/0xffffffff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-18 21:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-20 18:32 iptables-save does not save correcly rateest bps parameter Emilio Lazo Zaia
2011-05-18 21:10 ` Jan Engelhardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox