(function(a,e,f,g,b,c,d){a.GoogleAnalyticsObject=b;a[b]=a[b]||function(){(a[b].q=a[b].q||[]).push(arguments)};a[b].l=1*new Date;c=e.createElement(f);d=e.getElementsByTagName(f)[0];c.async=1;c.src=g;d.parentNode.insertBefore(c,d)})(window,document,"script","https://www.google-analytics.com/analytics.js","ga");ga("create","UA-732153-7","auto",{allowLinker:!0,siteSpeedSampleRate:10});ga("set","transport","beacon");ga("set","anonymizeIp",!0);ga("require","linker"); ga("linker:autoLink","askapache.com askapache.net htaccess.io htaccesselite.com askapache.info htaccess.guru".split(" "),!0);ga("send","pageview"); CLASS="ARTICLE" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" >

Querying libiptc HOWTO

Leonardo Balliache

leonardo@opalsoft.net

Version 0.1 - April 30, 2002

Revision History
Revision 0.12002-04-30Revised by: lb
Initial release.

Table of Contents
1. Legal Notice
2. Translations
3. Disclaimer
4. Credits
5. Objectives
6. What is libiptc?
7. How did I obtain this knowledge?
8. Previous knowledge and system requirements
9. Installing iptables + libiptc
10. How to create your program(s)
11. Functions to query libiptc
11.1. iptc_init
11.2. iptc_strerror
11.3. iptc_first_chain
11.4. iptc_next_chain
11.5. iptc_is_chain
11.6. iptc_builtin
11.7. iptc_first_rule
11.8. iptc_next_rule
11.9. iptc_get_target
11.10. iptc_get_policy
11.11. iptc_read_counter
12. Functions to modify firewalling rules and statistics
12.1. iptc_commit
12.2. iptc_insert_entry
12.3. iptc_replace_entry
12.4. iptc_append_entry
12.5. iptc_delete_num_entry
12.6. iptc_flush_entries
12.7. iptc_zero_entries
12.8. iptc_create_chain
12.9. iptc_delete_chain
12.10. iptc_rename_chain
12.11. iptc_set_policy
12.12. iptc_zero_counter
12.13. iptc_set_counter
13. Bandwidth meter
14. Controlling flows
15. Some interesting links
16. About the author