* NAT reservations
@ 2005-06-08 18:45 Patrick McHardy
2005-06-08 18:55 ` KOVACS Krisztian
0 siblings, 1 reply; 6+ messages in thread
From: Patrick McHardy @ 2005-06-08 18:45 UTC (permalink / raw)
To: hidden; +Cc: Netfilter Development Mailinglist
Hi Krisztian,
I'm currently working on the H.323 connection tracking helper and
need to NAT addresses that are later used in an expectation, but
I don't want to create the expectation immediately. This can't
be done currently because the final port number is unknown before
the expectation is created. Your NAT reservations patch looks like
it solves exactly this problem. Is there a version for current
kernels?
Regards
Patrick
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: NAT reservations
2005-06-08 18:45 NAT reservations Patrick McHardy
@ 2005-06-08 18:55 ` KOVACS Krisztian
2005-06-08 19:02 ` Patrick McHardy
0 siblings, 1 reply; 6+ messages in thread
From: KOVACS Krisztian @ 2005-06-08 18:55 UTC (permalink / raw)
To: Patrick McHardy; +Cc: Netfilter Development Mailinglist
Hi,
On Wed, 2005-06-08 at 20:45 +0200, Patrick McHardy wrote:
> I'm currently working on the H.323 connection tracking helper and
> need to NAT addresses that are later used in an expectation, but
> I don't want to create the expectation immediately. This can't
> be done currently because the final port number is unknown before
> the expectation is created. Your NAT reservations patch looks like
> it solves exactly this problem. Is there a version for current
> kernels?
Unfortunately I did not have time to port the patch for new NAT code
of 2.6.11, but a 2.6.10 version can be found in the latest tproxy
release tarball:
http://www.balabit.com/downloads/tproxy/linux-2.6/
That's the most up-to-date version available.
Plus, I think the whole patch would require a thorough refresh, I
don't really like the idea of that extra hash table, etc. (And even that
hash table is poorly implemented, obsolete hash function, etc.)
--
Regards,
Krisztian Kovacs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: NAT reservations
2005-06-08 18:55 ` KOVACS Krisztian
@ 2005-06-08 19:02 ` Patrick McHardy
0 siblings, 0 replies; 6+ messages in thread
From: Patrick McHardy @ 2005-06-08 19:02 UTC (permalink / raw)
To: KOVACS Krisztian; +Cc: Netfilter Development Mailinglist
KOVACS Krisztian wrote:
> Unfortunately I did not have time to port the patch for new NAT code
> of 2.6.11, but a 2.6.10 version can be found in the latest tproxy
> release tarball:
>
> http://www.balabit.com/downloads/tproxy/linux-2.6/
>
> That's the most up-to-date version available.
Thanks.
> Plus, I think the whole patch would require a thorough refresh, I
> don't really like the idea of that extra hash table, etc. (And even that
> hash table is poorly implemented, obsolete hash function, etc.)
I haven't looked closer at it yet, but I'll probably port it to
2.6.12-rc in the next couple of days, perhaps a good idea will hit me :)
Regards
Patrick
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: NAT reservations
@ 2005-06-08 19:43 chentschel2
2005-06-08 20:16 ` Patrick McHardy
0 siblings, 1 reply; 6+ messages in thread
From: chentschel2 @ 2005-06-08 19:43 UTC (permalink / raw)
To: Patrick McHardy; +Cc: Netfilter Development Mailinglist, hidden
Mensaje citado por: Patrick McHardy <kaber@trash.net>:
Hi Patrick!
> I\'m currently working on the H.323 connection tracking helper and
> need to NAT addresses that are later used in an expectation, but
> I don\'t want to create the expectation immediately.
This is just to fulfill my curiosity. Is there some special reason for this?.
I´m very interested in this, but I think i don´t really get your point :(
Best regards,
Christian.
__________________________________
Registrate desde http://servicios.arnet.com.ar/registracion/registracion.asp?origenid=9 y participá de todos los beneficios del Portal Arnet.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: NAT reservations
2005-06-08 19:43 chentschel2
@ 2005-06-08 20:16 ` Patrick McHardy
2005-06-08 23:37 ` Christian Hentschel
0 siblings, 1 reply; 6+ messages in thread
From: Patrick McHardy @ 2005-06-08 20:16 UTC (permalink / raw)
To: chentschel2; +Cc: Netfilter Development Mailinglist, hidden
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1423 bytes --]
On Wed, 8 Jun 2005 chentschel2@arnet.com.ar wrote:
> Mensaje citado por: Patrick McHardy <kaber@trash.net>:
>
>> I\'m currently working on the H.323 connection tracking helper and
>> need to NAT addresses that are later used in an expectation, but
>> I don\'t want to create the expectation immediately.
>
> This is just to fulfill my curiosity. Is there some special reason for this?.
> I´m very interested in this, but I think i don´t really get your point :(
There are a couple of cases where it would be useful.
For example H.225 RAS RRQ (Registration Request) messages to Gatekeepers
contain the call signaling address of the Endpoint that registers.
I want to create an expectation that expects incoming calls when the
Gatekeeper replies with an RCF (Registration Confirm), but if we do NAT,
the call signaling address in the RRQ needs to be NATed before the final
port is known. So the only solution is to create the expectation
immediately and cancel it after some timeout or when an Registration
Reject is seen.
Same problem with Registration Confirm. It contains the call signaling
address of the Gatekeeper, but there is nothing to expect because every
signaling connection is preceeded by admissionRequest/admissionConfirm,
which contain the address again. But it should be NATed similar to the
ones in the admission messages, which can't be done reliably at all.
Regards
Patrick
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: NAT reservations
2005-06-08 20:16 ` Patrick McHardy
@ 2005-06-08 23:37 ` Christian Hentschel
0 siblings, 0 replies; 6+ messages in thread
From: Christian Hentschel @ 2005-06-08 23:37 UTC (permalink / raw)
To: Patrick McHardy; +Cc: Netfilter Development Mailinglist, hidden
> I want to create an expectation that expects incoming calls when the
> Gatekeeper replies with an RCF (Registration Confirm), but if we do NAT,
> the call signaling address in the RRQ needs to be NATed before the final
> port is known. So the only solution is to create the expectation
> immediately and cancel it after some timeout or when an Registration
> Reject is seen.
mm.. i see. But is it worth doing that?. I mean if u have a ptp call
without RAS signalling u won't have this situation. Maybe registering
the module to look for RAS and h225 signalling port would be ok. ie. udp
171{8,9} and tcp 1720.
I think RAS signalling separated from h225/Q931 signalling, cisco, ie,
have ras fixup and h255 fixup, but this may be is not a happy example
anyways =P
> Same problem with Registration Confirm. It contains the call signaling
> address of the Gatekeeper, but there is nothing to expect because every
> signaling connection is preceeded by admissionRequest/admissionConfirm,
> which contain the address again. But it should be NATed similar to the
> ones in the admission messages, which can't be done reliably at all.
This would be the same i think. Letting through h225signalling port 1720
should be ok, and h245 and RTP stuff will be the dynamic data to
expect/mangle.
I hope this helps and sorry for my english.. :)
Regards,
--
Christian Hentschel <chentschel2@arnet.com.ar>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-06-08 23:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-08 18:45 NAT reservations Patrick McHardy
2005-06-08 18:55 ` KOVACS Krisztian
2005-06-08 19:02 ` Patrick McHardy
-- strict thread matches above, loose matches on Subject: below --
2005-06-08 19:43 chentschel2
2005-06-08 20:16 ` Patrick McHardy
2005-06-08 23:37 ` Christian Hentschel
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.