Hi,

ok, i've tried this out myself for 2 weeks now... i would like to
insert very simple rules into an chain like this...

iptables -A a_test_chain -s ..... -d ..... -j RETURN

i've written a small C program which creates the chains, but how
to add an entry is getting to me, i first tried   do_command, but
for some very strange reason it segfaults, i've been having very
many problems with malloc & strdup... unsure why though, if you use
them alot in this program they segfault... anyway.

i was thinking of using  iptc_append_entry, and was wondering what
the second argument (ipt_entry) means and how to give it a correct
value.

is there any easier way to do this? (i want to create about 10,000
rules... don't ask why, and yes the server is powerfull enough)  :)


Regards

-- 
Nigel Kukard   (Systems Designer)
Lando Technologies Africa (Pty) Ltd
[EMAIL PROTECTED]   www.lando.co.za
Tel: 082 564 2120  Fax: 086 1100036
3 Parc Du Cap, Bellville, Cape Town
National Internet Service Provider



Reply via email to