[orzech@pld-linux.org: iptables from HEAD unable to delete rules]

Pawel Sikora pluto w agmk.net
Czw, 16 Cze 2005, 23:50:06 CEST


On Wednesday 16 of February 2005 19:39, Tomek Orzechowski wrote:
> ----- Forwarded message from Tomek Orzechowski <orzech w pld-linux.org> -----
>
> Date: Wed, 16 Feb 2005 19:33:59 +0100
> From: Tomek Orzechowski <orzech w pld-linux.org>
> To: pld-devel-en w pld-linux.org
> Subject: iptables from HEAD unable to delete rules
> Mail-Followup-To: pld-devel-en w pld-linux.org
>
> iptables from HEAD (built against kernel-2.6.10-0.106) is not able to
> delete rules:
>
> # iptables -nL OUTPUT -t mangle
> Chain OUTPUT (policy ACCEPT)
> target     prot opt source               destination
> STAT       tcp  --  0.0.0.0/0            0.0.0.0/0           tcp spt:3128
> LIMITS     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp spt:3128
>
> # /usr/sbin/iptables -t mangle -D OUTPUT -p tcp --sport 3128 -j STAT
> iptables: Bad rule (does a matching rule exist in that chain?)

czy ten blad nadal wystepuje? bo u mnie zdaje sie juz dzialac.

# iptables -t mangle -N STATS
# iptables -t mangle -A OUTPUT -p tcp --sport 1234 -j STATS
# iptables -nL OUTPUT -t mangle
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
STATS      tcp  --  0.0.0.0/0            0.0.0.0/0           tcp spt:1234
# iptables -t mangle -D OUTPUT -p tcp --sport 1234 -j STATS
#

-- 
The only thing necessary for the triumph of evil
  is for good men to do nothing.
                                           - Edmund Burke



Więcej informacji o liście dyskusyjnej pld-kernel