Can't delete an iptables chain

Posted by Raul Adrian Altavano on Ask Ubuntu See other posts from Ask Ubuntu or by Raul Adrian Altavano
Published on 2013-10-22T15:44:41Z Indexed on 2013/10/22 16:03 UTC
Read the original article Hit count: 368

Filed under:
|

I'm having a problem on deleting a user-defined chain.
these the are rules I entered.

sudo iptables -t mangle -N internet
sudo iptables -t mangle -A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j internet
sudo iptables -t mangle -A internet -j MARK --set-mark 99
sudo iptables -t nat -A PREROUTING -i eth1 -p tcp -m mark --mark 99 -m tcp --dport 80 -j DNAT --to-destination 192.168.3.1

When i'm using -X or -D, it gives me this error

iptables: No chain/target/match by that name.

© Ask Ubuntu or respective owner

Related posts about firewall

Related posts about iptables