Skip to contentSkip to conversation

REDIRECT,DNAT,SNAT in C

DISCUSSION PAUL FABRICIO VILLACRESES LEON 2 participants 2 messages Jan 29, 2003 – Jan 30, 2003

lore
Share & tools
lore
#1 lore raw
In reply to PAUL FABRICIO VILLACRESES LEON
Quoted 7 lines · PAUL FABRICIO VILLACRESES LEON

I use libiptc for put rules in the chain FORWARD but i can't put in the chain PREROUTING because, libiptc accept this target : ACCEPT, DROP, RETURN and QUEUE but not DNAT ,SNAT and REDIRECT

How i can put rules programming in c for DNAT , SNAT and REDIRECT

If you can give us some details about what you WANT to do, and also what function calls you are making, then we might be able to help you.

As a starter, ACCEPT, DROP, RETURN and QUEUE are termed "built-in" targets while DNAT, SNAT and REDIRECT target support has been added via extensions. It may be that the functions calls you are making are limited to the built-in targets, which are hard-coded values for some libiptc calls. This may explain your failure.

If you can give us an outline of what you want to do, and also include the ipt function calls you are making, I am sure someone can point out the correct calls or the correct sequence of calls to make.

hope that helps.

Signature · 10 lines
Ranjeet Shetye
Senior Software Engineer
Zultys Technologies
Ranjeet dot Shetye2 at Zultys dot com
http://www.zultys.com/

The views, opinions, and judgements expressed in this message are solely
those of
the author. The message contents have not been reviewed or approved by
Zultys.
#0 lore raw

Hi

Developers,

I'm Paul Villacreses
Again

I use libiptc for put rules in the chain FORWARD but i can't put in the chain PREROUTING because, libiptc accept this target : ACCEPT, DROP, RETURN and QUEUE but not DNAT ,SNAT and REDIRECT

How i can put rules programming in c for DNAT , SNAT and REDIRECT

Please Core developers or anybody answer me

thank you for give some idea

Paul

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail