iptables doubt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 9 lines · Sven-Haegar Koch
Quoted 5 lines · varun
The features i want to implement like that
priority for policy is that imagine a scenario where user added some policies and then for some reason wants one policy to be checked before checking others then he would have to add the policy again and delete the old policy isint it?
Quoted 9 lines
Every iptables rule change is loading the whole ruleset into userspace, modifying it, and copying the result back into kernelspace.
So you should be able to fetch the rules (f.e. with iptables-save), modify them as you like, and push them back (iptables-restore).
c'ya
sven
which is not robust when competing with another user script doing some change to netfilter ... i.e. there is no function doing an atomic move.
sta
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEPoLww76McB8jGxkRAs7AAJ9ICzjiB1J/V82UIOsqyKT9AyeGMQCgjiMd Maq9ku/nKaaXv81wdGd+zU8=
=2j+D
-----END PGP SIGNATURE-----