libiptc question
A quick question.
I would like to add a SNAT rule ( with a TCP protocol match ) programmatically to iptables.
So will calling iptc_append_entry() with suitably filled ipt_entry ( just the same as the one that iptables would pass across ) work. Are there any other elegant methods ?
If someone could reply off hand to my query it will save me a lot of re-engg. work.
Thanks in advance,
Jambunathan K.
___________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
Quoted 2 lines · Jambunathan Kalyanasundaram
I would like to add a SNAT rule ( with a TCP protocol match ) programmatically to iptables.
Then the best method is to call the iptables command from your program to add the needed iptables rule.
Using libiptc is completely undocumented and subject to change at any time, even if unlikely as there is not much reason to care about libiptc at this time with thoughts going into the next generation.
Regards
Henrik