From: Asim Shankar <asimshankar@gmail.com>
To: cranium2003 <cranium2003@yahoo.com>
Cc: net dev <netdev@oss.sgi.com>
Subject: Re: SNAT help
Date: Tue, 10 May 2005 12:12:20 -0500 [thread overview]
Message-ID: <7bca1cb505051010123f0d0a26@mail.gmail.com> (raw)
In-Reply-To: <20050509083113.42571.qmail@web41414.mail.yahoo.com>
> i have enabled SNAT and I have wrriten code
> at NF_IP_POST_ROUTING but i want to get outgoing
> packets' IP address as new one SNAT'ed IP address not
> the one that is before SNAT? How can i do that?
I think changing the priority (struct nf_hook_ops.priority) when
registering the hook would do your job. ip_nat_out_ops registers a
hook with a priority NF_IP_PRI_NAT_SRC.
If you register your hook with a priority greater than
NF_IP_PRI_NAT_SRC (like (NF_IP_PRI_NAT_SRC + 1) or NF_IP_PRI_LAST)
then your hook will be called after the ip_nat_out_ops hook.
Hope that helps,
-- Asim
next prev parent reply other threads:[~2005-05-10 17:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-09 8:31 SNAT help cranium2003
2005-05-10 17:12 ` Asim Shankar [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-04-09 15:47 Scott Johnson
2003-04-09 16:25 ` Raymond Leach
2003-04-09 14:59 Scott Johnson
2003-04-08 20:38 Scott Johnson
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=7bca1cb505051010123f0d0a26@mail.gmail.com \
--to=asimshankar@gmail.com \
--cc=cranium2003@yahoo.com \
--cc=netdev@oss.sgi.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.