Hi, I am doing a project which uses libiptc. It involves inserting and deleting iptables rules based on clients' requests. This necessitates the need for keeping tracking of the rulenumber of all the rules inserted. I have gone through the code of iptables and libiptc. I could not find any routine that can be used to get the rulenumber of an iptables rule.
WHAT I WANT To KNOW :: 1) Given a rule, Is there any way to get the rulenumber, something like a search routine 2) If there is no search routine, can we get the rulenumber when a rule is inserted by sending an argument or the like Thanks in advance, Nithin __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com