All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: conntrack manipulation
@ 2003-05-12 23:35 Ian Latter
  2003-05-13 13:52 ` Nils Ohlmeier
  0 siblings, 1 reply; 7+ messages in thread
From: Ian Latter @ 2003-05-12 23:35 UTC (permalink / raw)
  To: Nils Ohlmeier; +Cc: netfilter-devel


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 -----
>From: "Nils Ohlmeier" <lists@ohlmeier.de>
>To: "Jozsef Kadlecsik" <kadlec@blackhole.kfki.hu>
>Subject:  Re: conntrack manipulation
>Date: Mon, 12 May 2003 20:15:02 +0200
>
> Hi Jozsef,
> 
> first of all thanks for thought and ideas.
> 
> On Monday 12 May 2003 09:35, Jozsef Kadlecsik wrote:
> > On Sat, 10 May 2003, Nils Ohlmeier wrote:
> > > 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).
> 
> Regards
>   Nils Ohlmeier
> 
> 

--
Ian Latter
Internet and Networking Security Officer
Macquarie University

^ permalink raw reply	[flat|nested] 7+ messages in thread
* conntrack manipulation
@ 2003-05-08 21:47 Nils Ohlmeier
  2003-05-09 12:36 ` Jozsef Kadlecsik
  0 siblings, 1 reply; 7+ messages in thread
From: Nils Ohlmeier @ 2003-05-08 21:47 UTC (permalink / raw)
  To: netfilter-devel

Hi all,

short question: is it possible to manipulate the entrys of the connection 
tracking (specialy adding and removing entrys) from user space?

In more details:
we try to get an over SIP signaled RTP stream (Voice over IP) through 
netfilter NAT. Some time ago we coded the fcpd (http://fcpd.berlios.de) which 
enables applications to maipulate packet filter and NAT rules. Now the SIP 
Express Router (http://www.iptel.org/ser) has support for this netfilter 
manipulation. But after long testing sessions we came to the following 
result:

phone1 ------ NAT ------- Internet ----- phone2

Phone1 starts a call to phone2 (INVITE message). Phone2 confirms the call (200 
OK message) after the user picked up and starts to send RTP packets to the 
public NAT address immediately. Now the comfirmation message hits the SIP 
proxy at the NAT box and will be processed. The proxy requests at the fcpd to 
insert S- and D-NAT rules for the RTP stream. The fpcd processes the request 
and inserts the rules.
But during all this process time the first RTP packets allready hit the NAT 
box. And if this packets are not droped by a rule, they will create a new 
conntrack entry. Now the insertion of the S/DNAT rules comes too late because 
all the packets of the stream will be intercepted by the conntrack before 
they hit our new rules.
Ok if the NAT box drops every packet which is not explictly allowed everything 
should work fine. But i think this is somewhat unrealistic, because most NATs 
will at least accept all packets from the private side to the Internet.

So my question is if it is possible that the fcpd deletes connection tracking 
entrys from the early packets. And if the fcpd could just insert a connection 
tracking entry for the stream it could omit the insertion of three normal 
rules (SNAT, DNAT and FORWARD).

I know that i could explicitly drop the packets from the stream until the 
connection is confirmed. But i dont like this idea because it complicates the 
rule handling from the fcpd a much. And because of the details in the SIP 
protocol we could only drop packets with some wildcards in the matching 
rules.

Thanks for any comments and ideas.
Greetings
  Nils Ohlmeier

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

end of thread, other threads:[~2003-05-13 13:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-12 23:35 conntrack manipulation Ian Latter
2003-05-13 13:52 ` Nils Ohlmeier
  -- strict thread matches above, loose matches on Subject: below --
2003-05-08 21:47 Nils Ohlmeier
2003-05-09 12:36 ` Jozsef Kadlecsik
2003-05-09 22:21   ` Nils Ohlmeier
2003-05-12  7:35     ` Jozsef Kadlecsik
2003-05-12 18:15       ` Nils Ohlmeier

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.