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 » Clustering » Cluster MQ in networks using NAT adresses

Post new topic  Reply to topic
 Cluster MQ in networks using NAT adresses « View previous topic :: View next topic » 
Author Message
DUJARDIN
PostPosted: Thu Aug 02, 2007 2:19 am    Post subject: Cluster MQ in networks using NAT adresses Reply with quote

Newbie

Joined: 01 Aug 2007
Posts: 2

Hi all,

we try to connect two MQ in cluster mode (1 MQ Zos - full repository and 1 Mq windows partial repository) , MQ zos and MQ windows are in two differents networks , and we use NAT adresses .
the first connection between MQ is ok , the cluster repository is updated with definitions :
the MQ window cluster-receiver channel parameter update the MQ zos cluster-sender channel , and so , the MQ zos cluster sender CONNAME parameter is updated with the MQ window local adress , which is unknown of the zos network .
Is-it possible to connect cluster MQ in networks using NAT adresses ?
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Aug 02, 2007 2:28 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

The general rule of thumb is to connect queue managers using hostnames, and hide all the ip addresses, routing and other magic down in the network layer where the wizards and the gnomes can make it work.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Aug 02, 2007 3:27 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The other general rule of thumb is that MQ clusters try to make themselves into a fully connected network. This makes crossing network addressing boundaries very complicated. That is, if you have QMGR A, B, and C on one network, and D, E and F on an other network. If the only network path there is between B and E, and the addresses of A,C D and F are not visible to each other... then you will have lots of channel errors on lots of QMGRs.

MQ, in general, doesn't care what "type" of address you give it - a hostname, a "real" IP address, a "virtual" IP adddres, a "NAT" address...

But it has to be an address that is useful. So the Windows CLUSRCVR should include a conname that is visible to the rest of the network.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Aug 02, 2007 3:33 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

jefflowrey wrote:
The other general rule of thumb is that MQ clusters try to make themselves into a fully connected network.


That's a very valid point & one I'd overlooked. It's important that the network wizards understand that.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
DUJARDIN
PostPosted: Thu Aug 02, 2007 11:44 pm    Post subject: Reply with quote

Newbie

Joined: 01 Aug 2007
Posts: 2

IBM support preconize to use DNS host name rather than IP address , and in each network , the host name is the MQ distant local address .
Back to top
View user's profile Send private message
David.Partridge
PostPosted: Wed Sep 05, 2007 3:47 am    Post subject: Reply with quote

Master

Joined: 28 Jun 2001
Posts: 249

If all the QMs are hiding behind NAT routers, then IMHO you are almost SOL (i.e. you can't make it work).

Your only real solution is to use the routers' VPN capability to set up a VPN between the systems.

You might be able to make it work by restricting port ranges used for the channel answer back, and specifically opening the routers to let those ports through to a specific internal IP, but then you aren't really using NAT any more.

Dave
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Sep 05, 2007 3:57 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

David.Partridge wrote:
If all the QMs are hiding behind NAT routers, then IMHO you are almost SOL (i.e. you can't make it work).

Your only real solution is to use the routers' VPN capability to set up a VPN between the systems.

You might be able to make it work by restricting port ranges used for the channel answer back, and specifically opening the routers to let those ports through to a specific internal IP, but then you aren't really using NAT any more.

Dave


Looks like you are mixing nat and firewall here.
a) NAT will only affect hostname resolution
b) Firewall will work with ip and port.

So what you need is the hostname to resolve correctly on all sides of the network
You will also need the firewall to be open between each of the qmgrs in the cluster on the mqlistener port... bidirectional
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
PeterPotkay
PostPosted: Wed Sep 05, 2007 4:29 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722


Yikes!

If you got 2 clusters on 2 seperate networks my advice is to nominate one QM in each cluster to be a gateway to the other. Define convential SNDR/RCVR channels between the 2 gateways. Make sure each gateway has all the QM Alias defs defined (clustered of course) so that a message can find its way to Cluster A from anywhere in Cluster B, and the reverse. Make the gateway QMs highly available by running them on hardware clusters.

Based on the fun I've had to date with 2 plain QMs talking to each other once you mix in firewalls and NATs and VPNs and who knows what else those network wizards got going on I can't imagine multiple QMs all jabbering at each other and trying to debug it when (not if!!!) you have problems.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Sep 05, 2007 7:04 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Don't forget to add MQIPT in the mix with those that bring security up to a new level of paranoia...

And remember there are a few pages on using MQIPT in a cluster...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Clustering » Cluster MQ in networks using NAT adresses
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.