linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Netfilter Question
@ 2001-10-24 13:09 Shiva Raman Pandey
  0 siblings, 0 replies; 2+ messages in thread
From: Shiva Raman Pandey @ 2001-10-24 13:09 UTC (permalink / raw)
  To: linux-kernel

Hi Friends,
When I get a packet using netfilter/iptables, I want to send it twice.
I mean I want to call set_verdict function twice.
Is it possible?
Is there any method to achieve this?
Do I have to play around packet_id and data_len parameters?
will handle create any problem?

Regards
Shiva



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

* netfilter question
@ 2012-12-10 20:12 Sri Ram Vemulpali
  0 siblings, 0 replies; 2+ messages in thread
From: Sri Ram Vemulpali @ 2012-12-10 20:12 UTC (permalink / raw)
  To: linux-netdev, linux-kernel-mail, linux-newbie

Hi Guys,

I am writing a netfilter hooks module for applying kernel rules on
incoming packets. I am implementing hook at NF_IP_PRE_ROUTING.

>From my understanding, after sk_buff passing NF_IP_PRE_ROUTING hook
enters into ip_forward (routing) path, which will determine whether
packet is for local host, if not for local host, then routes to
destination host based on IP header destination info through local
host interface.

My question is, if I modify sk_buff packet ip header info at
NF_IP_PRE_ROUTING hook, with values of external host ip (destination
host), therefore I think this packet will be routed to destination
host from right source interface. Instead passing it to local host.

Please correct my assumption. Or is anything more I should be doing.
Because I am building a system to route the packets applying kernel
rules.

thanks in advance.

-- 
Regards,
Sri.

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

end of thread, other threads:[~2012-12-10 20:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-24 13:09 Netfilter Question Shiva Raman Pandey
2012-12-10 20:12 netfilter question Sri Ram Vemulpali

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).