Skip to contentSkip to conversation

libiptc or alternative

DISCUSSION U.Mutlu 3 participants 5 messages Nov 4, 2011 – Nov 7, 2011

lore
Share & tools
lore

U.Mutlu

author
#0 lore raw

Hi,
in my userland-app I'm calling the iptables binary to add and
to remove iptables rules, but after moving to a Gigabit-Link
I need a faster method.
libiptc seems to fit the job but then it seems to be 'deprecated', is it really? Is there a successor to it, or other alternatives?
Can I still use libiptc on a system where iptables v1.4.12 is installed?

#1 lore raw
Quoted 7 lines · U.Mutlu

Hi,
in my userland-app I'm calling the iptables binary to add and
to remove iptables rules, but after moving to a Gigabit-Link
I need a faster method.
libiptc seems to fit the job but then it seems to be 'deprecated', is it really? Is there a successor to it, or other alternatives?
Can I still use libiptc on a system where iptables v1.4.12 is installed?

Pipe commands to iptables-save.

#2 lore raw
Quoted 10 lines · Pablo Neira Ayuso
Quoted 7 lines · U.Mutlu

Hi,
in my userland-app I'm calling the iptables binary to add and
to remove iptables rules, but after moving to a Gigabit-Link
I need a faster method.
libiptc seems to fit the job but then it seems to be 'deprecated', is it really? Is there a successor to it, or other alternatives?
Can I still use libiptc on a system where iptables v1.4.12 is installed?

Pipe commands to iptables-save.

Sorry, I meant to say iptables-restore, of course.

author
#3 lore raw

Pablo Neira Ayuso wrote, On 2011-11-07 02:03:

Quoted 10 lines · Pablo Neira Ayuso
Quoted 9 lines · U.Mutlu
Quoted 7 lines

Hi,
in my userland-app I'm calling the iptables binary to add and
to remove iptables rules, but after moving to a Gigabit-Link
I need a faster method.
libiptc seems to fit the job but then it seems to be 'deprecated', is it really? Is there a successor to it, or other alternatives?
Can I still use libiptc on a system where iptables v1.4.12 is installed?

Quoted 3 lines
Quoted 1 line

Pipe commands to iptables-save.

Sorry, I meant to say iptables-restore, of course.

Hmm. I think in my case this method is suboptiomal because my iptables rules do change very frequently (ie. banning individual ip's at different times and then unbanning each after say x minutes, again individually, ie. not as a group).

I think in this case I should stick with libiptc since it's still part of the official iptables distribution.

#4 lore raw
Quoted 8 lines · U.Mutlu

Hmm. I think in my case this method is suboptiomal because my iptables rules do change very frequently (ie. banning individual ip's at different times and then unbanning each after say x minutes, again individually, ie. not as a group).

I think in this case I should stick with libiptc since it's still part of the official iptables distribution.

This is starting to sound like something ipset could help with?

Ed W