Linux Netfilter discussions
 help / color / mirror / Atom feed
* redirect rule question
@ 2008-02-05 19:19 Srinivas Murthy
  2008-02-05 20:06 ` Grant Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Srinivas Murthy @ 2008-02-05 19:19 UTC (permalink / raw)
  To: netfilter

Hi Guys,

 I need to write a redirect rule that does the following:

 If there is a mark set on an skb, (for any src or dst ip or port
no's), redirect to the port no equal to the mark.

 Please ignore the job of actually setting the mark on the skb is set
in kernel space by other means.

 Can you please give me an idea on how to add this rule?

Thanks.

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

* Re: redirect rule question
  2008-02-05 19:19 redirect rule question Srinivas Murthy
@ 2008-02-05 20:06 ` Grant Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Grant Taylor @ 2008-02-05 20:06 UTC (permalink / raw)
  To: Mail List - Netfilter

On 02/05/08 13:19, Srinivas Murthy wrote:
> If there is a mark set on an skb, (for any src or dst ip or port 
> no's), redirect to the port no equal to the mark.

I'm not aware of any thing in IPTables that will act like a variable 
that can be set to the value of the mark and then later use the contents 
of the variable as the source for a redirect.

I'm afraid that you will need a multiple rules to match the multiple marks.



Grant. . . .

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

end of thread, other threads:[~2008-02-05 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-05 19:19 redirect rule question Srinivas Murthy
2008-02-05 20:06 ` Grant Taylor

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