All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Jing Min Zhao <zhaojingmin@hotmail.com>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: [H.323 Helper 1/3]: Add support for Call Forwarding
Date: Wed, 26 Apr 2006 18:49:43 +0200	[thread overview]
Message-ID: <444FA4A7.7060105@trash.net> (raw)
In-Reply-To: <BAY109-DAV1099B645E5820953632189B3BC0@phx.gbl>

Jing Min Zhao wrote:
> ----- Original Message ----- 
> From: "Patrick McHardy" <kaber@trash.net>
> To: "Jing Min Zhao" <zhaojingmin@hotmail.com>
> Cc: <netfilter-devel@lists.netfilter.org>
> Sent: Wednesday, April 26, 2006 9:48 AM
> Subject: Re: [H.323 Helper 1/3]: Add support for Call Forwarding
> 
> 
> 
>>Jing Min Zhao wrote:
>>
>>>This patch is for 2.6.17-rc2. Please visit
>>>http://nath323.sourceforge.net/#_Toc133598071 for details.
>>>
>>>Signed-off-by: Jing Min Zhao <zhaojingmin@users.sourceforge.net>
>>
>>Please attach patches inline so I can view and quote them in my mail
>>client and include the patch description with the patch.
>>
> 
> I'm sorry. Actually, I'm always frustrated by my Outlook Express 
> and my hotmail account :(. 

I can relate :) I think you should be able to use imap on
people.netfilter.org.


>>I definitely don't like the internal_net module option. I know its not
>>strictly required, more an optimization, but still limiting this to only
>>one network is not a good idea. We may be able to use the routing
>>information as indication whether we need an expectation or not .. but
>>I need think about it some more.
>>
>>
> 
> I also want such a solution deadly, but I can't figure out a way. 
> Actually, the only question is how can a firewall tell that any two 
> endpoints can talk with each other directly without passing though it.
> Any suggestion for this will be greatly appreciated.

There is no general way to do this, but we I think we can take a good
guess for the common case of no weird NATing etc based on the nexthop
information we get from fib_lookup(). I think an assumption that is
true for most cases is that if the nexthop information is identical,
the two endpoints can reach each other without our help. It needs to
be optional of course. What do you think about this?


>>--- a/include/linux/netfilter_ipv4/ip_conntrack.h
>>+++ b/include/linux/netfilter_ipv4/ip_conntrack.h
>>@@ -154,6 +154,7 @@ struct ip_conntrack_expect
>>       unsigned int flags;
>>
>>#ifdef CONFIG_IP_NF_NAT_NEEDED
>>+       u_int32_t saved_ip;
>>       /* This is the original per-proto part, used to map the
>>        * expected connection the way the recipient expects. */
>>       union ip_conntrack_manip_proto saved_proto;
>>
>>Please explain why this is needed.
>>
>>
> 
> If an external endpoint A calls an internal endpoint B, and B forwards 
> the call to an internal endpoint C, then the second call will come from 
> A, pass through firewall, and go to C. The current architecture assumes 
> any expected connections come back to the same internal endpoint, so 
> only the port (saved_proto) is saved. But in this case, it is not 
> enough - the expected connection will go to the third endpoint. So we 
> need to save not only C's port but also C's IP.

OK, this seems to be unavoidable. But please just replace
ip_conntrack_manip_proto by ip_conntrack_manip.

  reply	other threads:[~2006-04-26 16:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-24  3:40 [H.323 Helper 1/3]: Add support for Call Forwarding Jing Min Zhao
2006-04-26 13:48 ` Patrick McHardy
2006-04-26 14:33   ` Jing Min Zhao
2006-04-26 16:49     ` Patrick McHardy [this message]
2006-04-26 18:06       ` Jing Min Zhao
2006-04-26 20:20         ` Patrick McHardy
2006-04-26 20:21         ` Patrick McHardy
2006-04-26 21:15           ` Jing Min Zhao
2006-04-27 19:57             ` Patrick McHardy
2006-04-28 15:07               ` Jing Min Zhao
2006-04-28 15:13                 ` Patrick McHardy
2006-05-20  3:23                   ` Patrick McHardy
2006-05-20  4:10                     ` Jing Min Zhao
2006-05-01 17:51         ` imap.netfilter.org (was Re: [H.323 Helper 1/3]: Add support for Call Forwarding) Harald Welte

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=444FA4A7.7060105@trash.net \
    --to=kaber@trash.net \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=zhaojingmin@hotmail.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.