netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* T.38 FAX support via nf_nat_sip,nf_conntrack_sip
@ 2009-09-28 17:10 Florian Fuessl
  2009-10-01 15:48 ` Florian Fuessl
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Fuessl @ 2009-09-28 17:10 UTC (permalink / raw)
  To: netfilter-devel

Hi,

T.38 FAX support via nf_nat_sip,nf_conntraack_sip does currently not seem to
work, because the REINVITE for the codec change is not handled correctly at
the moment (Figure: Fax Pass-Through and Call Flow diagram i.e. at
http://docwiki.cisco.com/wiki/Cisco_IOS_Voice_Troubleshooting_and_Monitoring
_--_Fax_Call_Flow )

Do you have an idea how to patch this problem?

-Florian


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

* RE: T.38 FAX support via nf_nat_sip,nf_conntrack_sip
  2009-09-28 17:10 T.38 FAX support via nf_nat_sip,nf_conntrack_sip Florian Fuessl
@ 2009-10-01 15:48 ` Florian Fuessl
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Fuessl @ 2009-10-01 15:48 UTC (permalink / raw)
  To: netfilter-devel; +Cc: 'Florian Fuessl'

I've an update regarding this issue:

According to my packet dumps the nf_conntrack_sip.c function:

static int process_sdp(struct sk_buff *skb,
                       const char **dptr, unsigned int *datalen,
                       unsigned int cseq)
{
[...]
        /* Update session connection and owner addresses */
        nf_nat_sdp_session = rcu_dereference(nf_nat_sdp_session_hook);
        if (nf_nat_sdp_session && ct->status & IPS_NAT_MASK)
                ret = nf_nat_sdp_session(skb, dptr, sdpoff, datalen,
&rtp_addr);

        if (ret == NF_ACCEPT && i > 0)
                help->help.ct_sip_info.invite_cseq = cseq;

        return ret;
}

... seems to rewrite the SIP/SDP (IN IP4) owner address and connection
address with garbage IP data on REINVITE packets sourcing from NAT outbound
to NAT inbound.

For example:
REINVITE packet sourcing from NAT outbound with connection information:
SIP Call IN IP4 212.77.188.67
... will be rewritten by the garbage IP address:
SIP Call IN IP4 128.41.188.128

Should this information not only be rewritten for packets sourcing from NAT
inbound to NAT outbound? 
What information does nf_nat_sip,nf_conntrack_sip read in order to determine
the garbage IP? Is this maybe a security (buffer) problem, too?

Sorry I'm no coder, so any help is very welcome :)

-Florian

> -----Original Message-----
> From: netfilter-devel-owner@vger.kernel.org [mailto:netfilter-devel-
> owner@vger.kernel.org] On Behalf Of Florian Fuessl
> Sent: Monday, September 28, 2009 7:10 PM
> To: netfilter-devel@vger.kernel.org
> Subject: T.38 FAX support via nf_nat_sip,nf_conntrack_sip
> 
> Hi,
> 
> T.38 FAX support via nf_nat_sip,nf_conntraack_sip does currently not
> seem to
> work, because the REINVITE for the codec change is not handled
> correctly at
> the moment (Figure: Fax Pass-Through and Call Flow diagram i.e. at
> http://docwiki.cisco.com/wiki/Cisco_IOS_Voice_Troubleshooting_and_Monit
> oring
> _--_Fax_Call_Flow )
> 
> Do you have an idea how to patch this problem?
> 
> -Florian
> 
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter-
> devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

end of thread, other threads:[~2009-10-01 15:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-28 17:10 T.38 FAX support via nf_nat_sip,nf_conntrack_sip Florian Fuessl
2009-10-01 15:48 ` Florian Fuessl

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).