how to delete a group of rules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all, im coding a frontend for iptables based on php and mysql.
 
But i have an issue when i try to delete a group of rules, it cant be done. 
 
suppose this
 
a chain called "x1"
 
delete the chain implies 
 
- empty the chain
- delete all  rules that reference the chain
 
the first line is easy to do  with iptables -F x1 , but if (as an example)
in filter::INPUT i have 2 or more references to this chain, executing
iptables -D INPUT -j x1 will delete only the first one and not all rules
that references x1.
 
Does exist any way to do this from command line using iptables, or code a
script to do this is the solution?
 
 
Thank you.
 
 

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux