* iptables-1.4.5 REPLACE rule problem
@ 2009-11-14 9:25 Werner Pawlitschko
2009-11-15 15:05 ` Jan Engelhardt
0 siblings, 1 reply; 2+ messages in thread
From: Werner Pawlitschko @ 2009-11-14 9:25 UTC (permalink / raw)
To: netfilter-devel
Hi dear netfilter team,
I just upgraded from iptables-1.4.3 to 1.4.5 and found the following
problem. Probably it has already been reported.
I think it should be just as simple as doing this at the prompt:
iptables -A OUPUT -j LOG -d 10.11.12.13
then iptables-save shows
-A OUPUT -d 10.11.12.13/32 -j LOG
that's ok.
Then doing:
iptables -R OUTPUT 1 -j LOG -d 10.11.12.13
then iptables-save shows
-A OUTPUT -d 10.11.12.13/0 -j LOG
Looks bad. As you see the mask is set to zero for all bits.
But redirecting the output of iptables-save into a file, editing the
mask manually and restoring the rules by iptables-restore works perfectly.
Your sincerely,
Werner
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: iptables-1.4.5 REPLACE rule problem
2009-11-14 9:25 iptables-1.4.5 REPLACE rule problem Werner Pawlitschko
@ 2009-11-15 15:05 ` Jan Engelhardt
0 siblings, 0 replies; 2+ messages in thread
From: Jan Engelhardt @ 2009-11-15 15:05 UTC (permalink / raw)
To: Werner Pawlitschko; +Cc: netfilter-devel
On Saturday 2009-11-14 10:25, Werner Pawlitschko wrote:
> iptables -A OUPUT -j LOG -d 10.11.12.13
> then iptables-save shows
> -A OUPUT -d 10.11.12.13/32 -j LOG
> that's ok.
> Then doing:
> iptables -R OUTPUT 1 -j LOG -d 10.11.12.13
> then iptables-save shows
> -A OUTPUT -d 10.11.12.13/0 -j LOG
> Looks bad. As you see the mask is set to zero for all bits.
It turns out -R always put /0 in there. A bug of course, that I fixed
now. Patch at git://dev.medozas.de/iptables for the wary, otherwise
will be submitted in my semiregular pushes.
thanks,
Jan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-15 15:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-14 9:25 iptables-1.4.5 REPLACE rule problem Werner Pawlitschko
2009-11-15 15:05 ` Jan Engelhardt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.