Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

206
Vistas
Alternatives for iptables?

I'm developing an application in which i rely heavily on iptables for routing traffic. I'm setting the tables just by calling iptables as an external process from my application.

I would like to know if there is a way to directly talk to the kernel modules (Netfilter) on which iptables relies and avoid the overhead of running a new process just for that?

Recommendations for other routing solutions are welcome.

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

If my understanding is correct, you are asking for a programatic interface for the configuration of iptables. Unfortunately iptables (libiptc) doesn't give an API interface for configuring or querying them, its way too low in the stack.

One alternative I can suggest is kernel IP sets. ipset is actually an extension to iptables that allows to create rules that match entire set of addresses at once. IPtables are traversed linearly where as ip set are stored in indexed data structures. This makes it very efficient.

https://packages.debian.org/sid/net/ipset

This may not be a direct answer to your question but hope it helps.

over 4 years ago · Santiago Trujillo Denunciar

0

I don't see any problem with netfilter. You are able to bind your callback on any netfilter hooks and kernel will invoke your callback on hook event. You are doing this via nf_register_hook. You can even track connections with conntrack

Example for this is here.

More info about hacking netfilter on official documentation

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda