From: Bill <per...@ga...> - 2004-09-14 20:45:20
|
Greetings, I'm attempting to write a few test scripts to read in a set of iptable rules that have been generated by fwbuilder (www.fwbuilder.org). When I list the rules generated by fwbuilder that's currently active on my box, I get a listing of various tables. What i'd like to do is to enumerate the tables and list the various chains contained in each table. For example, my system (at the moment) has the following table/chain setup: FILTER - INPUT - FORWARD - OUTPUT - Cid3FBAE099.0 - Cid3FBAE099.1 - Cid4006029E.0 - Cid4006029E.1 - Cid4006029E.2 - RULE_0 - RULE_1 - RULE_2 - RULE_3 - RULE_4 - RULE_5 - RULE_6 - RULE_7 - RULE_8 - eth0_In_RULE_0 - wireless_In_RULE_0 - wireless_out_RULE_0 The other tables have the built in chains. Is there any way to list the following for each rule: source_ip source_port destination_ip destination_port action[permit|deny|drop] log pcnt bcnt Thanks in advance, -=-Bill-=- |