ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Controlling outbound ports on Linux Client?

Post new topic  Reply to topic
 Controlling outbound ports on Linux Client? « View previous topic :: View next topic » 
Author Message
RAS-NR
PostPosted: Wed Feb 26, 2003 7:44 am    Post subject: Controlling outbound ports on Linux Client? Reply with quote

Newbie

Joined: 26 Feb 2003
Posts: 4
Location: London

Can anyone point me to documentation/information that indicates how one can control the outbound ports that a MQSeries 5.2. Linux client uses.

I have breifly looked over the MA86 and MS81 support PACs and breifly reviewed the Intercommunication and Systems documentation. I have also check IBM support information.

There are various suggestions for various platforms around configuring:
- qm.ini (TCP and TCPConfig)
- setting MQTCPSDRPORT to certain values
However, none of these seem to specifically state if they apply to a client installation even though there is a QM.INI file?

This is necessary as the channels response (from 1414) comes back on the outbound port that is used - which has unacceptable firewall implications.

MQSeries 5.2 Linux to MQSeries 5.2 on OS/390 and
MQSeries 5.2 Linux to MQSeries 5.2.1 on NT

Thanks in advance.
Richard
Back to top
View user's profile Send private message
mrlinux
PostPosted: Thu Feb 27, 2003 7:19 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

Are you wanting to another port other than 1414 ????

If so you need to create a listener on the qmanger side for a different port. Also you need to specify the port on the client side, this is dependent
on how you setting up the Communication, are you using Java or JMS ??

If you are using JMS you can add the port attribute to the QCF definition.
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
RAS-NR
PostPosted: Thu Feb 27, 2003 9:29 am    Post subject: Reply with quote

Newbie

Joined: 26 Feb 2003
Posts: 4
Location: London

Hi Jeff

The Q Mgr (Mainframe side) is configured to listen on 1414 and the C language program on the Linux MQ Client side knows to send to that IP/port - the problem is the port that the client itself uses.

The trace output below is taken on the Q Mgr (Mainframe side) - edited somewhat i.e. the left hand side (of the ->) is the Q MGR side (mainframe) and the right hand side (of the ->) is the Linux Client.

tcp 171.28.18.50(1414) -> 192.168.74.57(36744), 1 packet
tcp 171.28.18.50(1414) -> 192.168.74.57(36744), 49 packets
tcp 171.28.18.50(1414) -> 192.168.74.57(39771), 1 packet
tcp 171.28.18.50(1414) -> 192.168.74.57(39771), 1374 packets
tcp 171.28.18.50(1414) -> 192.168.74.57(39771), 273 packets
tcp 171.28.18.50(1414) -> 192.168.74.57(42660), 1 packet
tcp 171.28.18.50(1414) -> 192.168.74.57(42660), 29 packets
tcp 171.28.18.50(1414) -> 192.168.74.57(42666),
etc

Linux program is C language.

As you can see the ports used by the Linux MQ client vary and this is what we would like to control - but how?

Thanks
Back to top
View user's profile Send private message
mrlinux
PostPosted: Thu Feb 27, 2003 11:47 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

This is the typical TCP application behavior the response port is always a hi port number. This is not an MQSeries thing this is a TCP thing.
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
bower5932
PostPosted: Thu Feb 27, 2003 12:44 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I know that you can update the registry on a Windows box to make the client use a port in a specific range. I would guess that setting the environment variable (not sure about the ini file) would work on your Linux box. Have you tried it?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
mrlinux
PostPosted: Thu Feb 27, 2003 1:38 pm    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

MQseries is not picking the port number. The hi port number is returned from the TCP Call. IF there are any settings it would be an OS Level or TCP Setting
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries


Last edited by mrlinux on Thu Feb 27, 2003 1:47 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
RAS-NR
PostPosted: Thu Feb 27, 2003 1:42 pm    Post subject: Reply with quote

Newbie

Joined: 26 Feb 2003
Posts: 4
Location: London

It looks like I'll have to do some further research on this on - thanks anyway. I'll post the soln once I get it.
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Feb 27, 2003 2:07 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Some success! There is a localaddr parameter on the define channel. It is used to control what a channel uses for its outbound ip address and port. It is only on sender channels, so you can't set it on a svrconn channel (which is probably what you are using with java). Knowing that the java client performs its own tcp/ip calls (rather than going through the C client), I'm not sure that you can use the environment variables, ini file, etc. to tell it what port to use.

To be honest, I vaguely remember this coming up (somewhere) before, and I think the answer is that it works with C clients but not java.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Controlling outbound ports on Linux Client?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.