Linux Netfilter discussions
 help / color / mirror / Atom feed
* Re: REDIRECT,DNAT,SNAT in C
  2003-01-30  0:32 REDIRECT,DNAT,SNAT in C PAUL FABRICIO VILLACRESES LEON
@ 2003-01-29 16:33 ` Ranjeet Shetye
  0 siblings, 0 replies; 2+ messages in thread
From: Ranjeet Shetye @ 2003-01-29 16:33 UTC (permalink / raw)
  To: netfilter

On Thu, 2003-01-30 at 01:32, PAUL FABRICIO VILLACRESES LEON wrote:
> 
> 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.

-- 
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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* REDIRECT,DNAT,SNAT in C
@ 2003-01-30  0:32 PAUL FABRICIO VILLACRESES LEON
  2003-01-29 16:33 ` Ranjeet Shetye
  0 siblings, 1 reply; 2+ messages in thread
From: PAUL FABRICIO VILLACRESES LEON @ 2003-01-30  0:32 UTC (permalink / raw)
  To: netfilter



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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-30  0:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-30  0:32 REDIRECT,DNAT,SNAT in C PAUL FABRICIO VILLACRESES LEON
2003-01-29 16:33 ` Ranjeet Shetye

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox