Skip to contentSkip to conversation

best way of knowning what matches and targets are available

DISCUSSION Victor Julien 1 participant 1 message Jul 29, 2004

lore
Share & tools
lore
#0 lore raw

Hi list,

I'm developing a netfilter front-end (http://vuurmuur.sourceforge.net) and i was wondering what the best way is to determine which targets and matches are loaded. Just looking at the output of 'lsmod' won't cut it, since not everyone uses modules.

I have found /proc/net/ip_tables_matches and /proc/net/targets. Is reading those 'files' the way to go? Can i be sure that if a match is listed in /proc/net/ip_tables_matches i can really use it?

Regards,
Victor