From: Patrick McHardy <kaber@trash.net>
To: rebeca.martinez-garcia@estudiant.upc.edu
Cc: netfilter@vger.kernel.org, vhuertas@indra.es, devel@thom.fr.eu.org
Subject: Re: nf_conntrack_sip and nf_nat_sip can do this??
Date: Thu, 14 Jan 2010 11:51:09 +0100 [thread overview]
Message-ID: <4B4EF71D.7010104@trash.net> (raw)
In-Reply-To: <20100114111329.216832szeqp9zdyc@ek2pim.upc.edu>
rebeca.martinez-garcia@estudiant.upc.edu wrote:
> I have been investigating and the registration process is done correctly:
> a private user inside the LAN sends the REGISTER to the Proxy via the
> gateway and it changes the private IP for the public IP. When the Proxy
> answers it, the gateway does the same but in the other way round.
>
> It is during the INVITE that I have seen some problems.
>
> When a private client sends an INVITE directed to a client outside the
> LAN (a public client) again it works ok. However, when a public client
> sends an INVITE to call a private client there is an error:
>
> Public Client to my Proxy:
> INVITE sip:private_client@domain_name
> From:caller@domain_name
> To:callee@domain_name
> contact: caller@10.1.x.x
>
> The proxy talks with my server to know the location of the callee and it
> answers with the public IP of my gateway in a determined port. So the
> Proxy sends the invite to it:
> INVITE sip:private_client@10.1.x.y
> From:caller@domain_name
> To:callee@domain_name
> contact: caller@10.1.x.x
>
> And now the gateway redirects the invite to my private client but it
> DOES NOT change the R-URI. However, when the invite reaches the client,
> it answers with a "183 Session progress" and then it puts its correct
> contact:
> 183 SESSION PROGRESS
> From:caller@domain_name
> To:callee@domain_name
> contact: callee@192.168.x.x
>
> And now, in the following messages between the caller and the callee, it
> changes correctly the private address for the public one and in the
> other way round.
> It is as the gateway only starts to work correctly if the message comes
> from the LAN.
Please send me a binary tcpdump (-w file -s0) containing the
traffic of both the incoming and outgoing interface of the
NAT GW.
> I have checked the /proc/net/nf_conntrack_expect and it contains this:
>
> 598000 l3proto = 2 proto=17 src=0.0.0.0 dst=10.1.x.x sport=0 dport=1061
> PERMANENT
> 597394 l3proto = 2 proto=17 src=0.0.0.0 dst=10.1.x.x sport=0 dport=1081
> PERMANENT
>
> Is it correct that the source is 0.0.0.0 in both cases?
Yes, that's correct since you specified sip_direct_signalling=0.
next prev parent reply other threads:[~2010-01-14 10:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-14 9:45 nf_conntrack_sip and nf_nat_sip not working rebeca.martinez-garcia
2010-01-11 12:26 ` nf_conntrack_sip and nf_nat_sip can do this?? rebeca.martinez-garcia
2010-01-13 8:22 ` Patrick McHardy
2010-01-13 13:38 ` rebeca.martinez-garcia
2010-01-13 13:53 ` Patrick McHardy
2010-01-14 10:13 ` rebeca.martinez-garcia
2010-01-14 10:51 ` Patrick McHardy [this message]
[not found] ` <20100115092906.15796e278u2h26os@ek2pim.upc.edu>
2010-01-15 9:59 ` Patrick McHardy
[not found] ` <20100115113829.1720778iyiylgn0g@ek2pim.upc.edu>
2010-01-15 13:57 ` Patrick McHardy
2010-02-17 8:23 ` rebeca.martinez-garcia
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=4B4EF71D.7010104@trash.net \
--to=kaber@trash.net \
--cc=devel@thom.fr.eu.org \
--cc=netfilter@vger.kernel.org \
--cc=rebeca.martinez-garcia@estudiant.upc.edu \
--cc=vhuertas@indra.es \
/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.