[olsr-dev] calling iptables within C code

Andreas Tønnesen (spam-protected)
Thu Aug 24 22:03:02 CEST 2006


You could execute it from olsrd, but IMO this belongs in a script 
wrapping olsrd.

- Andreas

Holger Steudtner wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> I need to set the iptables Rule
>
> "iptables -A INPUT -i eth2 -p udp --dport ! 698 -j DROP"
>
> within olsrd to drop data packets not belonging to OLSR.
>
> All I could find for now are some confusing things with modprobs and
> iptc_handle_t stuff.
>
> Is it possible to just call the iptables with the options in C code?
>
> Does anyone have an idea?
>
> With best regards,
> Holger
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFE7f/3EyoHUdZsc54RAsDEAJwPiQuWSToZjXqlz+riU7H1xq327wCfVIjH
> gigZTPUCTAGk3iKjFs9jdVQ=
> =hUu8
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> olsr-dev mailing list
> (spam-protected)
> https://www.olsr.org/mailman/listinfo/olsr-dev
>   





More information about the Olsr-dev mailing list