Skip to contentSkip to conversation

IPTables API & documentation

DISCUSSION Harald Welte 1 participant 1 message Oct 16, 2003 1 message not in the archive netfilter

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 5 lines · Daniel Fonseca

Hi Harald,

I am involved in a project for CS undergrad qualifying, it's about a new protocol being developed by IETF called midcom. Have you heard about it?

yes. I was following MIDCOM at some point in the past, but haven't looked at it's proceedings for at least a year.

Quoted 7 lines

I would like to know how can firewall (packet filter) and NAT rules be added, removed and read from the iptables configuration in a programming (C/C++) environment. Is there an API or something similar? If so, do you have any documentation for it, or happen to know references where I can search or ask more about it?

no, we don't have such an API. It will be added in the future, there is some work on libpkttables - but I won't expect a stable API to be ready within the next 6 months or so.

Quoted 6 lines

So far, I have found a lib called libiptc, and a HOWTO ("Querying libiptc HOWTO") describing its function calls with some examples. Those calls were also mentioned in the netfilter hacking HOWTO, but neither document describe them in the necessary depth for one to add and remove both filters and NAT.

libiptc was _NEVER_ meant as a public interface. It's a bunch of routines used by iptables internally. We do not guarantee stability of that interface, and in the 2.7 (and maybe 2.6 at some point) kernel it will be removed without replacement.

This has been mentioned so often on the netfilter developer mailinglist, that it should be very obvious to find in the list archives.

I've now also added it as an FAQ.

Quoted 5 lines

Thanks in advance,
Daniel Fonseca

PS: I have been told you know brazilian portuguese. Isso e verdade? (Is that true?)

sim, falo um pouco de portugues. morava para um meio ano em curitiba, trabalhando para a conectiva. Agora eu nao tenho muito possibilidade de praticar.

Signature · 5 lines
- Harald Welte <[email protected]>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie