Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92535 - upgrade to and downgrade from iptables-1.3.1 make previous inserted rules undeletable.
Summary: upgrade to and downgrade from iptables-1.3.1 make previous inserted rules und...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://bugzilla.netfilter.org/bugzil...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-13 15:07 UTC by Peter Volkov (RETIRED)
Modified: 2008-08-22 19:17 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Volkov (RETIRED) gentoo-dev 2005-05-13 15:07:47 UTC
I've encounter issue on my firewall. After downgrade from iptables  iptables-1.3.1-r1 I can not delete inserted previosly rules. Now I've checked that if I insert rules and then upgrade from iptabeles-1.2 to 1.3 I can not remove this rule.

All firewalls, where rules are inserted and deleted automatically will experience problems after upgrade. For example, we have rules to allow or deny user to get into internet. If I missed this issue, many users could use their internet even if they do not have money on their accounts, because although my script swhich off them internet, iptables did not remove it actually.

Reproducible: Always
Steps to Reproduce:
1. insert rule like: iptables -A FORWARD -s 12.12.12.12 -j ACCEPT
2. upgrade iptables: env ACCEPT_KEYWORDS="~x86" emerge -pv iptables
3. attempt to delete fails: iptables -D FORWARD -s 12.12.12.12 -j ACCEPT
iptables: Bad rule (does a matching rule exist in that chain?)

althout I have this rule: iptables -L FORWARD -v -n
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  *      *       12.12.12.12          0.0.0.0/0
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2005-05-18 22:48:25 UTC
Hello. 
Upstream reported that this is not a bug, but a known behaviour. Look here: 
https://bugzilla.netfilter.org/bugzilla/show_bug.cgi?id=334 
 
But I'm sure it's necessary to make people aware about this feature. So adding 
some einfo (ewarn) in iptables ebuild is enough, to close this bug. 
Comment 2 SpanKY gentoo-dev 2005-07-11 19:48:55 UTC
added to 1.3.2, thanks
Comment 3 SpanKY gentoo-dev 2005-07-11 19:49:30 UTC
forgot to close ...
Comment 4 Dizzy 2005-08-18 00:48:27 UTC
I think the warning from the ebuild is misleading. I had to read this bug entry
to understand what it means, it says:
 * When upgrading from iptables-1.2.x, you may be unable to remove
 * rules added with iptables-1.3.x.  This is a known issue, please see:
 * http://bugs.gentoo.org/show_bug.cgi?id=92535

Actually, it should probalby say "you are unable to remove rules added with
1.2.x" (how can I add rules with 1.3.x before upgrading to 1.3.x anyways ? :)).
Comment 5 SpanKY gentoo-dev 2005-08-18 15:53:50 UTC
indeed ... fixed in cvs, thanks