Skip to contentSkip to conversation

conntrack manipulation

DISCUSSION Ian Latter 2 participants 2 messages May 12, 2003 – May 13, 2003 netfilter

lore
Share & tools
lore

Ian Latter

author
#0 lore raw

Howdy,

How, then, does this differ from either the FTP conntrack+nat
module? Surely you just want to right a small connection tracker that understands your phone protocol and relays connections appropriately?

----- Original Message -----

Quoted 27 lines

From: "Nils Ohlmeier" <[email protected]>
To: "Jozsef Kadlecsik" <[email protected]>
Subject: Re: conntrack manipulation
Date: Mon, 12 May 2003 20:15:02 +0200

Hi Jozsef,

first of all thanks for thought and ideas.

Quoted 9 lines · Jozsef Kadlecsik
Quoted 4 lines · Nils Ohlmeier

Not phone1 sends but phone2 sends RTP packets immediately after it send the '200 OK' to confirm that the user at phone2 picked up the hearer. So the problem is basicly that the callee phone starts to send packets to fast (at least to fast for our solution).

Then enter the required rules when phone1 sends the command, without waiting for a confirmation from phone2. If phone2 would refuse the request, then delete the unnecessarily added rules.

For a call from internal to external (outbound) this would be possible if we insert DNAT rules with any source IP and port. But for inbound calls we have a problem, because with the SIP protocol you do not know the final destination (IP and port) if you see a traversing INVITE. So we can insert the DNAT rule only after we saw the SDP part of the 200 OK (or any other 1xx with a SDP body).

Quoted 4 lines

Regards
Nils Ohlmeier

--
Ian Latter
Internet and Networking Security Officer
Macquarie University

#1 lore raw

Hi Ian,

Quoted 4 lines · Ian Latter

How, then, does this differ from either the FTP conntrack+nat
module? Surely you just want to right a small connection tracker that understands your phone protocol and relays connections appropriately?

SIP differ in a lot points from FTP:
- it uses normaly UDP not TCP (although TCP is possible according to the newset RFC3261)
- it needs more then one related connection (ok thats not a problem any more)
- its a ASCII based protocol related with http
- it can contain hostnames instead of IP <- and thats the reason why it exist no conntrack helper and i do/will not write such a module

Regards
Nils Ohlmeier