help on deleting a custom chain.
hallian at hotmail.com
Sat Oct 9 03:57:03 CEST 2004
hello all -
I have created a custom chain which wil keep all the icmp related
connections bundled together. So, these are the steps, but I have problem
trying to delete the chain as it being referenced in another chain.
these are the commands:
1) iptables --new-chain myicmp
2) iptables -A INPUT -j myicmp
3) iptables -A myicmp -i eth3 -p icmp -m icmp --icmp-type echo-reply -j
iptables -A myicmp -i eth3 -p icmp -m icmp --icmp-type time-exceeded -j
iptables -A INPUT -i eth3 -p icmp -m icmp --icmp-type echo-request -j
4) iptables -F myicmp
5) iptables -D myicmp
iptables: Can't delete chain with references left
Which is true..... when I do a iptables --list it shows up in the INPUT
chain but the rules are flush out from the myicmp chain.
Can someone tell me how can I remove the myicmp chain out of the INPUT
More information about the netfilter