Skip to contentSkip to conversation

how to delete a piece of rule in iptables?

DISCUSSION bobo 3 participants 3 messages Dec 18, 2002 – Dec 19, 2002 netfilter

lore
Share & tools
lore

bobo

author
#0 lore raw

i have insert some rules to iptables firewall.now,i would
like to delete it .
but i only know to use iptalbes -L to empty them.
but it lead to delete all the rules in it.
how to do ??

#1 lore raw

bobo 提到:

Quoted 10 lines

i have insert some rules to iptables firewall.now,i would
like to delete it .
but i only know to use iptalbes -L to empty them.
but it lead to delete all the rules in it.
how to do ??

This address is for developer, your question should be post in user mailinglist.

The "-L" option will list all rules, use belows to flush it and use "man iptables" to see more.
iptables -F
iptables -F -t nat
iptables -F -t mangle

iptables -X
iptables -X nat
iptables -X mangle

/Jason

#2 lore raw
In reply to bobo

Hallo,

Quoted 6 lines · bobo

i have insert some rules to iptables firewall.now,i would

like to delete it .
but i only know to use iptalbes -L to empty them. but it lead to delete all the rules in it. how to do ??

"iptables --help" gives you a short command overview.

"man iptables" gives you more extensive help.

Gruß,
Markus

Signature · 3 lines
Markus Schaber - http://www.schabi.de/

Schabi's Flohmarkt unter http://schabi.de/flohmarkt