please help me.......
hi
I m one among the member of this list ,i have a problem with
libiptc...please look after if u can do it.
I want to insert one rule using the iptc_insert_entry function in
libiptc....
As i m new to netfilter ,libiptc ..i m struggling a lot..i hope u can help
me .
Just give me an information about how to fill the target information in theip_entry structure ...and the i target_offset field ...
I want insert a rule like..
-t nat -A PREROUTING -s 192.45.23..1 -p icmp -j DROP
please help me on how to fill the structure and invoke the function. I m eagerly expecting your reply...
thanking you
vijay
Quoted 10 lines · Vijay Angelo
hi
I m one among the member of this list ,i have a problem with
libiptc...please look after if u can do it.
I want to insert one rule using theiptc_insert_entryfunction in
libiptc....
As i m new to netfilter ,libiptc ..i m struggling a lot..i hope u
can help me .Just give me an information about how to fill the target information
in theip_entrystructure ...and the itarget_offsetfield ...
Well, using the library is complicated. The functions themselves are easy to understand how to call, but the format of a rule is very complicated.
It is something like generic data applicable to all rules, then data for specific match extensions and then data for any target extension.
However is all allocated and used through structs placed inside opaque memory chunks, so it is very difficult to explain in an email.
Your best bet is looking through the code for iptables (iptables.c) and the various extensions.
Signature · 2 lines
A: No. See http://www.netmeister.org/news/learn2quote.html Q: Should I include quotations after my reply ?