Blocking specific IP addresses
You can prevent a specific channel accepting an inbound connection from an IP address, or prevent the whole queue manager from allowing access from an IP address, by using a channel authentication record.
Before you begin
ALTER QMGR CHLAUTH(ENABLED)
About this task
Procedure
To block IP addresses from using a specific channel, set a channel authentication record by using the MQSC command SET CHLAUTH, or the PCF command Set Channel Authentication Record.
SET CHLAUTH(generic-channel-name) TYPE(ADDRESSMAP) ADDRESS(generic-ip-address) USERSRC(NOACCESS)
There are three parts to the command:
- SET CHLAUTH (generic-channel-name)
- You use this part of the command to control whether you want to block a connection for the entire queue manager, single channel or range of channels. What you put in here determines which areas are covered.
- Type of CHLAUTH rule
- Use this part of the command to specify the type of command and determines whether you want to supply a single address or list of addresses.
- Additional parameters
- These parameters are dependent upon the type of rule you used in the second part of the command:
- For
TYPE(ADDRESSMAP)
you use ADDRESS - For
TYPE(BLOCKADDR)
you use ADDRLIST
- For