Skip to contentSkip to conversation

netfilter h323 helper extension

DISCUSSION Michael Carmody 2 participants 2 messages Jul 27, 2004 – Jul 30, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

It seems that Jozsef Kadlecsik <[email protected]> has a very tight spam filter and has rejected all my mails so far.

Anyway posting this to list to see if anyone else can help...

Trying this out for a H.323 Interop project between cisco and 3com VoIP gear.

Without any helper and just basic port redirection I get phones ringing but of course since the H.225 packet is not being mangled the systems try to connect to the wrong IP.

With your ip_conntrack_h323 and ip_nat_h323 modules loaded I get non-function.

Specifically there is one packet that is dissappearing. Between MS netmeeting and our 3com system, it is the second packet after the Q.931 Short frame, specifically from the caller to the callee. TCP packet from random port to port 1720 on callee's system. It appears on the external interface of the firewall but does not re-appear in the internal interface.

I have attached 2 ethereal capture files.

Any Help you could offer would be much appreciated

Debugging turned on gave:

Jul 27 16:01:42 adam kernel: ASSERT ip_conntrack_core.c:631 &ip_conntrack_lock 
not readlocked
Jul 27 16:04:40 adam kernel: ct_h225_help: help entered 
218.214.140.63:1086->218.214.139.134:1720
Jul 27 16:04:40 adam kernel: ct_h225_help: Conntrackinfo = 2
Jul 27 16:04:40 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:04:40 adam kernel: nat_h323: Not touching dir ORIG at hook 
PREROUTING
Jul 27 16:04:40 adam kernel: nat_h323: dir ORIG at hook POSTROUTING
Jul 27 16:04:40 adam kernel: h323_signal_address_fixup: no no
Jul 27 16:04:40 adam kernel: ct_h225_help: help entered 
172.16.34.201:1720->218.214.140.63:1086
Jul 27 16:04:40 adam kernel: ct_h225_help: tcplen = 28
Jul 27 16:04:40 adam kernel: nat_h323: dir REPLY at hook PREROUTING
Jul 27 16:04:40 adam kernel: h323_signal_address_fixup: no no
Jul 27 16:04:40 adam kernel: nat_h323: dir REPLY at hook POSTROUTING
Jul 27 16:04:40 adam kernel: nat_h323: Not touching dir REPLY at hook 
POSTROUTING
Jul 27 16:04:40 adam kernel: ct_h225_help: help entered 
218.214.140.63:1086->218.214.139.134:1720
Jul 27 16:04:40 adam kernel: ct_h225_help: tcplen = 20
Jul 27 16:04:40 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:04:40 adam kernel: nat_h323: Not touching dir ORIG at hook 
PREROUTING
Jul 27 16:04:40 adam kernel: nat_h323: dir ORIG at hook POSTROUTING
Jul 27 16:04:40 adam kernel: h323_signal_address_fixup: no no
Jul 27 16:04:40 adam kernel: ct_h225_help: help entered 
218.214.140.63:1086->218.214.139.134:1720
Jul 27 16:04:40 adam kernel: ct_h225_help: tcplen = 24
Jul 27 16:04:40 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:04:40 adam kernel: nat_h323: Not touching dir ORIG at hook 
PREROUTING
Jul 27 16:04:40 adam kernel: nat_h323: dir ORIG at hook POSTROUTING
Jul 27 16:04:40 adam kernel: h323_signal_address_fixup: no no
Jul 27 16:04:40 adam kernel: ct_h225_help: help entered 
172.16.34.201:1720->218.214.140.63:1086
Jul 27 16:04:40 adam kernel: ct_h225_help: tcplen = 20
Jul 27 16:04:40 adam kernel: nat_h323: dir REPLY at hook PREROUTING
Jul 27 16:04:40 adam kernel: h323_signal_address_fixup: no no
Jul 27 16:04:40 adam kernel: nat_h323: dir REPLY at hook POSTROUTING
Jul 27 16:04:40 adam kernel: nat_h323: Not touching dir REPLY at hook 
POSTROUTING
Jul 27 16:04:41 adam kernel: ct_h225_help: help entered 
218.214.140.63:1086->218.214.139.134:1720
Jul 27 16:04:41 adam kernel: ct_h225_help: destCallSignalAddress 
218.214.139.134
Jul 27 16:04:41 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:04:41 adam kernel: nat_h323: Not touching dir ORIG at hook 
PREROUTING
Jul 27 16:04:44 adam kernel: ct_h225_help: help entered 
218.214.140.63:1086->218.214.139.134:1720
Jul 27 16:04:44 adam kernel: ct_h225_help: destCallSignalAddress 
218.214.139.134
Jul 27 16:04:44 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:04:44 adam kernel: nat_h323: Not touching dir ORIG at hook 
PREROUTING
Jul 27 16:04:49 adam kernel: ct_h225_help: help entered 
218.214.140.63:1086->218.214.139.134:1720
Jul 27 16:04:49 adam kernel: ct_h225_help: destCallSignalAddress 
218.214.139.134
Jul 27 16:04:49 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:04:49 adam kernel: nat_h323: Not touching dir ORIG at hook 
PREROUTING
Jul 27 16:05:01 adam kernel: ct_h225_help: help entered 
218.214.140.63:1086->218.214.139.134:1720
Jul 27 16:05:01 adam kernel: ct_h225_help: destCallSignalAddress 
218.214.139.134
Jul 27 16:05:01 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:05:01 adam kernel: nat_h323: Not touching dir ORIG at hook 
PREROUTING
Jul 27 16:05:10 adam kernel: ct_h225_help: help entered 
218.214.140.63:1086->218.214.139.134:1720
Jul 27 16:05:10 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:05:10 adam kernel: nat_h323: Not touching dir ORIG at hook 
PREROUTING
Jul 27 16:05:24 adam kernel: ct_h225_help: help entered 
218.214.140.63:1086->218.214.139.134:1720
Jul 27 16:05:24 adam kernel: ct_h225_help: destCallSignalAddress 
218.214.139.134
Jul 27 16:05:24 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:05:24 adam kernel: nat_h323: Not touching dir ORIG at hook 
PREROUTING
Jul 27 16:06:11 adam kernel: ct_h225_help: help entered 
218.214.140.63:1086->218.214.139.134:1720
Jul 27 16:06:11 adam kernel: ct_h225_help: destCallSignalAddress 
218.214.139.134
Jul 27 16:06:11 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:06:11 adam kernel: nat_h323: Not touching dir ORIG at hook 

PREROUTING

And a second debugging output :

Jul 27 16:18:04 adam kernel: ct_h225_help: help entered 
218.214.140.63:1094->218.214.139.134:1720
Jul 27 16:18:04 adam kernel: ct_h225_help: Conntrackinfo = 2
Jul 27 16:18:04 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:18:04 adam kernel: nat_h323: Not touching dir ORIG at hook 
PREROUTING
Jul 27 16:18:04 adam kernel: nat_h323: dir ORIG at hook POSTROUTING
Jul 27 16:18:04 adam kernel: h323_signal_address_fixup: no no
Jul 27 16:18:04 adam kernel: ct_h225_help: help entered 
172.16.34.201:1720->218.214.140.63:1094
Jul 27 16:18:04 adam kernel: ct_h225_help: tcplen = 28
Jul 27 16:18:04 adam kernel: nat_h323: dir REPLY at hook PREROUTING
Jul 27 16:18:04 adam kernel: h323_signal_address_fixup: no no
Jul 27 16:18:04 adam kernel: nat_h323: dir REPLY at hook POSTROUTING
Jul 27 16:18:04 adam kernel: nat_h323: Not touching dir REPLY at hook 
POSTROUTING
Jul 27 16:18:05 adam kernel: ct_h225_help: help entered 
218.214.140.63:1094->218.214.139.134:1720
Jul 27 16:18:05 adam kernel: ct_h225_help: tcplen = 20
Jul 27 16:18:05 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:18:05 adam kernel: nat_h323: Not touching dir ORIG at hook 
PREROUTING
Jul 27 16:18:05 adam kernel: nat_h323: dir ORIG at hook POSTROUTING
Jul 27 16:18:05 adam kernel: h323_signal_address_fixup: no no
Jul 27 16:18:05 adam kernel: ct_h225_help: help entered 
218.214.140.63:1094->218.214.139.134:1720
Jul 27 16:18:05 adam kernel: ct_h225_help: tcplen = 24
Jul 27 16:18:05 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:18:05 adam kernel: nat_h323: Not touching dir ORIG at hook 
PREROUTING
Jul 27 16:18:05 adam kernel: nat_h323: dir ORIG at hook POSTROUTING
Jul 27 16:18:05 adam kernel: h323_signal_address_fixup: no no
Jul 27 16:18:05 adam kernel: ct_h225_help: help entered 
172.16.34.201:1720->218.214.140.63:1094
Jul 27 16:18:05 adam kernel: ct_h225_help: tcplen = 20
Jul 27 16:18:05 adam kernel: nat_h323: dir REPLY at hook PREROUTING
Jul 27 16:18:05 adam kernel: h323_signal_address_fixup: no no
Jul 27 16:18:05 adam kernel: nat_h323: dir REPLY at hook POSTROUTING
Jul 27 16:18:05 adam kernel: nat_h323: Not touching dir REPLY at hook 
POSTROUTING
Jul 27 16:18:05 adam kernel: ct_h225_help: help entered 
218.214.140.63:1094->218.214.139.134:1720
Jul 27 16:18:05 adam kernel: ct_h225_help: destCallSignalAddress 
218.214.139.134
Jul 27 16:18:05 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:18:05 adam kernel: nat_h323: Not touching dir ORIG at hook 
PREROUTING
Jul 27 16:18:05 adam kernel: nat_h323: dir ORIG at hook POSTROUTING
Jul 27 16:18:05 adam kernel: h323_signal_address_fixup: no yes
Jul 27 16:18:05 adam kernel: h323_signal_address_fixup: offsets 3 + 6  and 110 
+ 6 in 252
Jul 27 16:18:05 adam kernel: tuple d8790b10: 6 218.214.140.63:1094 -> 
218.214.139.134:1720
Jul 27 16:18:05 adam kernel: tuple d8790b2c: 6 172.16.34.201:1720 -> 
218.214.140.63:1094
Jul 27 16:18:05 adam kernel: h323_signal_address_fixup: original caller
Jul 27 16:18:05 adam kernel: h323_signal_address_fixup: original callee
Jul 27 16:18:05 adam kernel: h323_signal_address_fixup: orig dest   IP:port 
218.214.139.134:1720
Jul 27 16:18:05 adam kernel: h323_signal_address_fixup:  new dest   IP:port 
172.16.34.201:1720
Jul 27 16:18:08 adam kernel: ct_h225_help: help entered 
218.214.140.63:1094->218.214.139.134:1720
Jul 27 16:18:08 adam kernel: ct_h225_help: destCallSignalAddress 
218.214.139.134
Jul 27 16:18:08 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:18:08 adam kernel: nat_h323: Not touching dir ORIG at hook 
PREROUTING
Jul 27 16:18:08 adam kernel: nat_h323: dir ORIG at hook POSTROUTING
Jul 27 16:18:08 adam kernel: h323_signal_address_fixup: no yes
Jul 27 16:18:08 adam kernel: h323_signal_address_fixup: offsets 3 + 6  and 110 
+ 6 in 252
Jul 27 16:18:08 adam kernel: tuple d8790b10: 6 218.214.140.63:1094 -> 
218.214.139.134:1720
Jul 27 16:18:08 adam kernel: tuple d8790b2c: 6 172.16.34.201:1720 -> 
218.214.140.63:1094
Jul 27 16:18:08 adam kernel: h323_signal_address_fixup: original caller
Jul 27 16:18:08 adam kernel: h323_signal_address_fixup: original callee
Jul 27 16:18:08 adam kernel: h323_signal_address_fixup: orig dest   IP:port 
218.214.139.134:1720
Jul 27 16:18:08 adam kernel: h323_signal_address_fixup:  new dest   IP:port 
172.16.34.201:1720
Jul 27 16:18:14 adam kernel: ct_h225_help: help entered 
218.214.140.63:1094->218.214.139.134:1720
Jul 27 16:18:14 adam kernel: ct_h225_help: destCallSignalAddress 
218.214.139.134
Jul 27 16:18:14 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:18:14 adam kernel: nat_h323: Not touching dir ORIG at hook 
PREROUTING
Jul 27 16:18:14 adam kernel: nat_h323: dir ORIG at hook POSTROUTING
Jul 27 16:18:14 adam kernel: h323_signal_address_fixup: no yes
Jul 27 16:18:14 adam kernel: h323_signal_address_fixup: offsets 3 + 6  and 110 
+ 6 in 252
Jul 27 16:18:14 adam kernel: tuple d8790b10: 6 218.214.140.63:1094 -> 
218.214.139.134:1720
Jul 27 16:18:14 adam kernel: tuple d8790b2c: 6 172.16.34.201:1720 -> 
218.214.140.63:1094
Jul 27 16:18:14 adam kernel: h323_signal_address_fixup: original caller
Jul 27 16:18:14 adam kernel: h323_signal_address_fixup: original callee
Jul 27 16:18:14 adam kernel: h323_signal_address_fixup: orig dest   IP:port 
218.214.139.134:1720
Jul 27 16:18:14 adam kernel: h323_signal_address_fixup:  new dest   IP:port 
172.16.34.201:1720
Jul 27 16:18:26 adam kernel: ct_h225_help: help entered 
218.214.140.63:1094->218.214.139.134:1720
Jul 27 16:18:26 adam kernel: ct_h225_help: destCallSignalAddress 
218.214.139.134
Jul 27 16:18:26 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:18:26 adam kernel: nat_h323: Not touching dir ORIG at hook 
PREROUTING
Jul 27 16:18:26 adam kernel: nat_h323: dir ORIG at hook POSTROUTING
Jul 27 16:18:26 adam kernel: h323_signal_address_fixup: no yes
Jul 27 16:18:26 adam kernel: h323_signal_address_fixup: offsets 3 + 6  and 110 
+ 6 in 252
Jul 27 16:18:26 adam kernel: tuple d8790b10: 6 218.214.140.63:1094 -> 
218.214.139.134:1720
Jul 27 16:18:26 adam kernel: tuple d8790b2c: 6 172.16.34.201:1720 -> 
218.214.140.63:1094
Jul 27 16:18:26 adam kernel: h323_signal_address_fixup: original caller
Jul 27 16:18:26 adam kernel: h323_signal_address_fixup: original callee
Jul 27 16:18:26 adam kernel: h323_signal_address_fixup: orig dest   IP:port 
218.214.139.134:1720
Jul 27 16:18:26 adam kernel: h323_signal_address_fixup:  new dest   IP:port 
172.16.34.201:1720
Jul 27 16:18:35 adam kernel: ct_h225_help: help entered 
218.214.140.63:1094->218.214.139.134:1720
Jul 27 16:18:35 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:18:35 adam kernel: nat_h323: Not touching dir ORIG at hook 
PREROUTING
Jul 27 16:18:35 adam kernel: nat_h323: dir ORIG at hook POSTROUTING
Jul 27 16:18:35 adam kernel: h323_signal_address_fixup: no no
Jul 27 16:18:47 adam kernel: ct_h225_help: help entered 
218.214.140.63:1094->218.214.139.134:1720
Jul 27 16:18:47 adam kernel: ct_h225_help: destCallSignalAddress 
218.214.139.134
Jul 27 16:18:47 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:18:47 adam kernel: nat_h323: Not touching dir ORIG at hook 
PREROUTING
Jul 27 16:18:47 adam kernel: nat_h323: dir ORIG at hook POSTROUTING
Jul 27 16:18:47 adam kernel: h323_signal_address_fixup: no yes
Jul 27 16:18:47 adam kernel: h323_signal_address_fixup: offsets 3 + 6  and 110 
+ 6 in 298
Jul 27 16:18:47 adam kernel: tuple d8790b10: 6 218.214.140.63:1094 -> 
218.214.139.134:1720
Jul 27 16:18:47 adam kernel: tuple d8790b2c: 6 172.16.34.201:1720 -> 
218.214.140.63:1094
Jul 27 16:18:47 adam kernel: h323_signal_address_fixup: original caller
Jul 27 16:18:47 adam kernel: h323_signal_address_fixup: original callee
Jul 27 16:18:47 adam kernel: h323_signal_address_fixup: orig dest   IP:port 
218.214.139.134:1720
Jul 27 16:18:47 adam kernel: h323_signal_address_fixup:  new dest   IP:port 
172.16.34.201:1720
Jul 27 16:19:32 adam kernel: ct_h225_help: help entered 
218.214.140.63:1094->218.214.139.134:1720
Jul 27 16:19:32 adam kernel: ct_h225_help: destCallSignalAddress 
218.214.139.134
Jul 27 16:19:32 adam kernel: nat_h323: dir ORIG at hook PREROUTING
Jul 27 16:19:32 adam kernel: nat_h323: Not touching dir ORIG at hook 
PREROUTING
Jul 27 16:19:32 adam kernel: nat_h323: dir ORIG at hook POSTROUTING
Jul 27 16:19:32 adam kernel: h323_signal_address_fixup: no yes
Jul 27 16:19:32 adam kernel: h323_signal_address_fixup: offsets 3 + 6  and 110 
+ 6 in 298
Jul 27 16:19:32 adam kernel: tuple d8790b10: 6 218.214.140.63:1094 -> 
218.214.139.134:1720
Jul 27 16:19:32 adam kernel: tuple d8790b2c: 6 172.16.34.201:1720 -> 
218.214.140.63:1094
Jul 27 16:19:32 adam kernel: h323_signal_address_fixup: original caller
Jul 27 16:19:32 adam kernel: h323_signal_address_fixup: original callee
Jul 27 16:19:32 adam kernel: h323_signal_address_fixup: orig dest   IP:port 
218.214.139.134:1720
Jul 27 16:19:32 adam kernel: h323_signal_address_fixup:  new dest   IP:port 

172.16.34.201:1720

-Michael Carmody

#1 lore raw

Hi,

Quoted 2 lines · Michael Carmody

It seems that Jozsef Kadlecsik <[email protected]> has a very tight spam filter and has rejected all my mails so far.

Sorry. In fall we'll improve our spam filtering system to handle unintentionally closed-out messages better.

Quoted 7 lines

Trying this out for a H.323 Interop project between cisco and 3com VoIP gear.

Without any helper and just basic port redirection I get phones ringing but of course since the H.225 packet is not being mangled the systems try to connect to the wrong IP.

With your ip_conntrack_h323 and ip_nat_h323 modules loaded I get non-function.

The modules work in some cases while in other cases they simply does not work at all. In the latter case I always suggest to setup a H.323 gatekeeper/proxy instead.

There is no way to fix the current modules without a complete rewriting from the ground. To be honest, I do not plan to start such a project in the near future...

Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics

          H-1525 Budapest 114, POB. 49, Hungary