Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Ranjeet Shetye <ranjeet.shetye2@zultys.com>
To: netfilter@lists.netfilter.org
Subject: Re: REDIRECT,DNAT,SNAT in C
Date: 29 Jan 2003 17:33:33 +0100	[thread overview]
Message-ID: <1043858013.592.5.camel@ranjeet-linux-1> (raw)
In-Reply-To: <F170govcke7m99L3U600000494d@hotmail.com>

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.



      reply	other threads:[~2003-01-29 16:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-30  0:32 REDIRECT,DNAT,SNAT in C PAUL FABRICIO VILLACRESES LEON
2003-01-29 16:33 ` Ranjeet Shetye [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1043858013.592.5.camel@ranjeet-linux-1 \
    --to=ranjeet.shetye2@zultys.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox