Hello,

One of our tests failed due to iptables. It works fine with kernels <=
4.11 and 4.12-rc* (from rawhide). The problem is that the command for
deleting a rule returns an error.

[root@zdtm ~]# unshare  -n
[root@zdtm ~]# iptables -w -t filter --protocol tcp -A INPUT --dport
9999 -j DROP
[root@zdtm ~]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
DROP       tcp  --  anywhere             anywhere             tcp dpt:distinct

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

[root@zdtm ~]# iptables -w -t filter --protocol tcp -D INPUT --dport
9999 -j DROP
iptables: Bad rule (does a matching rule exist in that chain?).

[root@zdtm ~]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
DROP       tcp  --  anywhere             anywhere             tcp dpt:distinct

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination


[root@zdtm ~]# uname -a
Linux zdtm.openvz.org 4.11.5-200.fc25.x86_64 #1 SMP Wed Jun 14
17:17:29 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

https://bugzilla.redhat.com/show_bug.cgi?id=1459676

Thanks,
Andrei
_______________________________________________
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org

Reply via email to