Skip to contentSkip to conversation

any Api to program with iptables without system(...)

DISCUSSION iAc 2 participants 2 messages Oct 17, 2005 – Oct 19, 2005 netfilter

lore
Share & tools
lore

iAc

author
#0 lore raw

Hello everybody,
I'm new to iptables.
I know the basic command of iptables and how it works.
I have to develop a program that interface with Iptables but for security reason I'm canno use system call System(iptables command).
I have try to find out a better way but I didn't find nothing. Someone there can show me how can I interact with iptables withou system call "System etc. etc." ??

Thansk for all
Iacopo

--
iAc

#1 lore raw
Quoted 5 lines · iAc

I have to develop a program that interface with Iptables but for security reason I'm canno use system call System(iptables command).
I have try to find out a better way but I didn't find nothing. Someone there can show me how can I interact with iptables withou system call "System etc. etc." ??

No, the iptables API is not documented. This is one of the current flaws that still persist in iptables. The safest way to work with iptables is using system(...)