any Api to program with iptables without system(...)
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
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(...)